Skip to content

Commit 8c7fc9f

Browse files
chore(wp): change task name from wp-build to wp-pre-build
1 parent b7504d2 commit 8c7fc9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const packageJson = require('./package.json');
66
let defaultTasks = ['build', 'watch', 'connect-sync'];
77

88
if (packageJson.projectFormat === 'wordpress') {
9-
defaultTasks.push('wp-build');
9+
defaultTasks.push('wp-pre-build');
1010
}
1111

1212
const baseConfig = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"serve": "gulp",
1717
"init": "gulp init --name",
1818
"start": "npm install && bower install && npm run init",
19-
"wp": "gulp set-format --name \"wordpress\" && gulp wp-install && gulp wp-build && npm run wp:plugins",
19+
"wp": "gulp set-format --name \"wordpress\" && gulp wp-install && gulp wp-pre-build && npm run wp:plugins",
2020
"wp:dev": "npm run wp && gulp",
2121
"wp:build": "npm run wp && gulp build",
2222
"wp:plugins": "cp -r ./plugins ./wordpress/wp-content",

tasks/wp-build.js renamed to tasks/wp-pre-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const gulp = require('gulp');
22
const plumber = require('gulp-plumber');
33
const del = require('del');
44

5-
gulp.task('wp-build', function() {
5+
gulp.task('wp-pre-build', function() {
66
const gulpPaths = gulp.paths;
77
const packageJson = gulp.config.packageJson;
88

0 commit comments

Comments
 (0)