-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
37 lines (36 loc) · 1.18 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
31
32
33
34
35
36
37
module.exports = function(grunt) {
//load tasks
grunt.loadTasks("./tasks");
grunt.registerTask("update", "Download content from remote services", function(target = stage) {
grunt.task.run(["sheets", "docs", `sync:${target}`]);
});
grunt.registerTask("content", "Load content from data files", [
"state",
"json",
"csv",
"markdown",
"archieml",
"validate"
]);
grunt.registerTask("template", "Build HTML from content/templates", [
"content",
"build"
]);
grunt.registerTask("static", "Build all files", [
"copy",
"bundle",
"less",
"template"
]);
grunt.registerTask("quick", "Build without assets", [
"clean",
"bundle",
"less",
"template"
]);
grunt.registerTask("serve", "Start the dev server", ["connect:dev", "watch"]);
grunt.registerTask("default", ["clean", "static", "serve"]);
grunt.registerTask("local", "Begin a local cron cycle", ["clean", "static", "connect:dev", "cron:10"]);
grunt.registerTask("deploy", "Deploy HTML to stage on a timer", ["static", "cron:15:publish"]);
grunt.registerTask("deploy-live", "Deploy HTML to live on a timer", ["docs", "static", "publish:live", "cron:15:publishLive"]);
};