File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2063,9 +2063,17 @@ module.exports = function(grunt) {
20632063 ] ) ;
20642064
20652065 grunt . registerTask ( 'build' , function ( ) {
2066+ grunt . util . spawn ( {
2067+ grunt : true ,
2068+ args : [ 'clean' , '--dev' ] ,
2069+ opts : { stdio : 'inherit' }
2070+ } , function ( buildError ) {
2071+ done ( ! buildError ) ;
2072+ } ) ;
2073+
20662074 if ( grunt . option ( 'dev' ) ) {
20672075 grunt . task . run ( [
2068- 'gutenberg:verify ' ,
2076+ 'gutenberg:download ' ,
20692077 'build:js' ,
20702078 'build:css' ,
20712079 'build:codemirror' ,
@@ -2075,7 +2083,7 @@ module.exports = function(grunt) {
20752083 ] ) ;
20762084 } else {
20772085 grunt . task . run ( [
2078- 'gutenberg:verify ' ,
2086+ 'gutenberg:download ' ,
20792087 'build:certificates' ,
20802088 'build:files' ,
20812089 'build:js' ,
Original file line number Diff line number Diff line change 112112 "wicg-inert" : " 3.1.3"
113113 },
114114 "scripts" : {
115- "postinstall" : " npm run gutenberg:verify && npm run grunt clean -- --dev " ,
115+ "postinstall" : " npm run gutenberg:verify" ,
116116 "build" : " grunt build" ,
117117 "build:dev" : " grunt build --dev" ,
118118 "build:gutenberg" : " grunt build:gutenberg" ,
You can’t perform that action at this time.
0 commit comments