{"_id":"@alextanhongpin/gen-cli","_rev":"2-715bba5be5d065bd5af6247fb79c18ce","name":"@alextanhongpin/gen-cli","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@alextanhongpin/gen-cli","version":"1.0.0","description":"A code generation utility","main":"lib/index.js","scripts":{"test":"jest --notify --watch","exec":"npm i -g && gen","build":"npx babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\" --watch"},"bin":{"gen":"lib/index.js"},"keywords":[],"author":{"name":"alextanhongpin","email":"alextan220990@gmail.com"},"license":"ISC","dependencies":{"chalk":"^4.1.0","clear":"^0.1.0","commander":"^6.0.0","figlet":"^1.5.0","handlebars":"^4.7.6","inquirer":"^7.3.2","json5":"^2.1.3","treeify":"^1.1.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.10.5","@babel/node":"^7.10.5","@babel/plugin-transform-runtime":"^7.10.5","@babel/preset-env":"^7.10.4","babel-jest":"^26.1.0","core-js":"^3.6.5","jest":"^26.1.0","rimraf":"^3.0.2"},"jest":{"modulePathIgnorePatterns":["<rootDir>/templates/"]},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/alextanhongpin/gen-cli.git"},"bugs":{"url":"https://github.com/alextanhongpin/gen-cli/issues"},"homepage":"https://github.com/alextanhongpin/gen-cli#readme","gitHead":"ee1a61acb0167f77aa649e04ff78cbf02c2cb0b6","_id":"@alextanhongpin/gen-cli@1.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dUmnsTsRxduGyywA9o+QPwtescLJmyvcxMJkGlm+7W9Ji50nsWi62qKWjLeroCTh++zArgnFulbWThQuOEO5qg==","shasum":"2b86890b6a293bf2cfcb11fee3bad773b9bef0af","tarball":"https://registry.npmjs.org/@alextanhongpin/gen-cli/-/gen-cli-1.0.0.tgz","fileCount":20,"unpackedSize":39921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFnZSCRA9TVsSAnZWagAApCIP+wTqq7MBWAGGJPQSdBKS\nYYHYETrNGisxCXlVuH2rMp73yMF+Z2ALGd//N6Y2NROCep/+4YO4jJxoTeWf\npFRGiV42ld74TfJLLX1ZrAon8YiCBa27O3/6dNy34fNmCf9E7KUxlwYHJag5\nvypX5kiG3Pxt9MhOHDEaFObHNHJqfjYjnkSJ1X6SdBwCAeRA6u6lmSavMDuE\n1D3nghOoyv+KGXsX4SjEYa6XIxCycVYMCmgK5Vfxrg7GABN3hL8KMDhNvb/E\n4MDLp+5qSs57mI/BJPNiElZmIfKn8PJWPQrC0aBXyVDw5cv1MMz0/vXLzNoX\no2+pu7DP26xYCKOMV5jpT6d4Is44UIEnvzz0rCfuu3NZiIO9qZ5cfwojPi7m\nrbUAwPysckRwIeDCVptzmSp7HR1fBh7x+gXnFxmwnLmT9Nw+v/PGCb1f3XGy\nUldVbU68CMIyDYMT0dgSqiQu9ZUOMJM/Hc0j3dd3nrk+/jnd6NWltLB7lDNM\nVj7DtlX/9tD8GFQPUetZT2QyQ2BoqmW3sXnRg5C/Dm0IIvt2dNDGdfbc3/pf\nUvaFbpUsvZfdfGDIQf7TbnI1A0CveIRcoFPaKXUO//4rJ5GNGHMCeNtohAmB\nz9dBzcoBk+7QIIGqevFpe1v5duzgpLmtoXnWkPMysYVQxNFhtmKY4NrKwFRS\n6gu4\r\n=ql1c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSkHN00I9j+UlbOURDEtlsyAhbf778/7WiKpCI7s3ILAIgCuf9w88E4HH/b+5nRF9MzcW9MkxV5b3bkYVzk53hhoA="}]},"maintainers":[{"name":"alextanhongpin","email":"alexander.hongpin@gmail.com"}],"_npmUser":{"name":"alextanhongpin","email":"alexander.hongpin@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gen-cli_1.0.0_1595307601547_0.3987885377055582"},"_hasShrinkwrap":false},"2.0.0":{"name":"@alextanhongpin/gen-cli","version":"2.0.0","description":"A code generation utility","main":"lib/index.js","scripts":{"test":"jest --notify --watch","exec":"npm i -g && gen","build":"npx babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\" --watch"},"bin":{"gen":"lib/index.js"},"keywords":[],"author":{"name":"alextanhongpin","email":"alextan220990@gmail.com"},"license":"ISC","dependencies":{"chalk":"^4.1.0","clear":"^0.1.0","commander":"^6.0.0","figlet":"^1.5.0","handlebars":"^4.7.6","inquirer":"^7.3.2","json5":"^2.1.3","treeify":"^1.1.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.10.5","@babel/node":"^7.10.5","@babel/plugin-transform-runtime":"^7.10.5","@babel/preset-env":"^7.10.4","babel-jest":"^26.1.0","core-js":"^3.6.5","jest":"^26.1.0","rimraf":"^3.0.2"},"jest":{"modulePathIgnorePatterns":["<rootDir>/templates/"]},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/alextanhongpin/gen-cli.git"},"bugs":{"url":"https://github.com/alextanhongpin/gen-cli/issues"},"homepage":"https://github.com/alextanhongpin/gen-cli#readme","gitHead":"8f30d99823ecfab45b272922e5a7248b0f645f08","_id":"@alextanhongpin/gen-cli@2.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-YGatYdfuERefoREzSEIs1ZqBZnXfPDjIXAvK+Sh5QlGRW4f7IfClsj1+Q4mAgAUtxrSMzYK//NIHWHXIuzriZA==","shasum":"c88431dc7c9e4ee9a6a90531b71967e5d68f903d","tarball":"https://registry.npmjs.org/@alextanhongpin/gen-cli/-/gen-cli-2.0.0.tgz","fileCount":22,"unpackedSize":38497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKlPnCRA9TVsSAnZWagAAM18P/joQtUrQ2MteEK+MaqHD\nCptkQvDWGNxP2D+BvePfMEU27Jng4VCTl+/wrP6cYf1XNbjhCoYHjA20GH/X\nWqJdP7ChZtsk77h6N7fnyAm55Vp15u4z65NyJSdomUHX+cQ9Ek02y2OhlQbu\nPeW7g+staqtVh0ANm+D7m8h1CYNXVMo+YpRT8jIX77TSuxgL69YHj8FfsHj6\nksUAGC9QYpTFhUCj5F9iEkJmqsyfSoou10P+uqvDk+U3vibEdXLnZIRONsnL\nNyfXWfSQjl9KjYB7FyeKF1Kts3cSuItzKbQwrPaijXEiBL7thGZX580Anpcu\n0kPoivbUu8kvlRmI9EaxpD5xYdPHr3BdxEa1D82qsOufNquowpRSibmb6V8E\niE2PQK2SSQT+fxw4rdBBtnS/5pb2jpHVF+Cl86SF5Us8EY66ruKaxsSAF2Pt\n3bRHF+Q4FH5XICbiNSOHWMNnG3dqLE7rF/x8bJOwgfmNNC3I/8OA8iOrtHhq\n6u94jStPvbnZ7158RuIkKVkyHjCztMVqG7FG9/4L6pg+5UcZnNrNtUuwWbSC\nYWrR55lA0C0GCWLeq0Ogr3OoPjm2aVp/ivWi93KXIH2lAgQFwzYRqziHfs8z\nTmUNYLpfdPppWELxGcNsvrEkOeEbNd4uWEe9fbPiAND2QEyWgxAMMsl+MWIx\nwW7o\r\n=jp9p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7wTZXK4yYjoXufSgm9jlITWWPt8qcfgHHxaRA6QzcawIhAN4Q97ZU739Zw87WBlhP7y3WAZuHAm1ttY3j5SuHPzNg"}]},"maintainers":[{"name":"alextanhongpin","email":"alexander.hongpin@gmail.com"}],"_npmUser":{"name":"alextanhongpin","email":"alexander.hongpin@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gen-cli_2.0.0_1596609511460_0.9232223472083887"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-21T05:00:01.498Z","1.0.0":"2020-07-21T05:00:01.758Z","modified":"2022-04-04T12:41:49.711Z","2.0.0":"2020-08-05T06:38:31.613Z"},"maintainers":[{"name":"alextanhongpin","email":"alexander.hongpin@gmail.com"}],"description":"A code generation utility","homepage":"https://github.com/alextanhongpin/gen-cli#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/alextanhongpin/gen-cli.git"},"author":{"name":"alextanhongpin","email":"alextan220990@gmail.com"},"bugs":{"url":"https://github.com/alextanhongpin/gen-cli/issues"},"license":"ISC","readme":"# Gen-CLI\n\nCode generation with js.\n\n## Configuration\n\nExample `config.json` that contains two commands, `controller` and `service`. Calling `$ gen g controller foo` will then create the template files first if it doesn't exist, and then the destination files. See `config.sample.json5`.\n\n\n## Usage\n\n```bash\n# Initialize config file.\n$ gen init\n\n# Run the template generation.\n$ gen g <type> <name>\n```\n\n## Templating\n\nUses `handlebar.js` because it allows us to register helpers.\n\n\n## TODO\n\n- [x] read config from package.json, \"gen\"\n- [x] ~force overwrite if exists~ warn if exists\n- [ ] better UI\n- [x] allow configuration of templates (passing helpers)\n- [ ] compile to supported js versions\n- [ ] a golang version\n","readmeFilename":"README.md"}