2015-03-29 12:43:02 +00:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.config.merge({
|
|
|
|
connect: {
|
|
|
|
server: {
|
|
|
|
options: {
|
2016-05-22 21:39:19 +00:00
|
|
|
base: {
|
|
|
|
path: 'build',
|
|
|
|
options: {
|
|
|
|
index: 'index.html'
|
|
|
|
}
|
|
|
|
},
|
2015-03-29 12:43:02 +00:00
|
|
|
livereload: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
sources: {
|
|
|
|
options: {
|
|
|
|
livereload: true
|
|
|
|
},
|
2015-08-05 09:28:46 +00:00
|
|
|
files: ["*.css", "app.js", "lib/**/*.js", "*.html"],
|
2015-03-29 12:43:02 +00:00
|
|
|
tasks: ["default"]
|
|
|
|
},
|
|
|
|
config: {
|
|
|
|
options: {
|
|
|
|
reload: true
|
|
|
|
},
|
|
|
|
files: ["Gruntfile.js", "tasks/*.js"],
|
|
|
|
tasks: []
|
|
|
|
}
|
|
|
|
}
|
2016-05-22 11:23:43 +00:00
|
|
|
});
|
2015-03-29 12:43:02 +00:00
|
|
|
|
2016-05-22 11:23:43 +00:00
|
|
|
grunt.loadNpmTasks("grunt-contrib-connect");
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-watch");
|
|
|
|
};
|