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({
|
|
|
|
connect: {
|
|
|
|
server: {
|
|
|
|
options: {
|
2016-05-22 21:39:19 +00:00
|
|
|
base: {
|
2016-05-26 16:37:24 +00:00
|
|
|
path: "build",
|
2016-05-22 21:39:19 +00:00
|
|
|
options: {
|
2016-05-26 16:37:24 +00:00
|
|
|
index: "index.html"
|
2016-05-22 21:39:19 +00:00
|
|
|
}
|
|
|
|
},
|
2015-03-29 12:43:02 +00:00
|
|
|
livereload: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
sources: {
|
|
|
|
options: {
|
|
|
|
livereload: true
|
|
|
|
},
|
2016-05-26 20:29:21 +00:00
|
|
|
files: ["*.css", "app.js", "lib/**/*.js", "*.html", "scss/**/*.scss"],
|
2016-05-22 22:13:21 +00:00
|
|
|
tasks: ["dev"]
|
2015-03-29 12:43:02 +00:00
|
|
|
},
|
|
|
|
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");
|
|
|
|
};
|