Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Closes #3. Added Grunt file watchers to generated plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Feb 16, 2014
1 parent 9185e27 commit a0845bd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ module.exports = function (grunt) {
all: {
src: ['test/**/*.test.js']
}
},
watch: {
scripts: {
files: '**/*.js',
tasks: ['jshint', 'simplemocha'],
options: {
}
}
}
});

Expand All @@ -25,5 +33,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-simple-mocha');

grunt.registerTask('test', 'simplemocha');
grunt.registerTask('default', ['jshint', 'simplemocha']);
grunt.registerTask('default', ['jshint', 'simplemocha', 'watch']);

};
1 change: 1 addition & 0 deletions app/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ See the [docs](docs/).
## License

Copyright (c) <%= currentYear %> <%= realname %>

Licensed under the [MIT license](LICENSE).
3 changes: 2 additions & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"grunt": "~0.4.1",
"grunt-release": "~0.5.1",
"grunt-contrib-jshint": "~0.x",
"grunt-simple-mocha": "~0.4.0"
"grunt-simple-mocha": "~0.4.0",
"grunt-contrib-watch": "~0.5.3"
},
"peerDependencies": {
"feathers": "~0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-feathers-plugin",
"version": "0.2.0",
"version": "0.3.0",
"description": "A generator for Feathersjs Plugins.",
"keywords": [
"yeoman-generator",
Expand Down

0 comments on commit a0845bd

Please sign in to comment.