{"name":"imod","version":"1.0.0-beta.1","license":"MIT","_id":"imod@1.0.0-beta.1","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"homepage":"https://github.com/haozi/imod","bugs":{"url":"https://github.com/haozi/imod/issues"},"bin":{"iMod":"bin/imod","imod":"bin/imod"},"dist":{"shasum":"b4648ddf27db16fe51aa9314b2e66c322ded36aa","tarball":"http://registry-npm.ywwl.com/imod/download/imod-1.0.0-beta.1.tgz","fileCount":26,"integrity":"sha512-IAb5lppdFblNjK28LVudF0T08OlMX/nkB1tHtpEfEnlYaEUfmp1PJ6BeGP/kXVBiMaTSd6Y6lzYB2syd/GxO8A==","signatures":[{"sig":"MEUCIQCUQ1ftGolJIVf7d9pZS66O7rZVh7LzhewmXdtF43rECAIgfzKIiopWEyIkZSnwCNHedmqAf6vyrZmQPWFQCnNf4hA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlV/ECRA9TVsSAnZWagAAsF0P/3vnDsvKJ2oUPBEN2rDl\nmCvT7Rcyw95psjZo3ot/1c17tN6gyn49/q5Winhs7C+BnKQvb3rXqIL+/Jre\nDisbsgg2demg/fegM0aUshHOHM1LKsDWGOwG5hvdKyyz8WcapFpMSX3yCxf2\nn8JWbsQJGcl8wnVt6fDIvHk+LWJAg3DNkkx9WqUuG7jOMayrgo7XhJTGs2UI\nxhZCvGf7Ra9GccePF+mf3NrfBs4sUJWI5joiKSdcikjU+CMdGObdsbN5/cJh\nU3YMXvrgdZqbwChNq2EqsZBxHxtVvuQ0E6c2CbuPTMH/sfV/ptfpFRajMpKE\nbeDs2Usa2/myzB5pE+/r/VY06B+lT/NpoXgv/TRg1aprvChwJsJwO5aF2FKW\n/Zj+zzjvjDJGA5QwRiAC5K582pvY4hOkavaO2pgJc+wMtJa27LbYaR27PzTP\nLrocOfvf2hmDFOh1CgCLFuN5ut2JiaQ2d5CNIiZXiiPK7fGgHlWzFSvL62ag\nMt4S4mkC5bJ/bpnXVHYrjqCvrvxJMnekv3+33+3gzR7QD1zK+dKaNuIdmgHZ\nVX3w36raau1tOLe1tMlHhhyRwZEe7Ekx5wb39jB2XuwVH9E73o6vpLdUlqtP\nFNeGRPu9uURmC+raL8ny3hGB6fw3IoffyzV1ZXQgvrumUEM1suUsvBhyI4ox\nEPGi\r\n=Fmgg\r\n-----END PGP SIGNATURE-----\r\n","size":10177,"noattachment":false,"key":"/imod/-/imod-1.0.0-beta.1.tgz"},"main":"src/index.js","types":"src/index.d.ts","engines":{"node":">= 8.15.0"},"gitHead":"04d09153778e2e833441be31e9dbd9f10286d32c","scripts":{"dev":"npm run lint && npm run clean && tsc -w","lint":"tslint --project tsconfig.json --format stylish --fix","test":"# npm run build && npm run jasmine","build":"npm run clean && npm run lint && tsc","clean":"rimraf {src,test,spec,__tests__,scriptsty}/**/*.{js,map,d.ts}","debug":"node --inspect-brk src/index.js","jasmine":"nyc jasmine '{src/**/,}{test,spec,__tests__}/**/*.js'","prepublish":"npm run test"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_npmVersion":"6.11.2","description":"","directories":{},"_nodeVersion":"10.16.0","dependencies":{"ora":"^3.4.0","globy":"^0.1.8","tslib":"*","yargs":"^14.0.0","colors":"^1.4.0","rollup":"^1.22.0","standard":"^14.3.1","update-notifier":"^3.0.1","rollup-plugin-typescript2":"^0.24.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","rimraf":"^3.0.0","tslint":"5.20.0","jasmine":"^3.5.0","typescript":"^3.6.3","@types/node":"^11.13.21","@types/jasmine":"^3.4.2","@types/shelljs":"^0.8.5","tslint-config-standard":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/imod_1.0.0-beta.1_1570070467423_0.25074439776922386","host":"s3://npm-registry-packages"},"readme":"# iMod\n\n\n---\n\n## 1. Install\n\n```bash\nyarn global add imod\n# or\nsudo npm install imod -g\n```\n\n## 2. Showcase\n\n### create a new project:\n```bash\nimod init ./hello\n```\n\n### with an existing project:\n\nadd these into [package.json](https://github.com/haozi/imod-template-module/blob/master/package.json#L7)\n\n```json\n{\n  \"main\": \"dist/index.js\",\n  \"module\": \"dist/index.mjs\",\n  \"types\": \"dist/types/index.d.ts\",\n  \"scripts\": {\n    \"build\": \"imod build\",\n    \"dev\": \"imod dev\"\n  }\n}\n```\n\n### with cli\n```bash\nimod dev\nimod build\n```\n\n### with JavaScript\n```typescript\nimport Imod from 'imod'\nconst iMod = new IMod({\n  cwd: __dirname + '/../..'\n})\n\niMod.build()\niMod.dev()\n```\n\n### create an example:\n\n```bash\nimod init ./hello --templateName=module --lite=true # If you don't use '--lite', it will try to install node_modules\n```\n\n## 3. Advanced configuration\n\n* you can add a config at `package.json`, `./imod.config.js`, `./imod.config.json`, `./imodconfig.js`, `./imodconfig.json`\n* The order in which imod looks up is `./imod.config.js` -> `./imod.config.json` -> `imodconfig.js` -> `imodconfig.json` -> `${package.json}.config.imod`\n\n\nthis is the default configuration:\n\n```javascript\nmodule.exports = {\n  name: moduleName, // if not set, will guess from ${package.json}.name\n  banner: '', // if not set, return ''\n  input: '', // string | string[] | null. if not set, will find src/index*{.ts,.tsx,.js,.jsx,.es6,.es,.mjs}\n  outDir: '', // string. default is './dist'\n  declarationDir: false,  // string | false. if false will no typings\n  compilerOptions: [\n    {\n      format: 'esm',\n      extName: '.mjs',\n      target: 'esnext'\n    },\n    {\n      format: 'cjs',\n      extName: '.js',\n      target: 'es5'\n    },\n    {\n      format: 'umd',\n      extName: '.min.js',\n      target: 'es5'\n    }\n  ]\n}\n```\n","publish_time":1570070467563,"_cnpm_publish_time":1570070467563,"dist-tags":{"latest":"1.5.0"}}