Watch for changes and run tests during development using grunt watch.

This commit is contained in:
Param Aggarwal
2015-08-28 22:15:57 +05:30
parent 68d45b4b9a
commit f9d308f923
2 changed files with 8 additions and 1 deletions

View File

@@ -149,7 +149,12 @@ module.exports = function(grunt) {
javaPackage: {
command: 'jar cf <%= config.distFolder %>/<%= config.libName %>.jar <%= config.javaSource %>'
}
}
},
watch: {
files: ['src/Layout.js'],
tasks: ['ci'],
},
});
// Compiles and runs the Java tests

View File

@@ -4,6 +4,7 @@
"description": "Reimplementation of CSS layout using pure JavaScript",
"main": "dist/css-layout.js",
"scripts": {
"watch": "grunt watch",
"test": "grunt ci",
"postversion": "git push --tags upstream HEAD:master"
},
@@ -24,6 +25,7 @@
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-eslint": "^17.1.0",
"grunt-execute": "^0.2.2",
"grunt-include-replace": "^3.1.0",