-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
93 lines (83 loc) · 2.41 KB
/
Gruntfile.coffee
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#global module:false
"use strict"
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-uglify';
grunt.loadNpmTasks "grunt-bower-task"
grunt.loadNpmTasks 'grunt-contrib-copy';
grunt.loadNpmTasks 'grunt-exec';
grunt.loadNpmTasks "grunt-contrib-connect"
grunt.loadNpmTasks "grunt-contrib-watch"
# grunt.loadNpmTasks('grunt-github-pages');
grunt.initConfig
uglify:
jquery:
files:
'_assets/js/vendor/jquery.min.js': 'bower_components/jquery/dist/jquery.js'
bootstrap:
files:
'_assets/js/vendor/bootstrap.min.js':'bower_components/bootswatch-dist/js/bootstrap.js'
d3:
files:
'_assets/js/vendor/d3.min.js':'bower_components/d3/d3.js'
bootstrapprogressbar:
files:
'_assets/js/vendor/bootstrap-progressbar.min.js':'bower_components/bootstrap-progressbar/bootstrap-progressbar.js'
select2:
files:
'_assets/js/vendor/select2.min.js':'bower_components/select2/select2.js'
copy:
bootstrap: {
files: [{
expand:true
cwd: 'bower_components/bootswatch-dist/'
src: ['**']
dest: 'assets/vendor/bootswatch/'
},
# {
# expand:true
# cwd: 'bower_components/select2-bootstrap-css'
# src: 'select2-bootstrap.css'
# dest: '_assets/css/vendor'
# }
{
expand:true
cwd: 'bower_components/jquery/dist/'
src: ['**']
dest: 'assets/vendor/jquery'
},
{
expand:true
cwd: 'bower_components/select2/'
src: ['**']
dest: 'assets/vendor/select2'
}]
}
exec:
build:
# cmd: 'jekyll build --config _config.yml,_config_dev.yml --trace'
cmd: 'jekyll build --config _config.yml --trace'
serve:
cmd: 'jekyll serve --config _config.yml,_config_dev.yml --watch'
# githubPages: {
# target: {
# options: {
# // The default commit message for the gh-pages branch
# commitMessage: 'generated'
# },
# // The folder where your gh-pages repo is
# src: '../dist'
# }
# }
grunt.registerTask "build", [
"uglify"
"copy"
"exec:build"
]
grunt.registerTask "serve", [
"uglify"
"copy"
"exec:serve"
]
grunt.registerTask "default", [
"serve"
]