{"name":"imod","version":"1.5.0","keywords":["rollup","tiny module","typescript"],"license":"MIT","_id":"imod@1.5.0","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","imode":"bin/imod"},"dist":{"shasum":"7e0c00a4c4f6939befd06faf458c52be4ac6e4c3","tarball":"http://registry-npm.ywwl.com/imod/download/imod-1.5.0.tgz","fileCount":12,"integrity":"sha512-YTLYABu9rEf38yQ1xMATEiUGrmJZnvlm1Q9bUsZ4+SfQDNRJbADFQBPL4oYVe7EppmsXxQFhFc6ZBOnMcPtGzA==","signatures":[{"sig":"MEQCIAGCvWqYgNgQZZQVSC6SxuK6ya7RAOilOWtE4ogXQWaCAiAlMOBaum18V18jibjUSHReUELiakmDJ5MMSy2MzQutew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":160067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd61o4CRA9TVsSAnZWagAA5XsQAJAvq/Ob3G5Qd9emWnHy\n2Udbx8Fvj8l836Bbmeo1veIQClIKO9FxNKUSmIW6q7LwHc3deMQUZ3dR+Upb\n2NTLDp2lz5kL/sWUPJKNMyfyFbOOLq2mo6okn3nWURsdPJtOQjycXmxpwKsF\n5+XIJoE3eihTxcTPINgbFZMAxq8ilR1uFAXelNFK5bku9hw+qdCog7QPRiiN\nlSmpipXlDfNizq+WLfBfAC5dM5eCSlulAAJaTvS3dcxDKT0aDCbTTL0iJkgl\nz2J7v4YyKtt3k/VyXPydEd5b222KkLqWAF9SgQBJB4AW4oDPUagoJxCq5e/B\nGYuTfwAgB0oNRmYX5vN78biJEv2x5lAhWqQesABMYTP01luMCbLbOyaCKD2i\nAu6PmX/2x/DmFd1MhQDLmXMVGIsTGRixESSgLPdmRt0tpV6vYLhV8y7EBOcN\nyhXa9tEJ5U/F4tNP6SwRg+EPPibnyxUqXLCW2uQBxmbsUBZE/k8E8js+WI8u\nxny+waDZN6JvlM8edwkCqwnPwslpxZq7NXfKaL1SlY9XrewhtwMdtLaEJif4\nUznxqudTM4jSv+/HYTtoVwxzBZBh/nXhj5GD3C+KkVsQNvYCZMs+ciTdUu2m\n3DUb4eLTe4nRfwgO3TtUE2oGZu3imRvSZAO1tFjhlayqurN0PPjorbUw2lP8\n4QoM\r\n=V53I\r\n-----END PGP SIGNATURE-----\r\n","size":60770,"noattachment":false,"key":"/imod/-/imod-1.5.0.tgz"},"main":"src/index.js","types":"src/index.d.ts","engines":{"node":">= 8"},"gitHead":"fa571cba814bd52301ce9d8d72080669d1593a88","scripts":{"dev":"yarn run lint && yarn run clean && tsc -w","lint":"tslint --project tsconfig.json --format stylish --fix","test":"# yarn run build && yarn run jasmine","build":"yarn run clean && yarn 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'","prepublishOnly":"yarn run build"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_npmVersion":"6.11.3","description":"A bundler for tiny modules, powered by Rollup.","directories":{},"_nodeVersion":"10.17.0","dependencies":{"ora":"^4.0.3","glob":"^7.1.6","tslib":"^1.10.0","yargs":"^15.0.2","colors":"^1.4.0","mkdirp":"^0.5.1","rimraf":"^3.0.0","rollup":"^1.27.8","jsonuri":"^2.2.0","standard":"^14.3.1","camelcase":"^5.3.1","typescript":"^3.7.3","@types/node":"^12.12.14","npm-updater":"^3.0.3","@rollup/plugin-replace":"^2.2.1","rollup-plugin-uglify-es":"^0.0.1","rollup-plugin-typescript2":"^0.25.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","tslint":"^5.20.1","jasmine":"^3.5.0","@types/jasmine":"^3.5.0","@types/shelljs":"^0.8.6","tslint-config-standard":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/imod_1.5.0_1575705143598_0.6481777910795219","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":1575705143793,"_cnpm_publish_time":1575705143793,"dist-tags":{"latest":"1.5.0"}}