Files
image-sequencer/Gruntfile.js
2017-01-02 17:05:21 -05:00

60 lines
1.3 KiB
JavaScript

module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');
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/ImageBoard.js'
],
dest: 'dist/imageboard.js'
}
},
/*
jasmine: {
imageboard: {
src: 'dist/*.js',
options: {
specs: 'spec/javascripts/*spec.js',
vendor: [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js'
]
}
}
}
*/
});
/* Default (development): Watch files and build on change. */
grunt.registerTask('default', ['watch']);
grunt.registerTask('build', [
'browserify:dist'
]);
// grunt.loadNpmTasks('grunt-contrib-jasmine');
};