Added grunt dev

This commit is contained in:
Ian Gilman 2015-09-16 09:39:43 -07:00
parent ab5bd6f480
commit bb2910673a
2 changed files with 9 additions and 0 deletions

View File

@ -284,6 +284,11 @@ module.exports = function(grunt) {
// Cleans the built files out of the release folder and copies newly built ones over.
grunt.registerTask("publish", ["package", "clean:release", "copy:release", "bower"]);
// ----------
// Dev task.
// Builds, fires up a server and watches for changes.
grunt.registerTask("dev", ["build", "connect", "watch"]);
// ----------
// Default task.
// Does a normal build.

View File

@ -35,6 +35,10 @@ If you want Grunt to watch your source files and rebuild every time you change o
grunt watch
To have it watch your source files and also run a server for you to test in:
grunt dev
The built files appear in the `build` folder.
If you want to build tar and zip files for distribution (they will also appear in the `build` folder), use: