node-boilerplate-cli
node-boilerplate-cli copied to clipboard
A simple boilerplate starting point for Node.js command line projects.
Start should probably be: ``` "start": "node ." ``` And not: ``` "start": "node src -h" ``` Then you can test this code using `npm start` without having to `npm...
Considering I'm already using babel, I see no reason not to switch. Just tag the current version and document in README, but I see no reason why the few stars...
https://stackoverflow.com/a/24686979/922323 Great answer. Clears up some things for me.
Example: ``` bower_components node_modules *.log .DS_Store bundle.js test test.js demo/ .npmignore LICENSE.md ``` Probably good to include a basic version in this project.
Was discussing with coworker and I said this: > I highly recommend dicking around with node CLI stuff ... It's got less stuff to worry about as it's a CLI...
This may not work exceptionally well if logic is more complex ... but, here's one quick way to do nested scripts: ```js // index.js import yargs from 'yargs'; import pkg...
This could be useful to document for those that don't want to run `npm link`: ```bash # Use as a global module: $ npm link $ boilerplate -d path/to/a/directory/ #...
http://yargs.js.org/2016/02/13/yargs-4.html#named-positional-arguments