-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
106 lines (103 loc) · 2.83 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
module.exports = function(grunt){
//configuration goes here
var yeomanConfig = {
assets: 'assets',
portal_assets: 'applications/portal/core/assets'
}
grunt.initConfig({
yeoman: yeomanConfig,
concurrent:{
dev:['watch:compass']
},
cssmin:{
options:{
report:'min'
},
minify:{
src:'<%= yeoman.assets %>/css/arms.combine.css',
dest:'<%= yeoman.assets %>/css/arms.comb.min.css'
}
},
concat:{
coreStyles:{
options:{separator:''},
src:[
'<%= yeoman.assets %>/lib/twitter_bootstrap/css/bootstrap.css',
'<%= yeoman.assets %>/lib/twitter_bootstrap/css/bootstrap-responsive.css',
'<%= yeoman.assets %>/lib/qtip2/jquery.qtip.min.css',
'<%= yeoman.assets %>/lib/chosen/chosen.css',
'<%= yeoman.assets %>/lib/bootstrap_toggle_button/jquery.toggle.buttons.css',
'<%= yeoman.assets %>/lib/unicorn_styles/css/uniform.css',
'<%= yeoman.assets %>/lib/unicorn_styles/css/unicorn.main.css',
'<%= yeoman.assets %>/lib/unicorn_styles/css/unicorn.grey.css',
'<%= yeoman.assets %>/css/base.css',
'<%= yeoman.assets %>/css/arms.css',
'<%= yeoman.assets %>/css/arms.less.compiled.css',
],
dest: '<%= yeoman.assets %>/css/arms.combine.css'
},
coreScripts:{
options:{separator:';'},
src:[
'<%=yeoman.assets %>/lib/less-1.3.0.min.js',
'<%=yeoman.assets %>/lib/jquery-1.7.2.min.js',
'<%=yeoman.assets %>/lib/jquery-ui-1.8.22.custom.min.js',
'<%=yeoman.assets %>/lib/bootstrap.youtubepopup.min.js',
'<%=yeoman.assets %>/lib/jquery.sticky.js',
'<%=yeoman.assets %>/lib/mustache.js',
'<%=yeoman.assets %>/lib/chosen/chosen.jquery.js',
'<%=yeoman.assets %>/lib/jquery.ba-hashchange.js',
'<%=yeoman.assets %>/lib/bootstrap_toggle_button/jquery.toggle.buttons.js',
'<%=yeoman.assets %>/lib/qtip2/jquery.qtip.min.js',
'<%=yeoman.assets %>/js/scripts.js',
],
dest:'<%=yeoman.assets %>/js/arms.scripts.js'
}
},
uglify:{
options:{
mangle: false,
report: 'min'
},
scripts:{
files:{
'<%= yeoman.assets %>/js/arms.min.js':['<%= yeoman.assets %>/js/arms.scripts.js']
}
}
},
compass: {
core:{
options: {
sassDir: '<%= yeoman.assets %>/sass',
cssDir: '<%= yeoman.assets %>/css',
debugInfo: false
}
}
},
less: {
core:{
files:{
"<%= yeoman.assets %>/css/arms.less.compiled.css": "<%= yeoman.assets %>/less/arms.less"
}
}
},
watch: {
core: {
files: ['<%= yeoman.assets %>/sass/{,*/}*.{scss,sass}', '<%= yeoman.assets %>/less/{,*/}*.{less,less}'],
tasks: ['compass:core', 'concat:coreStyles', 'cssmin'],
options:{nospawn:true}
}
}
});
require('load-grunt-tasks')(grunt);
//define your tasks
grunt.registerTask('default', [
'compass',
'less',
'concat',
'uglify'
]);
grunt.registerTask('core',[
'watch:core'
]);
}