{"name":"imod","version":"0.0.0","author":"","license":"ISC","_id":"imod@0.0.0","maintainers":[{"name":"haozime","email":"syntaxright@gmail.com"}],"dist":{"shasum":"c4e102666f81d25d6fcfc8322f8ad99b1d8f2bb3","tarball":"http://registry-npm.ywwl.com/imod/download/imod-0.0.0.tgz","fileCount":1,"integrity":"sha512-5QuI+01IhCTqKsHg0obmCx80+XMEyIRvlhiw1nU38INnbfuwGr9217gyxgRGLPK7WPqIA8E6orilLJcGE1R6wQ==","signatures":[{"sig":"MEUCIQCYzSXEC2PvYxu6BPuw0GP9Nnqpm0Zb2TBw5iPqt6kYfwIgKwmKyoSLbrgYKsUHNHHIrm3DKzfT1gKWbQekXwdTHaQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgb+hCRA9TVsSAnZWagAAh7kQAJfwSjDsB2LtkhLP3ZaO\nrcx6KxG1WU6YKyHmkmr2uAp54DyVb/aJM41mWCb1ZN5q3nrcxc2v9pGOYJT6\n7FsCsqrsXhmqBM6PYLTozUkBKz90NTLSFOFQxj+q2PY67AAXe/tnUhC//zOU\ncHLOifoajH7G3fliRVtguynWDey0OxvAZzgqsxoqlPyMjh9taxuIg++d5EeG\nkHvjj09NrUcOSA7MIehmsEJwTFqZqWkV0uL3ca4cjG6bLwQoWfoGEae1kaI4\n/28+dMPYa4sTYU7/RxUJOBeZRyPXFFWrJnDWxuV8jSlPAdxgNNNhaUHZJYs2\nGdvW54JjS1kd0aLp+Dnau9x9DCzaKc4wnZKLnIBq+NbfrkpwP/N4Za/MuA+j\ni7Wfi4CY5sdFHYpnbxgTCyLN3M00bJAAC5Otw27NEr60fCLB1hfPL5aCdHIh\n0o56gMEzsMKZ5RMewb5Dz+TZHdA1ExTHaxqzVZeyr6qjdsxvIH2g/a+m4f8b\nevzYOutzyVfSRlpLdrYXaKUx/n3TyDNPN1YsfhnHCAGnMLBbAwwoxmdPKN/B\noNx4/zz5rmhX63YV5KMqdJ0yyeZDDcFlNIPnR56qwxcawCnM1yBKQSLyg+Mf\nevxDnFEdT88Q2IQdEndgBoaUxUkPnDCBAkyODsDGTtBPOjwuix0ZrvIRAEIE\nu0Jk\r\n=9VYc\r\n-----END PGP SIGNATURE-----\r\n","size":233,"noattachment":false,"key":"/imod/-/imod-0.0.0.tgz"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_npmVersion":"6.9.0","description":"","directories":{},"_nodeVersion":"10.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/imod_0.0.0_1568784288887_0.8545274562936367","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":1568784289064,"_cnpm_publish_time":1568784289064,"dist-tags":{"latest":"1.5.0"}}