Skip to content

Commit

Permalink
Bind Compass functions to compassBootstrap variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden Bleasel committed Jan 5, 2014
1 parent 35d3313 commit a84ee60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ module.exports = function (grunt) {
},<% } %>
gruntfile: {
files: ['Gruntfile.js']
},
},<% if (compassBootstrap) { %>
compass: {
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},
},<% } %>
styles: {
files: ['<%%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['newer:copy:styles', 'autoprefixer']
Expand Down Expand Up @@ -177,6 +177,7 @@ module.exports = function (grunt) {
}
},<% } %>

<% if (compassBootstrap) { %>
// Compiles Sass to CSS and generates necessary files if requested
compass: {
options: {
Expand All @@ -203,7 +204,7 @@ module.exports = function (grunt) {
debugInfo: true
}
}
},
},<% } %>

// Add vendor prefixed styles
autoprefixer: {
Expand Down Expand Up @@ -372,8 +373,8 @@ module.exports = function (grunt) {

// Run some tasks in parallel to speed up build process
concurrent: {
server: [
'compass:server',<% if (coffee) { %>
server: [<% if (compassBootstrap) { %>
'compass:server',<% } if (coffee) { %>
'coffee:dist',<% } %>
'copy:styles'
],
Expand All @@ -382,8 +383,8 @@ module.exports = function (grunt) {
'copy:styles'
],
dist: [<% if (coffee) { %>
'coffee',<% } %>
'compass',
'coffee',<% } if (compassBootstrap) { %>
'compass',<% } %>
'copy:styles',
'imagemin',
'svgmin'
Expand Down
4 changes: 2 additions & 2 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",<% if (coffee) { %>
"grunt-contrib-coffee": "~0.7.0",<% } %>
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.7.0",
"grunt-contrib-uglify": "~0.2.0",<% if (compassBootstrap) { %>
"grunt-contrib-compass": "~0.7.0",<% } %>
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
Expand Down

0 comments on commit a84ee60

Please sign in to comment.