-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
51 lines (48 loc) · 1.07 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
module.exports = function(grunt) {
grunt.initConfig({
copy: {
jquery: {
files: [
{expand: true, cwd: 'bower_components/jquery/dist/', src: 'jquery.min.js', dest: 'assets/js/'}
]
}
},
sass: {
dist: {
options: {
style: 'compressed'
},
files: [
{expand: true, cwd: '_sass/', src: 'application.scss', dest: 'assets/css/', ext: '.css'}
]
}
},
exec: {
build: {
cmd: 'jekyll build'
},
serve: {
cmd: 'jekyll serve --watch --host 0.0.0.0'
},
serve_resume: {
cwd: 'resume',
cmd: 'resume serve -s -p 4001'
},
build_resume: {
cwd: 'resume',
cmd: 'node export.js'
},
update_npm: {
cmd: 'npm install'
},
update_bower: {
cmd: 'bower install'
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', [ 'copy', 'sass', 'exec:build_resume', 'exec:build' ]);
grunt.registerTask('setup', ['exec:update_npm', 'exec:update_bower']);
};