Skip to content

Commit

Permalink
chore(wp): change task name from wp-build to wp-pre-build
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonmonteiro committed Mar 7, 2018
1 parent b7504d2 commit 8c7fc9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const packageJson = require('./package.json');
let defaultTasks = ['build', 'watch', 'connect-sync'];

if (packageJson.projectFormat === 'wordpress') {
defaultTasks.push('wp-build');
defaultTasks.push('wp-pre-build');
}

const baseConfig = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"serve": "gulp",
"init": "gulp init --name",
"start": "npm install && bower install && npm run init",
"wp": "gulp set-format --name \"wordpress\" && gulp wp-install && gulp wp-build && npm run wp:plugins",
"wp": "gulp set-format --name \"wordpress\" && gulp wp-install && gulp wp-pre-build && npm run wp:plugins",
"wp:dev": "npm run wp && gulp",
"wp:build": "npm run wp && gulp build",
"wp:plugins": "cp -r ./plugins ./wordpress/wp-content",
Expand Down
2 changes: 1 addition & 1 deletion tasks/wp-build.js → tasks/wp-pre-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const gulp = require('gulp');
const plumber = require('gulp-plumber');
const del = require('del');

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

Expand Down

0 comments on commit 8c7fc9f

Please sign in to comment.