-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
30 lines (26 loc) · 1.01 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var build = require("./build/build");
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
build: {
scripts: { files: [{ src: "./private/web/js/views/pages/*.js", dest: "./public/js" }] },
stylesheets: { files: [{ src: "./private/web/styles/*.less", dest: "./public/styles" }] }
},
watch: {
scripts: {
files: ["./private/web/js/**"],
tasks: ["build:scripts:debug"]
},
stylesheets: {
files: ["./private/web/styles/**"],
tasks: ["build:stylesheets:debug"]
}
}
});
grunt.registerMultiTask("build", build.build);
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask("default", ["build:scripts", "build:stylesheets"]);
grunt.registerTask("debug", ["build:scripts:debug", "build:stylesheets:debug"]);
grunt.registerTask("heroku", ["default"]);
};