2015-03-29 14:43:02 +02:00
|
|
|
module.exports = function (grunt) {
|
2016-05-27 23:59:01 +02:00
|
|
|
"use strict";
|
|
|
|
|
2015-03-29 14:43:02 +02:00
|
|
|
grunt.config.merge({
|
|
|
|
connect: {
|
|
|
|
server: {
|
|
|
|
options: {
|
2016-05-22 23:39:19 +02:00
|
|
|
base: {
|
2017-03-18 15:33:49 +01:00
|
|
|
path: "build",
|
2016-05-22 23:39:19 +02:00
|
|
|
options: {
|
2017-03-18 15:33:49 +01:00
|
|
|
index: "index.html"
|
2016-05-22 23:39:19 +02:00
|
|
|
}
|
|
|
|
},
|
2015-03-29 14:43:02 +02:00
|
|
|
livereload: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
sources: {
|
|
|
|
options: {
|
|
|
|
livereload: true
|
|
|
|
},
|
2016-05-26 22:29:21 +02:00
|
|
|
files: ["*.css", "app.js", "lib/**/*.js", "*.html", "scss/**/*.scss"],
|
2016-05-23 00:13:21 +02:00
|
|
|
tasks: ["dev"]
|
2015-03-29 14:43:02 +02:00
|
|
|
},
|
|
|
|
config: {
|
|
|
|
options: {
|
|
|
|
reload: true
|
|
|
|
},
|
|
|
|
files: ["Gruntfile.js", "tasks/*.js"],
|
|
|
|
tasks: []
|
|
|
|
}
|
|
|
|
}
|
2017-03-17 03:14:57 +01:00
|
|
|
});
|
2015-03-29 14:43:02 +02:00
|
|
|
|
2017-03-17 03:14:57 +01:00
|
|
|
grunt.loadNpmTasks("grunt-contrib-connect");
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-watch");
|
|
|
|
};
|