Skip to content

Commit

Permalink
Update turbo dev & test pipelines to be "persistent" and depend on "^…
Browse files Browse the repository at this point in the history
…build"

...and remove the footgun on fides-js "dev" target that doesn't play nice with turbo
  • Loading branch information
NevilleS committed May 4, 2023
1 parent 0c1bb27 commit 9149f2f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion clients/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint-staged:fix": "lint-staged --diff=main",
"openapi:generate": "openapi --input http://localhost:8080/openapi.json --output ./src/types/api --exportCore false --exportServices false --indent 2",
"start": "next start",
"test": "jest --watch",
"test": "jest --watchAll",
"test:ci": "jest"
},
"dependencies": {
Expand Down
3 changes: 0 additions & 3 deletions clients/admin-ui/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
},
"dev:mock": {
"dependsOn": ["build"]
},
"dev": {
"dependsOn": []
}
}
}
3 changes: 1 addition & 2 deletions clients/fides-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
],
"scripts": {
"build": "NODE_ENV=production rollup -c",
"dev": "NODE_ENV=development rollup -c -w",
"clean": "rm -rf dist .turbo",
"format": "prettier --write .",
"format:ci": "prettier --check .",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --watch",
"test": "jest --watchAll",
"test:ci": "jest"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion clients/privacy-center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint:fix": "lint-staged --diff=main",
"format": "prettier --write types/ theme/ pages/ config/ components/ __tests__/",
"format:ci": "prettier --check types/ theme/ pages/ config/ components/ __tests__/",
"test": "jest --watch",
"test": "jest --watchAll",
"test:ci": "tsc --noEmit && jest",
"cy:open": "cypress open",
"cy:run": "cypress run",
Expand Down
8 changes: 0 additions & 8 deletions clients/privacy-center/turbo.json

This file was deleted.

10 changes: 7 additions & 3 deletions clients/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"outputs": [".next/*", "!.next/cache/*"]
},
"dev": {
"dependsOn": [],
"outputs": [".next/*", "!.next/cache/*"]
"dependsOn": ["^build"],
"outputs": [".next/*", "!.next/cache/*"],
"cache": false,
"persistent": true
},
"start": {
"dependsOn": ["build"],
Expand All @@ -26,7 +28,9 @@
"dependsOn": []
},
"test": {
"dependsOn": ["build"]
"dependsOn": ["^build"],
"cache": false,
"persistent": true
},
"test:ci": {
"dependsOn": ["build"]
Expand Down

0 comments on commit 9149f2f

Please sign in to comment.