Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Created June 15, 2022 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hypeJunction/fdcb67a609db74a2204ed59d97d3d7d9 to your computer and use it in GitHub Desktop.
Save hypeJunction/fdcb67a609db74a2204ed59d97d3d7d9 to your computer and use it in GitHub Desktop.
Turborepo config example
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/master",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"inputs": ["src/**/*", "package.json", "tsconfig.json"],
"outputs": ["dist/**"]
},
"test": {
"inputs": ["**/*.spec.ts", "**/*.spec.tsx"],
"outputs": []
},
"dev": {
"dependsOn": ["^build"],
"inputs": ["src/**/*", "package.json", "tsconfig.json"],
"cache": false,
"outputs": []
},
"watch": {
"dependsOn": [],
"inputs": ["src/**/*", "package.json", "tsconfig.json"],
"cache": false,
"outputs": []
},
"@me/application-a#build": {
"dependsOn": ["^build"],
"inputs": ["pages/**/*", "public/**/*", "next.config.js", "package.json" "tsconfig.json"],
"outputs": [".next/**"]
},
"@me/application-a#dev": {
"dependsOn": ["^build"],
"inputs": ["pages/**/*", "public/**/*", "next.config.js", "package.json", "tsconfig.json"],
"cache": false
},
"@me/application-a#start": {
"cache": false
},
"@me/application-a#test": {
"dependsOn": ["^build"],
"inputs": ["**/*.spec.ts", "**/*.spec.tsx"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment