meshviewer/tasks/development.js

44 lines
968 B
JavaScript
Raw Normal View History

module.exports = function exports(grunt) {
'use strict';
2016-05-27 21:59:01 +00:00
2015-03-29 12:43:02 +00:00
grunt.config.merge({
'browserSync': {
dev: {
bsFiles: {
src: [
'build/*.css',
'build/*.js',
'build/*.html'
]
},
2015-03-29 12:43:02 +00:00
options: {
open: 'local',
watchTask: true,
injectChanges: true,
server: {
baseDir: 'build',
index: 'index.html'
}
2015-03-29 12:43:02 +00:00
}
}
},
watch: {
html: {
2017-01-28 14:33:13 +00:00
files: ['html/index.html', 'config.json', 'locale/*.json'],
tasks: ['copy', 'inline:dev', 'htmlmin', 'json-minify']
2015-03-29 12:43:02 +00:00
},
sass: {
files: ['scss/**/*.scss'],
2017-02-03 00:54:45 +00:00
tasks: ['sasslint', 'sass:dev', 'postcss:dev']
},
js: {
files: ['app.js', 'lib/**/*.js'],
tasks: ['eslint', 'requirejs:dev']
2015-03-29 12:43:02 +00:00
}
}
});
2015-03-29 12:43:02 +00:00
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-watch');
};