@@ -3,19 +3,7 @@ module.exports = function(grunt) {
33 // Project configuration.
44 grunt . initConfig ( {
55 pkg : grunt . file . readJSON ( 'package.json' ) ,
6- sass : {
7- build : {
8- options : {
9- style : 'expanded' ,
10- precision : 8
11- } ,
12- files : {
13- './source/css/style.css' : './source/css/style.scss' ,
14- './public/styleguide/css/static.css' : './public/styleguide/css/static.scss' ,
15- './public/styleguide/css/styleguide.css' : './public/styleguide/css/styleguide.scss'
16- }
17- }
18- } ,
6+ clean : [ './public/patterns' ] ,
197 copy : {
208 main : {
219 files : [
@@ -52,10 +40,24 @@ module.exports = function(grunt) {
5240 files : [ 'source/_patterns/**/*.json' ] ,
5341 tasks : [ 'default' ]
5442 }
43+ } ,
44+ sass : {
45+ build : {
46+ options : {
47+ style : 'expanded' ,
48+ precision : 8
49+ } ,
50+ files : {
51+ './source/css/style.css' : './source/css/style.scss' ,
52+ './public/styleguide/css/static.css' : './public/styleguide/css/static.scss' ,
53+ './public/styleguide/css/styleguide.css' : './public/styleguide/css/styleguide.scss'
54+ }
55+ }
5556 }
5657 } ) ;
5758
5859 grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
60+ grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
5961 grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
6062 grunt . loadNpmTasks ( 'grunt-contrib-sass' ) ;
6163 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
@@ -64,5 +66,5 @@ module.exports = function(grunt) {
6466 grunt . task . loadTasks ( './builder/' ) ;
6567
6668 //if you choose to use scss, or any preprocessor, you can add it here
67- grunt . registerTask ( 'default' , [ 'patternlab' , /*'sass',*/ 'copy' ] ) ;
69+ grunt . registerTask ( 'default' , [ 'clean' , ' patternlab', /*'sass',*/ 'copy' ] ) ;
6870} ;
0 commit comments