An example of working with @dojo/cli.
To use dojo-cli-example, clone the examples repository and install the npm dependencies:
git clone https://github.com/dojo/examples
cd examples/dojo-cli-example
npm installTo build the command, use:
grunt devThis project serves as an example on creating a custom command to use with @dojo/cli. The example shows:
- Registering your command with
@dojo/cli - Accepting arguments
- Performing a simple task when the command is run
We appreciate your interest! Please see the Dojo Meta Repository for the Contributing Guidelines and Style Guide.
To start working with this package, clone the repository and run npm install.
In order to build the project run grunt dev or grunt dist.
Test cases MUST be written using Intern using the Object test interface and Assert assertion interface.
90% branch coverage MUST be provided for all code submitted to this repository, as reported by istanbul’s combined coverage results for all supported platforms.
To test locally in node run:
grunt test
To test against browsers with a local selenium server run:
grunt test:local
To test against BrowserStack or Sauce Labs run:
grunt test:browserstack
or
grunt test:saucelabs
© 2017 JS Foundation. New BSD license.