{"name":"imod","version":"1.1.6","keywords":["rollup","tiny module","typescript"],"license":"MIT","_id":"imod@1.1.6","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":"902618e8cbe04b41fca3f6d322959fec197b1ada","tarball":"http://registry-npm.ywwl.com/imod/download/imod-1.1.6.tgz","fileCount":31,"integrity":"sha512-yuZOz5aqJLgYj5IVjsXNo0PL8zKNJlJijXvlDx/BCkrjUABr5502dFF2qkrk3gb0Hafwnpn4pBeTKMh2eu2Rxw==","signatures":[{"sig":"MEUCIQDHViYqO3hM78vdhxnEbczX6fEwtGAcLQit/dlEKFdOuAIgCbvueaMclz5pTTIYiV5qXqj49gJK3LcUPdLbTF8HeG8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpD4ICRA9TVsSAnZWagAAL+IP/iG2F+ukVUipi+rWRMsd\nLpRpByPy/wtaueUmLGMFlII6od8q56m3ukhHycFAo1EFoiXXJ2Qa920//rgB\nXuCFIltLnI8n02BMtxlU9F7QbUAxlxaB3ZoMZ46Np9WKtA4+1i9B1dXQLjRe\nqJNlHGS5Hiax+HBVsDJyFTDMSt6KqxQx+xKeGNUJAcidaNQ5NXj1MBSiiMl1\nH82Y5HkgZjFa+z5E6po+fFzeGMif/paFMVHioceBFk1nOJ+Xk6P/Gw3YXyGG\n/1I1RM9CqDlLScmwG4hLtB0gkHK/csrC+XhnGr8iv2BFqTygC5gK3/qqQJ9X\nki7EgHyjcfwJt4eqp2w/5l2zWO+E5Wz4LA58+cSnasqMEHwjvVSpynJJ+mxG\n2PzLs2w5+OZW4aWDfgbU15gIcu/DaC3c7wQXOeSqj/AT/oykC4RdjHM8p1sC\npLkkmpuSAl34cX8ij4Z50uSfR1i3cAqP9ogLRlsGmRoGIkWm4TcTQZUI4+vD\nQ4AT7mvtR6pWt9F87Xd6Dz2X7y3AkxbQph0Mmg6/tHLKtlPzT9GWYfVwUneG\ngXEJvV7eQRsMSEyUoltBha+3sj8inSjDrh7ss/Vrd6fiq1rAho/lU96gae1q\nyU7ecR7WSpsYsbYIO5V5kVOn5q3bC6DON7Usk+D1foVgvvvNAuMvDfMgC0f+\np/6U\r\n=HVi4\r\n-----END PGP SIGNATURE-----\r\n","size":12515,"noattachment":false,"key":"/imod/-/imod-1.1.6.tgz"},"main":"src/index.js","types":"src/index.d.ts","engines":{"node":">= 4"},"gitHead":"54ec637290b1f11c73fc160fb14b38d0328452ea","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":"*","yargs":"^14.2.0","colors":"^1.4.0","mkdirp":"^0.5.1","rimraf":"^3.0.0","rollup":"^1.23.1","jsonuri":"^2.1.9","standard":"^14.3.1","camelcase":"^5.3.1","typescript":"*","@types/node":"^12.7.12","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.0","jasmine":"^3.5.0","@types/jasmine":"^3.4.2","@types/shelljs":"^0.8.5","tslint-config-standard":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/imod_1.1.6_1571044872346_0.15441639992845646","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":1571044872459,"_cnpm_publish_time":1571044872459,"dist-tags":{"latest":"1.5.0"}}