-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
executable file
·68 lines (56 loc) · 1.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* globals module, require */
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
sass: {
global: {
options: {
style: "expanded"
},
files: {
"css/main-unprefixed.css": "_sass/main.scss",
"css/landing-unprefixed.css": "_sass/landing.scss"
}
}
},
autoprefixer: {
global: {
src: "css/main-unprefixed.css",
dest: "css/main.css"
},
mine: {
src: "css/landing-unprefixed.css",
dest: "css/landing.css"
}
},
shell: {
jekyllServe: {
command: "jekyll serve --config _config.yml,_config-dev.yml"
},
jekyllBuild: {
command: "jekyll build --config _config.yml,_config-dev.yml"
}
},
watch: {
options: {
livereload: true
},
site: {
files: ["index.html", "blog.html", "team.html", "work.html", "_layouts/*.html", "_posts/*.md", "_work/*.md", "_includes/*.html"],
tasks: ["shell:jekyllBuild"]
},
js: {
files: ["js/*.js"],
tasks: ["uglify", "shell:jekyllBuild"]
},
css: {
files: ["_sass/*.scss"],
tasks: ["sass", "autoprefixer", "shell:jekyllBuild"]
}
}
});
require("load-grunt-tasks")(grunt);
grunt.registerTask("serve", ["shell:jekyllServe"]);
grunt.registerTask("default", ["sass", "autoprefixer", "shell:jekyllBuild", "watch"]);
};