Skip to content

Commit

Permalink
Revise Gruntfile (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar authored and jywarren committed Mar 18, 2019
1 parent 5e33c69 commit b8beec9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ module.exports = function(grunt) {
},
source: {
files: ["src/**/*", "Gruntfile.js", "examples/lib/*","examples/demo.js"],
tasks: ["build:js"]
tasks: ["browserify"]
}
},

browserify: {
dist: {
core: {
src: ["src/ImageSequencer.js"],
dest: "dist/image-sequencer.js"
},
js: {
ui: {
src: ["examples/demo.js"],
dest: "dist/image-sequencer-ui.js"
}
},

uglify: {
dist: {
core: {
src: ["./dist/image-sequencer.js"],
dest: "./dist/image-sequencer.min.js"
},
js: {
ui: {
src: ['dist/image-sequencer-ui.js'],
dest: 'dist/image-sequencer-ui.min.js'
}
Expand All @@ -53,6 +53,7 @@ module.exports = function(grunt) {

/* Default (development): Watch files and build on change. */
grunt.registerTask("default", ["watch"]);
grunt.registerTask("build", ["browserify:dist","browserify:js","uglify:dist","uglify:js"]);
grunt.registerTask("serve", ["browserify:dist","browserify:js","uglify:dist","uglify:js","browserSync", "watch"]);
grunt.registerTask("build", ["browserify", "uglify"]);
grunt.registerTask("serve", ["browserify", "browserSync", "watch"]);
grunt.registerTask("compile", ["browserify"]);
};

0 comments on commit b8beec9

Please sign in to comment.