js-example-cli
Example JavaScript CLI application for the cli-framework.
Development
Firstly:
npm install
then:
Build: npm run build
Watch: npm run watch
Lint: npm run lint
E2E test: npm run e2e
Run with Node (12.6.0+)
NOTE: End-to-end testing is only performed on MacOS and Linux (not Windows).
Running From Source
After building, the CLI can be run with:
bin/js-example-cli
Then run with with an invalid argument:
bin/js-example-cli foo
Then run with with a valid argument:
bin/js-example-cli greeter --subject=lovely
To run with debug logging:
DEBUG=* NODE_NO_WARNINGS=1 bin/js-example-cli
Simulated Installation
To simulate installation:
sudo npm link
js-example-cli
Installation
npm install -g @flowscripter/js-example-cli
js-example-cli
Example Plugin Support
Install a sample plugin:
js-example-cli plugin:add js-example-cli-plugin
View the new commands available:
js-example-cli help
Use the new plugin:
js-example-cli cow
Further Details
Further details on project configuration files and Javascript version support can be found in the template for this project.
License
MIT © Flowscripter