@@ -3,19 +3,7 @@ module.exports = function(grunt) {
3
3
// Project configuration.
4
4
grunt . initConfig ( {
5
5
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' ] ,
19
7
copy : {
20
8
main : {
21
9
files : [
@@ -52,10 +40,24 @@ module.exports = function(grunt) {
52
40
files : [ 'source/_patterns/**/*.json' ] ,
53
41
tasks : [ 'default' ]
54
42
}
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
+ }
55
56
}
56
57
} ) ;
57
58
58
59
grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
60
+ grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
59
61
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
60
62
grunt . loadNpmTasks ( 'grunt-contrib-sass' ) ;
61
63
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
@@ -64,5 +66,5 @@ module.exports = function(grunt) {
64
66
grunt . task . loadTasks ( './builder/' ) ;
65
67
66
68
//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' ] ) ;
68
70
} ;
0 commit comments