This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
meshviewer/tasks/development.js

44 lines
960 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', 'locale/*.json'],
tasks: ['copy', 'inlinedata', 'htmlmin', 'json-minify']
},
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');
};