Skip to content

Commit

Permalink
Watch task
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Jul 2, 2015
1 parent b72ce21 commit f08822a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,23 @@ module.exports = function (grunt) {
src: 'api/latest/<%= PROJECT_NAME %>.js',
dest: '<%= build_dir %>/<%= PROJECT_NAME %>-<%= ENGINE_VERSION %>.js'
}
},
watch: {
scripts: {
files: ["<%= concat.engine.src %>", "Gruntfile.js"],
tasks: ["snapshot"],
options: {
spawn: false,
},
},
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');

// Builds snapshot libs within api/latest
// Run this when testing examples locally against your changes before committing them
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-copy": "~0.8.0",
"grunt-contrib-jasmine": "~0.8.2",
"grunt-contrib-qunit": "~0.5.2"
"grunt-contrib-qunit": "~0.5.2",
"grunt-contrib-watch": "~0.6.1"
},
"engines": {
"node": ">=0.10.17",
Expand Down

0 comments on commit f08822a

Please sign in to comment.