Skip to content

Commit

Permalink
Add bin
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpogi5 committed May 13, 2020
1 parent 287bc6b commit c6cfac3
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 24 deletions.
13 changes: 11 additions & 2 deletions bin/kdc-create-nodejs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env node

var run = require('../lib');
run();
const { program } = require('commander');

program
.name('npx @kdcsoftware/create-nodejs')
.usage('<package-name>')
.arguments('<package-name>', 'Name of your package')
.action(function (packageName) {
// console.log(packageName);
require('../lib')({ packageName });
});
program.parse(process.argv);
74 changes: 54 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"homepage": "https://github.com/kdcsoftware/create-boilerplate#readme",
"dependencies": {
"commander": "^5.1.0",
"execa": "^4.0.1",
"fs-extra": "^9.0.0",
"yargs": "^15.3.1"
"fs-extra": "^9.0.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
Expand Down

0 comments on commit c6cfac3

Please sign in to comment.