mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Added grunt dev
This commit is contained in:
parent
ab5bd6f480
commit
bb2910673a
@ -284,6 +284,11 @@ module.exports = function(grunt) {
|
|||||||
// Cleans the built files out of the release folder and copies newly built ones over.
|
// Cleans the built files out of the release folder and copies newly built ones over.
|
||||||
grunt.registerTask("publish", ["package", "clean:release", "copy:release", "bower"]);
|
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.
|
// Default task.
|
||||||
// Does a normal build.
|
// Does a normal build.
|
||||||
|
@ -35,6 +35,10 @@ If you want Grunt to watch your source files and rebuild every time you change o
|
|||||||
|
|
||||||
grunt watch
|
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.
|
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:
|
If you want to build tar and zip files for distribution (they will also appear in the `build` folder), use:
|
||||||
|
Loading…
Reference in New Issue
Block a user