{"name":"imod","version":"1.3.3","keywords":["rollup","tiny module","typescript"],"license":"MIT","_id":"imod@1.3.3","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":"772945486e26f4dd75b7c48fd8999f32c5efaf5c","tarball":"http://registry-npm.ywwl.com/imod/download/imod-1.3.3.tgz","fileCount":31,"integrity":"sha512-w5rFJnHW3NKLnaJYs7ruLqXiCjjwcmAu2Tkk3U7LKMWmAgteryPQmly9jrR7NgI5RFjjiQ9VDL4pS2/qqUHmIw==","signatures":[{"sig":"MEQCIBk662sE90fqa3FnMbs6XvqRlLN8IaPcY3iFLB+rFlB3AiB0XYVwDWXNBh6Q3x+juPK461AwyrieP59kAdOybU+QZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0mzbCRA9TVsSAnZWagAAR7AP+wT0i+fc01q5wLD/Cvac\nftU6WvEI3z5Kas9HaapyfdTvp987j6APen0FW88Bi9Td8jCzyBjjUvW87UJd\nqQA3x2QD/Y/KJDYn3XTDTfI9tsaqKzij0mMazxT4eJtajaIcy3x8eGIpwRLF\nGKbU1CIIYJ5Izsp4tRT9E4ASgO7Hr1wYIj2Jzb4VbXEOTg9Uk7sm3Mx9EGOs\nTIfo4thmHfbyNliCfnGJFI1Ced4JCvWG6FuQJ9BViQQgr514edmpxkatc6lg\nRj3ePbujJegtOJeomb5xpffmu0VfVF16ANQuO0W4DIBJexfS/EF0tnrtjO47\nWtOrGjjw1kgf5quEOyrkYrEkCEgVwwi0NaoKWQiqacBkuoe4iLmkdCkbhtsD\nGFZ3zV6Q7LjZRhYAAky0QfeEH6h2gWyAV9deD9skucAWb3iOPB0GC22ECYDq\nKNr3JBmNnfwCnfogsuloH/NuVW8U0nTGGFDtVrJ42D+JLxyoniiLVxBO3T0j\nf/sK5af3W92l7fQPG/J98750wyVVgjGcHqSpOApwEYoOHo+vVw/Ih7lsEvO8\nvxg0ny4/pTWBsqNfgxjePRYKp5TILxoWt4psXeKHJTAC+2JYGgshXIF4+eOi\nQRait/XFYDLsLAe+gu+gEwz4E4S5d+cZ9mVf66g/T4ymKD75ATP7gbqObGBf\nGANg\r\n=vxq6\r\n-----END PGP SIGNATURE-----\r\n","size":13000,"noattachment":false,"key":"/imod/-/imod-1.3.3.tgz"},"main":"src/index.js","types":"src/index.d.ts","engines":{"node":">= 4"},"gitHead":"104d7f64c9b91c4a92be440b4cab690a6c2413ed","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 build"},"_npmUser":{"name":"haozime","email":"syntaxright@gmail.com"},"_npmVersion":"6.9.0","description":"A bundler for tiny modules, powered by Rollup.","directories":{},"_nodeVersion":"10.16.3","dependencies":{"ora":"^3.4.0","globy":"^0.1.8","tslib":"^1.10.0","yargs":"^14.2.1","colors":"^1.4.0","mkdirp":"^0.5.1","rimraf":"^3.0.0","rollup":"^1.27.1","jsonuri":"^2.2.0","standard":"^14.3.1","camelcase":"^5.3.1","typescript":"^3.7.2","@types/node":"^12.12.8","npm-updater":"^3.0.3","rollup-plugin-uglify-es":"^0.0.1","rollup-plugin-typescript2":"^0.24.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","tslint":"^5.20.1","jasmine":"^3.5.0","@types/jasmine":"^3.4.6","@types/shelljs":"^0.8.6","tslint-config-standard":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/imod_1.3.3_1574071514667_0.9511379635591306","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":1574071514816,"_cnpm_publish_time":1574071514816,"dist-tags":{"latest":"1.5.0"}}