Skip to content

Latest commit

 

History

History
 
 

README.md

dojo-cli-example

An example of working with @dojo/cli.

Usage

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 install

To build the command, use:

grunt dev

Features

This 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

How do I contribute?

We appreciate your interest! Please see the Dojo Meta Repository for the Contributing Guidelines and Style Guide.

Installation

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.

Testing

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

Licensing Information

© 2017 JS Foundation. New BSD license.