0.1.0 • Published 12 years ago
generator-canjs-plugin v0.1.0
CanJS Plugin Generator
A generator for Yeoman that scaffolds a CanJS plugin.
For more information read the CanJS Plugin Guide
Usage
Install Yeoman and generator-canjs-plugin
$ npm install -g yo generator-canjs-pluginMake a new directory and cd into it:
$ mkdir my-plugin && cd my-pluginThen run the generator to scaffold your plugin:
$ yo generator-canjs-pluginWorkflow
All source files for the plugin reside in the src directory.
Qunit tests reside in the test directory.
Distributable versions of the plugin will be placed in the dist directory.
Grunt tasks
The following Grunt tasks are available:
Runs jsbeautifier and JSHint:
$ grunt qualityRuns tests:
$ grunt testRuns tests and generates distributable files:
$ grunt buildRegister with Bower
$ bower register <plugin-name> <git-endpoint>Bower uses git tags for versioning.
To publish a new version:
- Modify the version number in
bower.json - Tag a new version and push to origin
$ git add .
$ git commit -m 'Update to vX.Y.Z'
$ git tag -a vX.Y.Z -m 'vX.Y.Z'
$ git push --tags origin masterChangelog
0.0.1
- Initial release
License
0.1.0
12 years ago
