Change turborepo config to use local turbo.json (#353)
* Change turborepo config to use local turbo.json * update lock to 6.0 Update turbo to 1.9.0 Move global envs to build script envs
This commit is contained in:
parent
8cf219308e
commit
7ff2d7cfa7
15 changed files with 4792 additions and 4171 deletions
19
apps/cms/turbo.json
Normal file
19
apps/cms/turbo.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"PORT",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
21
apps/crm/turbo.json
Normal file
21
apps/crm/turbo.json
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"PORT",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"MAILCHIMP_CLIENT_SECRET",
|
||||||
|
"MAILCHIMP_CLIENT_ID"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
23
apps/data-importer/turbo.json
Normal file
23
apps/data-importer/turbo.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"NODE_ENV",
|
||||||
|
"APL",
|
||||||
|
"NEXT_PUBLIC_NUVO_LICENSE_KEY",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV",
|
||||||
|
"NEXT_PUBLIC_NUVO_PROD_MODE",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"PORT"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
20
apps/emails-and-messages/turbo.json
Normal file
20
apps/emails-and-messages/turbo.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"extends": ["//"],
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"PORT"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
apps/invoices/turbo.json
Normal file
19
apps/invoices/turbo.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"TEMP_PDF_STORAGE_DIR",
|
||||||
|
"PORT",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
24
apps/klaviyo/turbo.json
Normal file
24
apps/klaviyo/turbo.json
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_DSN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_ORG",
|
||||||
|
"SENTRY_PROJECT",
|
||||||
|
"SENTRY_AUTH_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
25
apps/monitoring/turbo.json
Normal file
25
apps/monitoring/turbo.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_DSN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_ORG",
|
||||||
|
"SENTRY_PROJECT",
|
||||||
|
"SENTRY_AUTH_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV",
|
||||||
|
"MONITORING_APP_API_URL"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
27
apps/products-feed/turbo.json
Normal file
27
apps/products-feed/turbo.json
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_DSN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_ORG",
|
||||||
|
"SENTRY_PROJECT",
|
||||||
|
"SENTRY_AUTH_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV",
|
||||||
|
"FEED_CACHE_MAX_AGE",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"PORT"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
18
apps/search/turbo.json
Normal file
18
apps/search/turbo.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
24
apps/slack/turbo.json
Normal file
24
apps/slack/turbo.json
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_DSN",
|
||||||
|
"NEXT_PUBLIC_SENTRY_DSN",
|
||||||
|
"SENTRY_ORG",
|
||||||
|
"SENTRY_PROJECT",
|
||||||
|
"SENTRY_AUTH_TOKEN",
|
||||||
|
"NEXT_PUBLIC_VERCEL_ENV"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
apps/taxes/turbo.json
Normal file
19
apps/taxes/turbo.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"extends": ["//"],
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"env": [
|
||||||
|
"APL",
|
||||||
|
"APP_DEBUG",
|
||||||
|
"NODE_ENV",
|
||||||
|
"SECRET_KEY",
|
||||||
|
"PORT",
|
||||||
|
"VERCEL_URL",
|
||||||
|
"REST_APL_ENDPOINT",
|
||||||
|
"REST_APL_TOKEN",
|
||||||
|
"ALLOWED_DOMAIN_PATTERN"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,13 +20,13 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/cli": "^2.26.0",
|
"@changesets/cli": "^2.26.0",
|
||||||
"eslint-config-saleor": "workspace:*",
|
|
||||||
"prettier": "^2.8.4",
|
|
||||||
"turbo": "^1.8.3",
|
|
||||||
"eslint": "^8.35.0",
|
"eslint": "^8.35.0",
|
||||||
|
"eslint-config-saleor": "workspace:*",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.1.2",
|
"lint-staged": "^13.1.2",
|
||||||
"next": "^13.2.3"
|
"next": "^13.2.3",
|
||||||
|
"prettier": "^2.8.4",
|
||||||
|
"turbo": "^1.9.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"eslint-config-next": "^13.1.6",
|
"eslint-config-next": "^13.1.6",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-react": "7.32.2",
|
"eslint-plugin-react": "7.32.2",
|
||||||
"eslint-config-turbo": "^0.0.7",
|
"eslint-config-turbo": "^1.9.0",
|
||||||
"eslint": "^8.33.0",
|
"eslint": "^8.33.0",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
|
|
8554
pnpm-lock.yaml
8554
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
160
turbo.json
160
turbo.json
|
@ -8,164 +8,20 @@
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": ["dist/**", ".next/**"]
|
"outputs": ["dist/**", ".next/**"]
|
||||||
},
|
},
|
||||||
"start": {
|
|
||||||
"dependsOn": ["^build"]
|
|
||||||
},
|
|
||||||
"build#saleor-app-data-importer": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"NEXT_PUBLIC_NUVO_LICENSE_KEY",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV",
|
|
||||||
"NEXT_PUBLIC_NUVO_PROD_MODE"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-invoices": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"TEMP_PDF_STORAGE_DIR",
|
|
||||||
"PORT",
|
|
||||||
"VERCEL_URL",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-search": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-emails-and-messages": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-klaviyo": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_DSN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_ORG",
|
|
||||||
"SENTRY_PROJECT",
|
|
||||||
"SENTRY_AUTH_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-slack": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_DSN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_ORG",
|
|
||||||
"SENTRY_PROJECT",
|
|
||||||
"SENTRY_AUTH_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-products-feed": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_DSN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_ORG",
|
|
||||||
"SENTRY_PROJECT",
|
|
||||||
"SENTRY_AUTH_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV",
|
|
||||||
"FEED_CACHE_MAX_AGE"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-monitoring": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_DSN",
|
|
||||||
"NEXT_PUBLIC_SENTRY_DSN",
|
|
||||||
"SENTRY_ORG",
|
|
||||||
"SENTRY_PROJECT",
|
|
||||||
"SENTRY_AUTH_TOKEN",
|
|
||||||
"NEXT_PUBLIC_VERCEL_ENV",
|
|
||||||
"MONITORING_APP_API_URL"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-taxes": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"PORT",
|
|
||||||
"VERCEL_URL",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build#saleor-app-crm": {
|
|
||||||
"env": [
|
|
||||||
"APL",
|
|
||||||
"APP_DEBUG",
|
|
||||||
"NODE_ENV",
|
|
||||||
"SECRET_KEY",
|
|
||||||
"PORT",
|
|
||||||
"VERCEL_URL",
|
|
||||||
"REST_APL_ENDPOINT",
|
|
||||||
"REST_APL_TOKEN",
|
|
||||||
"ALLOWED_DOMAIN_PATTERN",
|
|
||||||
"MAILCHIMP_CLIENT_SECRET",
|
|
||||||
"MAILCHIMP_CLIENT_ID"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"lint": {
|
"lint": {
|
||||||
|
"inputs": ["src"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
|
"persistent": true,
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
"test": {},
|
"test": {
|
||||||
"test:ci": {},
|
"inputs": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
|
||||||
|
},
|
||||||
|
"test:ci": {
|
||||||
|
"inputs": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
|
||||||
|
},
|
||||||
"generate": {
|
"generate": {
|
||||||
"outputs": ["generated/"]
|
"outputs": ["generated/"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue