{"_id":"mantra-core","_rev":"471296","name":"mantra-core","description":"Core API for Mantra","dist-tags":{"latest":"1.7.0"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"time":{"modified":"2021-08-05T08:19:29.000Z","created":"2016-01-27T12:46:06.700Z","1.7.0":"2016-06-22T11:23:08.951Z","1.6.1":"2016-05-01T09:13:22.463Z","1.6.0":"2016-05-01T08:47:40.069Z","1.5.0":"2016-04-09T12:54:10.283Z","1.4.0":"2016-03-30T07:51:18.692Z","1.3.0":"2016-03-16T06:37:59.966Z","1.2.0":"2016-02-01T09:02:08.826Z","1.1.0":"2016-01-28T09:14:28.953Z","1.0.0":"2016-01-27T12:46:06.700Z"},"users":{"storytellercz":true,"kytart":true},"repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"versions":{"1.7.0":{"name":"mantra-core","version":"1.7.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.9.0","react-simple-di":"^1.2.0"},"gitHead":"d46191571e22aeab85daa8f6ffb07767d93afdab","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.7.0","_shasum":"a8c83e8cee83ef6a7383131519fe8031ad546386","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"a8c83e8cee83ef6a7383131519fe8031ad546386","size":5674,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.7.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mantra-core-1.7.0.tgz_1466594586659_0.36666578659787774"},"directories":{},"publish_time":1466594588951,"_cnpm_publish_time":1466594588951,"_hasShrinkwrap":false},"1.6.1":{"name":"mantra-core","version":"1.6.1","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.8.0","react-simple-di":"^1.2.0"},"gitHead":"0c681c6e3f92c483adcbcc826a472e04aadf8574","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.6.1","_shasum":"0b42a0095a67beaf1de512739819e9ff06863cf9","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"0b42a0095a67beaf1de512739819e9ff06863cf9","size":5644,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.6.1.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mantra-core-1.6.1.tgz_1462094001464_0.47950812173075974"},"directories":{},"publish_time":1462094002463,"_cnpm_publish_time":1462094002463,"_hasShrinkwrap":false},"1.6.0":{"name":"mantra-core","version":"1.6.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.8.0","react-simple-di":"^1.2.0"},"gitHead":"f0977760f53cdbb9d3f27faa9a76a9ee55bc1420","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.6.0","_shasum":"f4a0a93ecd7b31944dbe3494b0744eea2415dba2","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"f4a0a93ecd7b31944dbe3494b0744eea2415dba2","size":5346,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.6.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mantra-core-1.6.0.tgz_1462092459104_0.7227483491878957"},"directories":{},"publish_time":1462092460069,"_cnpm_publish_time":1462092460069,"_hasShrinkwrap":false},"1.5.0":{"name":"mantra-core","version":"1.5.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.8.0","react-simple-di":"^1.2.0"},"gitHead":"3892eaf76ee7acc080e06c77539feb873dcfb86b","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.5.0","_shasum":"7e299fc506bcec60f7008a2e527c141f62ea215d","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"7e299fc506bcec60f7008a2e527c141f62ea215d","size":5126,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.5.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mantra-core-1.5.0.tgz_1460206447923_0.5991090917959809"},"directories":{},"publish_time":1460206450283,"_cnpm_publish_time":1460206450283,"_hasShrinkwrap":false},"1.4.0":{"name":"mantra-core","version":"1.4.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.7.0","react-simple-di":"^1.1.0"},"gitHead":"b691764a6c99c21a3cbb7e156f40e1d06ed7a177","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.4.0","_shasum":"781a22afc94d335becda21d9d722cb5562f8cd04","_from":".","_npmVersion":"3.8.0","_nodeVersion":"4.4.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"781a22afc94d335becda21d9d722cb5562f8cd04","size":5108,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.4.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mantra-core-1.4.0.tgz_1459324277716_0.7512559448368847"},"directories":{},"publish_time":1459324278692,"_cnpm_publish_time":1459324278692,"_hasShrinkwrap":false},"1.3.0":{"name":"mantra-core","version":"1.3.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.4.0","react-simple-di":"^1.1.0"},"gitHead":"f8a2184398e4d4e4dbbcf88d9761c7dd31c5cdbe","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.3.0","_shasum":"c6a428fb3cf29fa056f8ad8753f999411031d95c","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"c6a428fb3cf29fa056f8ad8753f999411031d95c","size":5057,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.3.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/mantra-core-1.3.0.tgz_1458110277719_0.7750679955352098"},"directories":{},"publish_time":1458110279966,"_cnpm_publish_time":1458110279966,"_hasShrinkwrap":false},"1.2.0":{"name":"mantra-core","version":"1.2.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.3.0","react-simple-di":"^1.0.1"},"gitHead":"9cd7dd94c994da3ffadc50c69d2f9728eea52456","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.2.0","_shasum":"2a8718acd10d40ff3d4cfa0167c75127c1658a24","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"2a8718acd10d40ff3d4cfa0167c75127c1658a24","size":5026,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.2.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"directories":{},"publish_time":1454317328826,"_cnpm_publish_time":1454317328826,"_hasShrinkwrap":false},"1.1.0":{"name":"mantra-core","version":"1.1.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"^1.3.0","react-simple-di":"^1.0.1"},"gitHead":"add770921808cbba0f9f9ab078339fbd7fbcb76b","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.1.0","_shasum":"cd64e8a307cf23d36bc10f9fcbde4466d47ec321","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"cd64e8a307cf23d36bc10f9fcbde4466d47ec321","size":4988,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.1.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"directories":{},"publish_time":1453972468953,"_cnpm_publish_time":1453972468953,"_hasShrinkwrap":false},"1.0.0":{"name":"mantra-core","version":"1.0.0","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/mantrajs/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"0.14.x"},"dependencies":{"babel-runtime":"6.x.x","react-komposer":"1.x.x","react-simple-di":"1.x.x"},"gitHead":"68c930b13ac93d893acef53042e29464989dc436","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"homepage":"https://github.com/mantrajs/mantra-core#readme","_id":"mantra-core@1.0.0","_shasum":"53a7377c01e11f6eca20ef47612075ecf416b41c","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"53a7377c01e11f6eca20ef47612075ecf416b41c","size":4865,"noattachment":false,"key":"/mantra-core/-/mantra-core-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mantra-core/download/mantra-core-1.0.0.tgz"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"directories":{},"publish_time":1453898766700,"_cnpm_publish_time":1453898766700,"_hasShrinkwrap":false}},"readme":"#mantra-core\n\nCore API for Mantra.\n\n### Introduction\n\nThis repo contains the core APP api where we create an mantra app and initialize it.\n\nAlso, this package contains exported functions from both [`react-komposer`](https://github.com/kadirahq/react-komposer) and [`react-simple-di`](https://github.com/kadirahq/react-simple-di).\nThat's purely for the ease of use.\n\n### Installation\n\n```\nnpm i --save mantra-core react\n```\n\n### App API\n\n```js\nimport MyComp from './myComp';\nimport {createApp} from 'mantra-core';\n\n// Here's a simple Mantra Module\nconst module = {\n  routes(injectDeps) {\n    const InjectedComp = injectDeps(MyComp);\n    // load routes and put `InjectedComp` to the screen.\n  },\n  load(context, actions) {\n    // do any module initialization\n  },\n  actions: {\n    myNamespace: {\n      doSomething: (context, arg1) => {}\n    }\n  }\n};\n\nconst context = {\n  client: new DataClient()\n};\n\nconst app = createApp(context);\napp.loadModule(module);\n// app.loadModule(someOtherModule);\napp.init();\n```\n","_attachments":{},"homepage":"https://github.com/mantrajs/mantra-core#readme","bugs":{"url":"https://github.com/mantrajs/mantra-core/issues"},"license":"MIT"}