Revert "Add pre build script to delete assets" (#35693)
Revert "Add pre build script to delete assets (#35627)"
This reverts commit 4770123fa3
.
This commit is contained in:
parent
102fabbee0
commit
fd7c728689
|
@ -1,3 +0,0 @@
|
||||||
Significance: patch
|
|
||||||
Type: dev
|
|
||||||
Comment: Adds pre build script to first delete asset items.
|
|
|
@ -19,7 +19,6 @@
|
||||||
"postinstall": "composer install",
|
"postinstall": "composer install",
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"build:assets-cleanup": "find ./assets/css/. ! -name '.gitkeep' -type f -exec rm -f {} + && find ./assets/client/. ! -name '.gitkeep' -type f -exec rm -f {} + && find ./assets/js/. ! -name '.gitkeep' -type f -exec rm -f {} +",
|
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "pnpm lint:php",
|
"lint": "pnpm lint:php",
|
||||||
"build:feature-config": "php bin/generate-feature-config.php",
|
"build:feature-config": "php bin/generate-feature-config.php",
|
||||||
|
|
14
turbo.json
14
turbo.json
|
@ -4,11 +4,8 @@
|
||||||
"build:feature-config": {
|
"build:feature-config": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
"build:assets-cleanup": {
|
|
||||||
"cache": false
|
|
||||||
},
|
|
||||||
"turbo:build": {
|
"turbo:build": {
|
||||||
"dependsOn": [ "build:feature-config", "build:assets-cleanup", "^turbo:build", "$WC_ADMIN_PHASE" ],
|
"dependsOn": [ "build:feature-config", "^turbo:build", "$WC_ADMIN_PHASE" ],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
"src/**/*.js",
|
"src/**/*.js",
|
||||||
"src/**/*.jsx",
|
"src/**/*.jsx",
|
||||||
|
@ -30,7 +27,6 @@
|
||||||
"woocommerce#turbo:build": {
|
"woocommerce#turbo:build": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"build:feature-config",
|
"build:feature-config",
|
||||||
"build:assets-cleanup",
|
|
||||||
"^turbo:build",
|
"^turbo:build",
|
||||||
"woocommerce/client/admin#turbo:build",
|
"woocommerce/client/admin#turbo:build",
|
||||||
"woocommerce/client/legacy#turbo:build"
|
"woocommerce/client/legacy#turbo:build"
|
||||||
|
@ -43,14 +39,8 @@
|
||||||
"outputMode": "new-only"
|
"outputMode": "new-only"
|
||||||
},
|
},
|
||||||
|
|
||||||
"woocommerce#build:zip": {
|
|
||||||
"dependsOn": [
|
|
||||||
"^build:assets-cleanup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"woocommerce/client/legacy#turbo:build": {
|
"woocommerce/client/legacy#turbo:build": {
|
||||||
"dependsOn": [ "build:assets-cleanup", "^turbo:build" ],
|
"dependsOn": [ "^turbo:build" ],
|
||||||
"outputs": [
|
"outputs": [
|
||||||
"../../assets/js/**",
|
"../../assets/js/**",
|
||||||
"../../assets/css/**"
|
"../../assets/css/**"
|
||||||
|
|
Loading…
Reference in New Issue