2015-03-29 14:43:02 +02:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.config.merge({
|
|
|
|
connect: {
|
|
|
|
server: {
|
|
|
|
options: {
|
|
|
|
base: "build/", //TODO: once grunt-contrib-connect 0.9 is released, set index file
|
|
|
|
livereload: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
sources: {
|
|
|
|
options: {
|
|
|
|
livereload: true
|
|
|
|
},
|
2015-08-05 11:28:46 +02:00
|
|
|
files: ["*.css", "app.js", "lib/**/*.js", "*.html"],
|
2015-03-29 14:43:02 +02:00
|
|
|
tasks: ["default"]
|
|
|
|
},
|
|
|
|
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");
|
|
|
|
};
|