meshviewer/tasks/development.js
Xaver Maierhofer 5600832305
[TASK] Move to es5 eslint airbnb
Step forward to es6 airbnb
2017-01-30 00:51:12 +01:00

44 lines
929 B
JavaScript

module.exports = function exports(grunt) {
'use strict';
grunt.config.merge({
'browserSync': {
dev: {
bsFiles: {
src: [
'build/*.css',
'build/*.js',
'build/*.html'
]
},
options: {
open: 'local',
watchTask: true,
injectChanges: true,
server: {
baseDir: 'build',
index: 'index.html'
}
}
}
},
watch: {
html: {
files: ['html/index.html', 'config.json'],
tasks: ['copy', 'inlinedata', 'htmlmin']
},
sass: {
files: ['scss/**/*.scss'],
tasks: ['sasslint', 'sass', 'postcss']
},
js: {
files: ['app.js', 'lib/**/*.js'],
tasks: ['eslint', 'requirejs:dev']
}
}
});
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-watch');
};