Skip to content

Commit

Permalink
Add sass compiling and move all css stuff to /css
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Jun 18, 2014
1 parent 240499a commit 4ac1a41
Show file tree
Hide file tree
Showing 7 changed files with 1,935 additions and 67 deletions.
Binary file not shown.
23 changes: 17 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,22 @@ module.exports = function(grunt) {
},
minify: {
expand: true,
src: ['style.css'],
src: ['css/style.css'],
// dest: '',
ext: '.min.css'
}
},
sass: {
dist: {
options: {
style: 'expanded',
lineNumbers: true
},
files: {
'css/style.css': 'css/style.scss',
}
}
},
jshint: {
all: [
'Gruntfile.js',
Expand Down Expand Up @@ -82,11 +93,10 @@ module.exports = function(grunt) {
},
watch: {

css: {
files: ['style.css'],
tasks: ['cssmin']
sass: {
files: ['**/*.scss'],
tasks: ['sass', 'cssmin']
},

scripts: {
files: ['js/cmb.js'],
tasks: ['jshint', 'uglify'],
Expand All @@ -105,8 +115,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
// grunt.loadNpmTasks('grunt-contrib-concat');

grunt.registerTask('default', ['jshint', 'cssmin', 'uglify', 'phpunit']);
grunt.registerTask('default', ['jshint', 'sass', 'cssmin', 'uglify', 'phpunit']);
grunt.registerTask('tests', ['jshint', 'phpunit']);
};
Loading

0 comments on commit 4ac1a41

Please sign in to comment.