-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathGruntfile.js
61 lines (57 loc) · 956 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(grunt) {
require("load-grunt-tasks")(grunt);
var config = {
copy : {
img : {
files : [{
src : "**",
dest : "site/",
expand : true,
cwd : "img"
}]
}
},
less : {
run : {
src : "less/**/*",
dest : "build/styles.css"
}
},
markdown : {
index : {
options : {
template : "layout.html",
gfm: false
},
files : [{
src : ["content.md"],
dest : "site/index.html"
}],
}
},
watch : {
rebuild : {
files : ["layout.html", "content.md", "img/**/*", "less/**.*"],
tasks : ["default"]
}
},
jshint : {
nag : {
files : [{
src : ["examples/**/*.js",
"!examples/**/lib/*.js",
"lib/**/*.js",
"index.js",
"Gruntfile.js"]
}],
options : {
jshintrc : true
}
}
}
};
grunt.registerTask("default", [
"less:run", "copy:img", "markdown:index"
]);
grunt.initConfig(config);
};