Skip to content

Commit 8c6b78c

Browse files
committed
update wp-env config
1 parent d4defd4 commit 8c6b78c

File tree

4 files changed

+77
-54
lines changed

4 files changed

+77
-54
lines changed

examples/sveltekit/template-hierarchy-data-fetching-urql/.wp-env.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
".htaccess": "./wp-env/setup/.htaccess"
2323
},
2424
"lifecycleScripts": {
25-
"afterStart": "wp-env run cli -- wp theme activate twentytwentyone && wp-env run cli -- wp theme delete --all -- wp plugin delete hello-dolly && wp-env run cli -- wp rewrite structure '/%postname%/' && wp-env run cli -- wp rewrite flush"
25+
"afterStart": "wp-env run cli -- wp theme activate twentytwentyone && wp-env run cli -- wp theme delete --all && wp-env run cli -- wp plugin delete hello-dolly && wp-env run cli -- wp rewrite structure '/%postname%/' && wp-env run cli -- wp rewrite flush"
2626
}
2727
}

examples/sveltekit/template-hierarchy-data-fetching-urql/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"example:bootstrap": "npm install & npm run app:install",
77
"example:start": "pnpm run wp:start && npm run app:dev",
8-
"example:setup": "npm run example:bootstrap && npm run wp:start && npm run wp:db:import && npm run example:stop",
8+
"example:setup": "npm run example:bootstrap && npm run wp:uploads:unzip && npm run wp:start && npm run wp:db:import && npm run example:stop",
99
"example:stop": "npm run wp:stop",
1010
"example:prune": "npm run wp:destroy && npm run example:setup && npm run example:start",
1111
"app:dev": "cd example-app && pwd && npm run dev && cd ..",
@@ -14,7 +14,9 @@
1414
"wp:stop": "wp-env stop",
1515
"wp:destroy": "wp-env destroy --config ./wp-env/wp-env.json",
1616
"wp:db:export": "wp-env run cli -- wp db export /var/www/html/db/database.sql",
17-
"wp:db:import": "wp-env run cli -- wp db import /var/www/html/db/database.sql"
17+
"wp:db:import": "wp-env run cli -- wp db import /var/www/html/db/database.sql",
18+
"wp:uploads:unzip": "rm -rf wp-env/uploads/ && unzip wp-env/uploads.zip;",
19+
"wp:uploads:zip": "zip -r wp-env/uploads.zip wp-env/uploads"
1820
},
1921
"devDependencies": {
2022
"@wordpress/env": "^10.21.0"

0 commit comments

Comments
 (0)