|
| 1 | +{ |
| 2 | + "$schema": "https://turbo.build/schema.json", |
| 3 | + "pipeline": { |
| 4 | + "build": { |
| 5 | + // A package's `build` script depends on that package's |
| 6 | + // dependencies and devDependencies |
| 7 | + // `build` tasks being completed first |
| 8 | + // (the `^` symbol signifies `upstream`). |
| 9 | + "dependsOn": ["^build"], |
| 10 | + // note: output globs are relative to each package's `package.json` |
| 11 | + // (and not the monorepo root) |
| 12 | + "outputs": [".next/**", "!.next/cache/**"] |
| 13 | + }, |
| 14 | + "deploy": { |
| 15 | + // A package's `deploy` script depends on the `build`, |
| 16 | + // `test`, and `lint` scripts of the same package |
| 17 | + // being completed. It also has no filesystem outputs. |
| 18 | + "dependsOn": ["build", "test", "lint"] |
| 19 | + }, |
| 20 | + "test": { |
| 21 | + // A package's `test` script depends on that package's |
| 22 | + // own `build` script being completed first. |
| 23 | + "dependsOn": ["build"], |
| 24 | + // A package's `test` script should only be rerun when |
| 25 | + // either a `.tsx` or `.ts` file has changed in `src` or `test` folders. |
| 26 | + "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] |
| 27 | + }, |
| 28 | + // A package's `lint` script has no dependencies and |
| 29 | + // can be run whenever. It also has no filesystem outputs. |
| 30 | + "lint": {}, |
| 31 | + "dev": { |
| 32 | + "cache": false, |
| 33 | + "persistent": true |
| 34 | + } |
| 35 | + } |
| 36 | +} |
0 commit comments