Skip to content

Commit

Permalink
Add turbo to docs app
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Feb 20, 2023
1 parent f35f6f8 commit 733d8a8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
4 changes: 3 additions & 1 deletion docs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"lint:js:fix": "eslint . --fix",
"lint:types": "glint",
"start": "ember serve",
"test:ember": "ember test"
"test:ember": "ember test",
"_syncPnpm": "pnpm sync-pnpm"
},
"devDependencies": {
"@babel/core": "^7.19.6",
Expand Down Expand Up @@ -103,6 +104,7 @@
"prettier-plugin-ember-template-tag": "^0.3.0",
"qunit": "^2.19.1",
"qunit-dom": "^2.0.0",
"sync-pnpm": "workspace:*",
"tailwindcss": "^3.1.8",
"typescript": "^4.8.4",
"webpack": "^5.74.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "CrowdStrike UX Team",
"scripts": {
"release": "changeset publish",
"build:docs-app": "pnpm --filter 'docs-app' build",
"build:docs-app": "pnpm _turbo build --filter 'docs-app'",
"start": "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
"start:tests": "pnpm --filter test-app start",
"start:addon": "pnpm --filter !test-app start --no-watch.clearScreen",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
"lint:hbs": "ember-template-lint .",
Expand All @@ -24,7 +25,7 @@
"test": "ember test",
"test:ember": "ember test",
"typecheck": "pnpm tsc -v; pnpm glint --version; pnpm lint:types",
"_build": "pnpm sync-pnpm"
"_syncPnpm": "pnpm sync-pnpm"
},
"devDependencies": {
"@ember-headless-form/changeset": "workspace:*",
Expand Down
14 changes: 7 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// dependencies and devDependencies
// `build` tasks being completed first
// (the `^` symbol signifies `upstream`).
"dependsOn": ["^build"],
"dependsOn": ["_syncPnpm"],
// Ignore all outputs for "dev", because we don't want to cache anything
"outputs": [],
"cache": false
Expand All @@ -23,26 +23,26 @@
// But for ember apps, they build themselves during
// test execution, so we can only get away with only
// building our dependencies
"dependsOn": ["_build"],
"dependsOn": ["_syncPnpm"],
"env": ["EMBER_TRY_CURRENT_SCENARIO", "EMBROIDER_TEST_SETUP_OPTIONS"]
},
"build": {
"outputs": ["dist/**"],
"dependsOn": ["^build"]
"dependsOn": ["_syncPnpm"]
},
"_build": {
"dependsOn": ["build"],
"_syncPnpm": {
"dependsOn": ["^build"],
"cache": false
},
"lint": {
"outputs": [],
// We treat type checking as a lint, so it requires the build to be successful
"dependsOn": ["_build"]
"dependsOn": ["_syncPnpm"]
},
// Used for typescript-support-matrix
"typecheck": {
"outputs": [],
"dependsOn": ["_build"]
"dependsOn": ["_syncPnpm"]
}
}
}

0 comments on commit 733d8a8

Please sign in to comment.