Skip to content

Commit

Permalink
chore: upgrade turborepo to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Jul 3, 2024
1 parent 3749f66 commit a9d487b
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 55 deletions.
3 changes: 1 addition & 2 deletions apps/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"prep:database": "./prep-database.sh",
"prep:schema": "pnpm drush silverback-gatsby:schema-export ../../../tests/schema || true",
"fix-premissions": "chmod +w web/sites/default/files/.htaccess && chmod +w web/sites/default/files/private/.htaccess",
"ensure-working-db": "pnpm drush sqlq 'select * from node'",
"drush": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 vendor/bin/drush",
"silverback": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite SB_ADMIN_USER=admin SB_ADMIN_PASS=admin vendor/bin/silverback",
"drupal-install": "SB_SETUP=1 pnpm silverback setup --profile minimal && pnpm content:import && pnpm drush php-eval 'node_access_rebuild();' && rm -rf install-cache.zip && pnpm fix-premissions && pnpm ensure-working-db",
"drupal-install": "SB_SETUP=1 pnpm silverback setup --profile minimal && pnpm content:import && pnpm drush php-eval 'node_access_rebuild();' && rm -rf install-cache.zip && pnpm fix-premissions",
"export-webforms": "pnpm turbo --filter '@custom-tests/e2e' webform-snapshots",
"start": "cd web; SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 php -S 0.0.0.0:8888 .ht.router.php # no drush to avoid the drush server timeout",
"dev": "pnpm start",
Expand Down
4 changes: 2 additions & 2 deletions apps/cms/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"prep": {
"dependsOn": ["prep:schema"]
},
Expand All @@ -27,7 +27,7 @@
"outputs": [
"drush/**",
"vendor/**",
"!**/.git/**",
"!*/**/.git/**",
"web/**",
"!web/modules/custom/**",
"!web/themes/custom/**",
Expand Down
2 changes: 1 addition & 1 deletion apps/decap/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"prep:vite": {
"dependsOn": ["^prep"],
"inputs": ["src/**", "vite.config.ts", "index.html"],
Expand Down
2 changes: 1 addition & 1 deletion apps/preview/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"prep": {
"dependsOn": ["prep:app", "prep:server"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/website/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"dev": {
"persistent": true,
"dependsOn": ["prep", "^prep"]
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"node": "^18.19.0",
"pnpm": "8.6.12"
},
"packageManager": "[email protected]",
"scripts": {
"postinstall": "husky install || true",
"commit": "git-cz",
Expand All @@ -16,11 +17,11 @@
"test:format:root": "pnpm prettier --ignore-unknown '**/**'",
"test:format:workspaces": "pnpm --workspace-concurrency=1 -r exec prettier --ignore-unknown '**/**'",
"turbo:local": "if [ -z $CI ]; then echo $(date)$RANDOM > apps/cms/turbo-seed.txt; fi",
"turbo:test": "pnpm turbo:local && pnpm tb test:unit --no-daemon --go-fallback --output-logs=new-only && pnpm tb test:integration --no-daemon --go-fallback --output-logs=new-only --concurrency=1",
"turbo:test:force": "pnpm tb test:unit --no-daemon --go-fallback --output-logs=new-only --force && pnpm tb test:integration --no-daemon --go-fallback --output-logs=new-only --concurrency=1 --force",
"turbo:test:quick": "pnpm turbo:local && pnpm tb test:unit --no-daemon --go-fallback --output-logs=new-only",
"turbo:prep": "pnpm turbo:local && pnpm tb prep --no-daemon --go-fallback --output-logs=new-only",
"turbo:prep:force": "rm -f apps/cms/web/sites/default/files/.sqlite && pnpm tb prep --no-daemon --go-fallback --force",
"turbo:test": "pnpm turbo:local && pnpm turbo test:unit && pnpm turbo test:integration --concurrency=1",
"turbo:test:force": "pnpm turbo test:unit --force && pnpm tb test:integration --concurrency=1 --force",
"turbo:test:quick": "pnpm turbo:local && pnpm turbo test:unit",
"turbo:prep": "pnpm turbo:local && pnpm turbo prep",
"turbo:prep:force": "rm -f apps/cms/web/sites/default/files/.sqlite && pnpm turbo prep --force",
"gutenberg:generate": "pnpm run --filter \"@custom/gutenberg_blocks\" gutenberg:generate"
},
"private": true,
Expand All @@ -39,7 +40,7 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"prettier": "^3.2.5",
"turbo": "^1.11.2",
"turbo": "^2.0.6",
"typescript": "^5.3.3",
"vitest": "^1.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/drupal/gutenberg_blocks/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test:static": {
"inputs": ["src/**"]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"prep:directives": {
"dependsOn": ["@custom/cms#prep:composer"],
"inputs": ["package.json"],
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"prep:fonts": {
"inputs": ["static/public/fonts/preload/**"],
"outputs": ["build/preloaded-fonts.json"]
Expand Down
72 changes: 36 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/e2e/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"prep": {
"cache": false
},
Expand Down
2 changes: 1 addition & 1 deletion tests/schema/turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["//"],
"pipeline": {
"tasks": {
"test:integration": {
"dependsOn": ["@custom/cms#prep"]
},
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["prep"]
},
Expand Down

0 comments on commit a9d487b

Please sign in to comment.