Skip to content

Commit 954ac2d

Browse files
committedMar 28, 2014
Support sass compilation
1 parent c6e0c32 commit 954ac2d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎gruntfile.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ module.exports = function(grunt) {
9191
unit: {
9292
configFile: 'test/karma/karma.conf.js'
9393
}
94+
},
95+
sass: {
96+
dist: {
97+
files: {
98+
'public/stylesheets/style.css' : 'assets/sass/style.scss'
99+
}
100+
}
94101
}
95102
});
96103

@@ -105,6 +112,7 @@ module.exports = function(grunt) {
105112
grunt.loadNpmTasks('grunt-nodemon');
106113
grunt.loadNpmTasks('grunt-concurrent');
107114
grunt.loadNpmTasks('grunt-env');
115+
grunt.loadNpmTasks('grunt-sass');
108116

109117
//Making grunt default to force in order not to break the project.
110118
grunt.option('force', true);
@@ -113,7 +121,7 @@ module.exports = function(grunt) {
113121
if (process.env.NODE_ENV === 'production') {
114122
grunt.registerTask('default', ['jshint', 'csslint', 'cssmin', 'uglify', 'concurrent']);
115123
} else {
116-
grunt.registerTask('default', ['jshint', 'csslint', 'concurrent']);
124+
grunt.registerTask('default', ['jshint', 'csslint', 'concurrent', 'sass']);
117125
}
118126

119127
//Test task.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"grunt-nodemon": "0.2.0",
5050
"grunt-concurrent": "latest",
5151
"grunt-mocha-test": "latest",
52+
"grunt-sass": "latest",
5253
"karma": "~0.10.4",
5354
"karma-coffee-preprocessor": "~0.1.0",
5455
"karma-coverage": "~0.1.0",

0 commit comments

Comments
 (0)
Please sign in to comment.