mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-07 08:50:04 +01:00
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.loadNpmTasks('grunt-browserify');
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
|
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
|
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
watch: {
|
|
options : {
|
|
livereload: true
|
|
},
|
|
source: {
|
|
files: [
|
|
'src/*.js',
|
|
'src/*/*.js',
|
|
'Gruntfile.js'
|
|
],
|
|
tasks: [ 'build:js' ]
|
|
}
|
|
},
|
|
|
|
browserify: {
|
|
dist: {
|
|
src: ['src/ImageSequencer.js'],
|
|
dest: 'dist/image-sequencer.js'
|
|
}
|
|
},
|
|
|
|
uglify: {
|
|
dist: {
|
|
src: ['./dist/image-sequencer.js'],
|
|
dest: './dist/image-sequencer.min.js'
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
/* Default (development): Watch files and build on change. */
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
grunt.registerTask('build', [
|
|
'browserify:dist',
|
|
'uglify:dist'
|
|
]);
|
|
|
|
};
|