mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: simplify turbo config, use it for develop + build (#65526)
This commit is contained in:
committed by
GitHub
parent
7f44e71852
commit
f940f2beee
+7
-34
@@ -1,41 +1,14 @@
|
||||
{
|
||||
"$schema": "https://turborepo.com/schema.json",
|
||||
"tasks": {
|
||||
"lint": { "dependsOn": ["compile"] },
|
||||
"type-check": { "dependsOn": ["compile"] },
|
||||
"@freecodecamp/client#lint": {
|
||||
"dependsOn": ["compile", "create:env"]
|
||||
},
|
||||
"@freecodecamp/client#type-check": {
|
||||
"dependsOn": ["compile", "create:env"]
|
||||
},
|
||||
"@freecodecamp/scripts-lint#lint": {
|
||||
"dependsOn": ["@freecodecamp/client#create:trending"],
|
||||
"inputs": [
|
||||
"$TURBO_DEFAULT$",
|
||||
"$TURBO_ROOT$/client/i18n/locales/english/*"
|
||||
]
|
||||
},
|
||||
"build": { "dependsOn": ["setup"], "outputs": ["dist/**"] },
|
||||
"develop": { "dependsOn": ["setup"], "cache": false, "persistent": true },
|
||||
"lint": { "dependsOn": ["setup"] },
|
||||
"setup": { "dependsOn": ["^build"] },
|
||||
"test": { "dependsOn": ["setup"] },
|
||||
"type-check": { "dependsOn": ["setup"] },
|
||||
"//#lint-root": {
|
||||
"dependsOn": ["@freecodecamp/shared#compile"]
|
||||
},
|
||||
"compile": { "dependsOn": ["^compile"], "outputs": ["dist/**"] },
|
||||
"create:trending": { "cache": false },
|
||||
"create:env": {
|
||||
"dependsOn": ["@freecodecamp/curriculum#compile"],
|
||||
"outputs": ["config/env.json"]
|
||||
},
|
||||
"build": { "dependsOn": ["compile"], "outputs": ["generated/**"] },
|
||||
"build:scripts": {},
|
||||
"build:external-curriculum": {
|
||||
"dependsOn": ["@freecodecamp/curriculum#build"]
|
||||
},
|
||||
"test": { "dependsOn": ["compile"] },
|
||||
"@freecodecamp/api#test": {
|
||||
"dependsOn": ["compile", "@freecodecamp/curriculum#build"]
|
||||
},
|
||||
"@freecodecamp/client#test": {
|
||||
"dependsOn": ["compile", "create:env", "build:external-curriculum"]
|
||||
"dependsOn": ["@freecodecamp/shared#build"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user