Skip to content

Commit 73e0060

Browse files
committed
Add code in Grunt itself.
1 parent 04c37f2 commit 73e0060

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Gruntfile.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
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",

0 commit comments

Comments
 (0)