Merged in feat/turborepo (pull request #1451)
Turborepo Approved-by: Linus Flood
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -8,3 +8,6 @@ node_modules
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
.yarn/releases
|
.yarn/releases
|
||||||
|
|
||||||
|
# Turbo
|
||||||
|
.turbo
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
"test:e2e:headless": "start-server-and-test test:setup http://127.0.0.1:3000/en/sponsoring \"cypress run --e2e\"",
|
"test:e2e:headless": "start-server-and-test test:setup http://127.0.0.1:3000/en/sponsoring \"cypress run --e2e\"",
|
||||||
"test:setup": "yarn build && yarn start",
|
"test:setup": "yarn build && yarn start",
|
||||||
"preinstall": "/bin/sh -c \"export $(cat .env.local | grep -v '^#' | xargs)\"",
|
"preinstall": "/bin/sh -c \"export $(cat .env.local | grep -v '^#' | xargs)\"",
|
||||||
"test:unit": "jest",
|
"test": "jest",
|
||||||
"test:unit:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"ci:build": "yarn lint && yarn test:unit && yarn build",
|
"ci:build": "yarn lint && yarn test && yarn build",
|
||||||
"clean": "rm -rf .next"
|
"clean": "rm -rf .next"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
14
apps/scandic-web/turbo.json
Normal file
14
apps/scandic-web/turbo.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": ["//"],
|
||||||
|
"tasks": {
|
||||||
|
"dev": {
|
||||||
|
"dependsOn": ["@scandic-hotels/design-system#build"]
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"dependsOn": ["@scandic-hotels/design-system#build"]
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"dependsOn": ["@scandic-hotels/design-system#build"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
package.json
11
package.json
@@ -2,8 +2,12 @@
|
|||||||
"name": "scandic",
|
"name": "scandic",
|
||||||
"packageManager": "yarn@4.6.0",
|
"packageManager": "yarn@4.6.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn workspace @scandic-hotels/design-system build && yarn workspace @scandic-hotels/scandic-web ci:build",
|
"build": "turbo run build --env-mode=loose",
|
||||||
"lint": "yarn workspace @scandic-hotels/scandic-web lint",
|
"lint": "turbo run lint",
|
||||||
|
"dev": "turbo run dev --output-logs new-only",
|
||||||
|
"dev:web": "turbo run dev --filter=@scandic-hotels/scandic-web --output-logs new-only",
|
||||||
|
"dev:ds": "turbo run dev --filter=@scandic-hotels/design-system --output-logs new-only",
|
||||||
|
"test": "turbo run test",
|
||||||
"postinstall": "husky"
|
"postinstall": "husky"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
@@ -15,6 +19,7 @@
|
|||||||
"@types/react-dom": "^18.2.0",
|
"@types/react-dom": "^18.2.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^15.2.2",
|
"lint-staged": "^15.2.2",
|
||||||
"ts-node": "^10.9.2"
|
"ts-node": "^10.9.2",
|
||||||
|
"turbo": "^2.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,8 @@
|
|||||||
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc",
|
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc",
|
||||||
"storybook": "yarn run generate && storybook dev -p 6006",
|
"storybook": "yarn run generate && storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"test": "vitest",
|
"test": "vitest --watch=false",
|
||||||
|
"test:watch": "vitest",
|
||||||
"prepack": "yarn run build",
|
"prepack": "yarn run build",
|
||||||
"prepare": "husky && yarn run build"
|
"prepare": "husky && yarn run build"
|
||||||
},
|
},
|
||||||
|
|||||||
8
packages/design-system/turbo.json
Normal file
8
packages/design-system/turbo.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": ["//"],
|
||||||
|
"tasks": {
|
||||||
|
"build": {
|
||||||
|
"outputs": ["dist/**"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
16
turbo.json
Normal file
16
turbo.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"tasks": {
|
||||||
|
"build": {
|
||||||
|
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"outputs": [".next/**", "!.next/cache/**"]
|
||||||
|
},
|
||||||
|
"dev": {
|
||||||
|
"persistent": true,
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"lint": {},
|
||||||
|
"test": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
72
yarn.lock
72
yarn.lock
@@ -18460,6 +18460,7 @@ __metadata:
|
|||||||
husky: "npm:^9.1.7"
|
husky: "npm:^9.1.7"
|
||||||
lint-staged: "npm:^15.2.2"
|
lint-staged: "npm:^15.2.2"
|
||||||
ts-node: "npm:^10.9.2"
|
ts-node: "npm:^10.9.2"
|
||||||
|
turbo: "npm:^2.4.4"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
@@ -19921,6 +19922,77 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-darwin-64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-darwin-64@npm:2.4.4"
|
||||||
|
conditions: os=darwin & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-darwin-arm64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-darwin-arm64@npm:2.4.4"
|
||||||
|
conditions: os=darwin & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-linux-64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-linux-64@npm:2.4.4"
|
||||||
|
conditions: os=linux & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-linux-arm64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-linux-arm64@npm:2.4.4"
|
||||||
|
conditions: os=linux & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-windows-64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-windows-64@npm:2.4.4"
|
||||||
|
conditions: os=win32 & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo-windows-arm64@npm:2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo-windows-arm64@npm:2.4.4"
|
||||||
|
conditions: os=win32 & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"turbo@npm:^2.4.4":
|
||||||
|
version: 2.4.4
|
||||||
|
resolution: "turbo@npm:2.4.4"
|
||||||
|
dependencies:
|
||||||
|
turbo-darwin-64: "npm:2.4.4"
|
||||||
|
turbo-darwin-arm64: "npm:2.4.4"
|
||||||
|
turbo-linux-64: "npm:2.4.4"
|
||||||
|
turbo-linux-arm64: "npm:2.4.4"
|
||||||
|
turbo-windows-64: "npm:2.4.4"
|
||||||
|
turbo-windows-arm64: "npm:2.4.4"
|
||||||
|
dependenciesMeta:
|
||||||
|
turbo-darwin-64:
|
||||||
|
optional: true
|
||||||
|
turbo-darwin-arm64:
|
||||||
|
optional: true
|
||||||
|
turbo-linux-64:
|
||||||
|
optional: true
|
||||||
|
turbo-linux-arm64:
|
||||||
|
optional: true
|
||||||
|
turbo-windows-64:
|
||||||
|
optional: true
|
||||||
|
turbo-windows-arm64:
|
||||||
|
optional: true
|
||||||
|
bin:
|
||||||
|
turbo: bin/turbo
|
||||||
|
checksum: 10c0/e6810cf33835bf9fba4d037a70054b408854073b03d10747bd9a681d2889dfc1897a4a4570113006ca2639fed8a4f91b86b052d4d8111e119895f1fb1804f233
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"tweetnacl@npm:^0.14.3, tweetnacl@npm:~0.14.0":
|
"tweetnacl@npm:^0.14.3, tweetnacl@npm:~0.14.0":
|
||||||
version: 0.14.5
|
version: 0.14.5
|
||||||
resolution: "tweetnacl@npm:0.14.5"
|
resolution: "tweetnacl@npm:0.14.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user