Fixed Asset Output Caching (#34606)
This updates Turborepo and adjusts the output caching for `woocommerce/client/legacy` and `woocommerce/client/admin`. The result is that build outputs in `plugins/woocommerce/assets` should be stored correctly.
This commit is contained in:
parent
4e2ac1f164
commit
341880b79b
|
@ -97,3 +97,6 @@ changes.json
|
|||
|
||||
# Turborepo
|
||||
.turbo
|
||||
|
||||
# Support .gitkeep Files
|
||||
!.gitkeep
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
"sass": "^1.49.9",
|
||||
"sass-loader": "^10.2.1",
|
||||
"syncpack": "^8.2.4",
|
||||
"turbo": "^1.2.16",
|
||||
"turbo": "^1.4.5",
|
||||
"typescript": "4.2.4",
|
||||
"url-loader": "^1.1.2",
|
||||
"webpack": "^5.70.0"
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
# All CSS
|
||||
/assets/css/**
|
||||
/assets/css/*.css
|
||||
# Built CSS
|
||||
/assets/css/*
|
||||
|
||||
# All JS
|
||||
/assets/js/**
|
||||
/assets/js/*.js
|
||||
/assets/client
|
||||
# Built JS
|
||||
/assets/js/*
|
||||
/assets/client/*
|
||||
|
||||
# Behat/CLI Tests
|
||||
tests/cli/installer
|
||||
|
@ -14,7 +12,7 @@ tests/cli/composer.lock
|
|||
tests/cli/composer.json
|
||||
tests/cli/vendor
|
||||
|
||||
# Unit tests
|
||||
# Unit Tests
|
||||
/tests/bin/tmp
|
||||
/tests/e2e/config/local-*.json
|
||||
/tests/e2e/config/local.json
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
All we're doing here is changing the caching entries in turbo.json.
|
1246
pnpm-lock.yaml
1246
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
48
turbo.json
48
turbo.json
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"$schema": "https://turborepo.org/schema.json",
|
||||
"baseBranch": "origin/trunk",
|
||||
"pipeline": {
|
||||
"build:feature-config": {
|
||||
"cache": false
|
||||
|
@ -8,17 +7,11 @@
|
|||
"turbo:build": {
|
||||
"dependsOn": [ "build:feature-config", "^turbo:build", "$WC_ADMIN_PHASE" ],
|
||||
"inputs": [
|
||||
"src/*.js",
|
||||
"src/**/*.js",
|
||||
"src/*.jsx",
|
||||
"src/**/*.jsx",
|
||||
"src/*.ts",
|
||||
"src/**/*.ts",
|
||||
"src/*.tsx",
|
||||
"src/**/*.tsx",
|
||||
"src/*.php",
|
||||
"src/**/*.php",
|
||||
"includes/*.php",
|
||||
"includes/**/*.php"
|
||||
],
|
||||
"outputs": [
|
||||
|
@ -40,46 +33,53 @@
|
|||
],
|
||||
"outputs": [],
|
||||
"inputs": [
|
||||
"src/*.php",
|
||||
"src/**/*.php",
|
||||
"includes/*.php",
|
||||
"includes/**/*.php"
|
||||
],
|
||||
"outputMode": "new-only"
|
||||
},
|
||||
|
||||
"woocommerce/client/admin#turbo:build": {
|
||||
"dependsOn": [ "build:feature-config", "^turbo:build", "$WC_ADMIN_PHASE" ],
|
||||
"outputs": [],
|
||||
"woocommerce/client/legacy#turbo:build": {
|
||||
"dependsOn": [ "^turbo:build" ],
|
||||
"outputs": [
|
||||
"../../assets/js/**",
|
||||
"../../assets/css/**"
|
||||
],
|
||||
"inputs": [
|
||||
"css/**/*.scss",
|
||||
"css/**/*.css",
|
||||
"js/**/*.js"
|
||||
],
|
||||
"outputMode": "new-only"
|
||||
},
|
||||
|
||||
"woocommerce/client/admin#turbo:build": {
|
||||
"dependsOn": [
|
||||
"build:feature-config",
|
||||
"^turbo:build",
|
||||
"$WC_ADMIN_PHASE"
|
||||
],
|
||||
"outputs": [
|
||||
"../woocommerce/assets/client/admin/**"
|
||||
],
|
||||
"inputs": [
|
||||
"client/*.js",
|
||||
"client/**/*.js",
|
||||
"client/*.jsx",
|
||||
"client/**/*.jsx",
|
||||
"client/*.ts",
|
||||
"client/**/*.ts",
|
||||
"client/*.tsx",
|
||||
"client/**/*.tsx",
|
||||
"client/*.scss",
|
||||
"client/**/*.scss"
|
||||
],
|
||||
"outputMode": "new-only"
|
||||
},
|
||||
|
||||
"turbo:test": {
|
||||
"dependsOn": [ "build:feature-config", "turbo:build" ],
|
||||
"dependsOn": [ "turbo:build" ],
|
||||
"inputs": [
|
||||
"src/*.js",
|
||||
"src/**/*.js",
|
||||
"src/*.jsx",
|
||||
"src/**/*.jsx",
|
||||
"src/*.ts",
|
||||
"src/**/*.ts",
|
||||
"src/*.tsx",
|
||||
"src/**/*.tsx",
|
||||
"src/*.php",
|
||||
"src/**/*.php",
|
||||
"includes/*.php",
|
||||
"includes/**/*.php"
|
||||
],
|
||||
"outputs": []
|
||||
|
|
Loading…
Reference in New Issue