2015-03-29 12:43:02 +00:00
|
|
|
module.exports = function (grunt) {
|
2016-05-27 21:59:01 +00:00
|
|
|
"use strict";
|
|
|
|
|
2015-03-29 12:43:02 +00:00
|
|
|
grunt.config.merge({
|
2016-05-29 14:38:57 +00:00
|
|
|
"browserSync": {
|
|
|
|
dev: {
|
|
|
|
bsFiles: {
|
|
|
|
src: [
|
|
|
|
'build/*.css',
|
|
|
|
'build/*.js',
|
|
|
|
'build/*.html'
|
|
|
|
]
|
|
|
|
},
|
2015-03-29 12:43:02 +00:00
|
|
|
options: {
|
2016-05-29 14:38:57 +00:00
|
|
|
open: 'local',
|
|
|
|
watchTask: true,
|
|
|
|
injectChanges: true,
|
|
|
|
server: {
|
|
|
|
baseDir: "build",
|
|
|
|
index: "index.html"
|
|
|
|
}
|
2015-03-29 12:43:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
2016-05-29 14:38:57 +00:00
|
|
|
html: {
|
|
|
|
files: ["html/index.html"],
|
2016-06-01 20:20:14 +00:00
|
|
|
tasks: ["copy", "inlinedata"]
|
2015-03-29 12:43:02 +00:00
|
|
|
},
|
2016-05-29 14:38:57 +00:00
|
|
|
sass: {
|
|
|
|
files: ["scss/**/*.scss"],
|
|
|
|
tasks: ["sasslint", "sass"]
|
|
|
|
},
|
|
|
|
js: {
|
|
|
|
files: ["app.js", "lib/**/*.js"],
|
|
|
|
tasks: ["eslint", "requirejs:dev"]
|
2015-03-29 12:43:02 +00:00
|
|
|
}
|
|
|
|
}
|
2016-05-22 11:23:43 +00:00
|
|
|
});
|
2015-03-29 12:43:02 +00:00
|
|
|
|
2016-05-29 14:38:57 +00:00
|
|
|
grunt.loadNpmTasks("grunt-browser-sync");
|
2016-05-22 11:23:43 +00:00
|
|
|
grunt.loadNpmTasks("grunt-contrib-watch");
|
|
|
|
};
|