Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit 4408413

Browse files
committed
fix(build): add compass task only if compass-flavored bootstrap is selected
1 parent 6cbb80f commit 4408413

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

templates/common/Gruntfile.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ module.exports = function (grunt) {
3636
coffeeTest: {
3737
files: ['test/spec/{,*/}*.coffee'],
3838
tasks: ['coffee:test']
39-
},
39+
},<% if (compassBootstrap) { %>
4040
compass: {
4141
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
4242
tasks: ['compass:server']
43-
},
43+
},<% } %>
4444
livereload: {
4545
options: {
4646
livereload: LIVERELOAD_PORT
@@ -136,7 +136,7 @@ module.exports = function (grunt) {
136136
ext: '.js'
137137
}]
138138
}
139-
},
139+
},<% if (compassBootstrap) { %>
140140
compass: {
141141
options: {
142142
sassDir: '<%%= yeoman.app %>/styles',
@@ -157,7 +157,7 @@ module.exports = function (grunt) {
157157
debugInfo: true
158158
}
159159
}
160-
},
160+
},<% } %>
161161
// not used since Uglify task does concat,
162162
// but still available if needed
163163
/*concat: {
@@ -259,16 +259,16 @@ module.exports = function (grunt) {
259259
},
260260
concurrent: {
261261
server: [
262-
'coffee:dist',
263-
'compass:server'
262+
'coffee:dist'<% if (compassBootstrap) { %>,
263+
'compass:server'<% } %>
264264
],
265265
test: [
266-
'coffee',
267-
'compass'
266+
'coffee'<% if (compassBootstrap) { %>,
267+
'compass'<% } %>
268268
],
269269
dist: [
270-
'coffee',
271-
'compass:dist',
270+
'coffee',<% if (compassBootstrap) { %>
271+
'compass:dist',<% } %>
272272
'imagemin',
273273
'htmlmin'
274274
]

0 commit comments

Comments
 (0)