@flowscripter/js-example-cli

1.2.30 • Public • Published

js-example-cli

license dependencies travis npm

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

Readme

Keywords

Package Sidebar

Install

npm i @flowscripter/js-example-cli

Weekly Downloads

1

Version

1.2.30

License

MIT

Unpacked Size

4.43 MB

Total Files

6

Last publish

Collaborators

  • vectronic