File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const getFiles = () => fs
27
27
28
28
29
29
module . exports = function ( grunt ) {
30
+ grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
30
31
require ( 'matchdep' ) . filterDev ( 'grunt-*' ) . forEach ( grunt . loadNpmTasks ) ;
31
32
32
33
grunt . initConfig ( {
@@ -89,7 +90,13 @@ module.exports = function(grunt) {
89
90
server : {
90
91
url : 'http://localhost:9000'
91
92
}
92
- }
93
+ } ,
94
+ clean : [
95
+ 'dist' ,
96
+ 'live' ,
97
+ 'examples/html' ,
98
+ 'examples/public/stylesheets/'
99
+ ]
93
100
} ) ;
94
101
95
102
grunt . registerTask ( 'server' , function ( target ) {
Original file line number Diff line number Diff line change 1
1
rm -rf live
2
2
mkdir live
3
- cp -R examples/html/* live/
4
- cp -R examples/public/* live/
3
+ cp -Rv examples/html/* live/
4
+ cp -Rv examples/public/* live/
Original file line number Diff line number Diff line change 6
6
"bootstrap-sass-grid" : " ^4.0.1" ,
7
7
"express" : " ^4.16.2" ,
8
8
"grunt" : " ^1.0.2" ,
9
+ "grunt-contrib-clean" : " ^1.1.0" ,
9
10
"grunt-contrib-connect" : " ^1.0.2" ,
10
11
"grunt-contrib-livereload" : " ^0.1.2" ,
11
12
"grunt-contrib-watch" : " ^1.0.0" ,
21
22
},
22
23
"scripts" : {
23
24
"test" : " echo \" Error: no test specified\" && exit 1" ,
25
+ "clean" : " grunt clean" ,
24
26
"start" : " grunt server" ,
25
- "build" : " node-sass sass/styles/app.scss dist/app.min.css --output-style compressed && node-sass sass/styles/app.scss dist/app.css"
27
+ "build" : " grunt build" ,
28
+ "dist" : " node-sass sass/styles/app.scss dist/app.min.css --output-style compressed && node-sass sass/styles/app.scss dist/app.css"
26
29
},
27
30
"repository" : {
28
31
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -1004,6 +1004,13 @@ grunt-cli@~1.2.0:
1004
1004
nopt "~3.0.6"
1005
1005
resolve "~1.1.0"
1006
1006
1007
+ grunt-contrib-clean@^1.1.0 :
1008
+ version "1.1.0"
1009
+ resolved "https://registry.yarnpkg.com/grunt-contrib-clean/-/grunt-contrib-clean-1.1.0.tgz#564abf2d0378a983a15b9e3f30ee75b738c40638"
1010
+ dependencies :
1011
+ async "^1.5.2"
1012
+ rimraf "^2.5.1"
1013
+
1007
1014
grunt-contrib-connect@^1.0.2 :
1008
1015
version "1.0.2"
1009
1016
resolved "https://registry.yarnpkg.com/grunt-contrib-connect/-/grunt-contrib-connect-1.0.2.tgz#5cf933b91a67386044273c0b2444603cd98879ba"
@@ -2299,7 +2306,7 @@ right-align@^0.1.1:
2299
2306
dependencies :
2300
2307
align-text "^0.1.1"
2301
2308
2302
- rimraf@2 :
2309
+ rimraf@2, rimraf@^2.5.1 :
2303
2310
version "2.6.2"
2304
2311
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
2305
2312
dependencies :
You can’t perform that action at this time.
0 commit comments