Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 4f9c0a6

Browse files
authored
deps: improve deps topology (#164)
2 parents 5caba53 + 15b044b commit 4f9c0a6

File tree

3 files changed

+25
-245
lines changed

3 files changed

+25
-245
lines changed

package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"prepare": "husky install",
2727
"codegen": "graphql-codegen --config .graphqlrc.yml --require dotenv/config",
2828
"codegen:watch": "yarn run codegen -- --watch",
29-
"dev": "concurrently 'yarn run codegen:watch' 'turbo run dev --no-cache --continue'",
29+
"dev": "turbo run dev --no-cache --continue",
3030
"lint": "turbo run lint",
3131
"test": "turbo run test",
3232
"clean": "turbo run clean",
@@ -39,34 +39,25 @@
3939
],
4040
"dependencies": {
4141
"@graphql-codegen/cli": "^3.2.1",
42-
"cross-fetch": "^3.1.5",
4342
"dotenv": "16.0.3",
4443
"dotenv-cli": "^7.0.0",
4544
"graphql": "^16.6.0",
4645
"graphql-config": "^4.4.1",
47-
"graphql-tag": "^2.12.6",
48-
"next": "13.2.1-canary.0",
49-
"react": "^18.2.0",
50-
"react-dom": "^18.2.0"
46+
"graphql-tag": "^2.12.6"
5147
},
5248
"devDependencies": {
5349
"@graphql-codegen/cli": "^3.2.1",
5450
"@graphql-codegen/client-preset": "2.1.0",
5551
"@graphql-codegen/introspection": "3.0.1",
5652
"@graphql-codegen/schema-ast": "3.0.1",
57-
"@types/jest": "^29.4.0",
5853
"@types/node": "^18.14.2",
5954
"@types/prettier": "^2.7.2",
6055
"commitlint": "^17.4.4",
6156
"concurrently": "^7.6.0",
6257
"eslint": "^8.35.0",
6358
"husky": "^8.0.3",
64-
"jest": "^29.4.3",
6559
"lint-staged": "^13.1.2",
6660
"prettier": "^2.8.4",
67-
"prettier-plugin-tailwindcss": "^0.2.3",
68-
"rimraf": "^4.1.2",
69-
"ts-jest": "^29.0.5",
7061
"ts-node": "^10.9.1",
7162
"turbo": "^1.8.3",
7263
"typescript": "^4.9.5"

turbo.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@
1111
],
1212
"pipeline": {
1313
"copy": {
14+
"inputs": ["packages/tu-assets/**"],
1415
"outputs": ["public/assets/**"]
1516
},
1617
"build": {
1718
"dependsOn": ["copy", "^build"],
19+
"inputs": ["src/**", "resources/**", "tailwind.config.*"],
1820
"outputs": [
1921
"dist/**",
2022
".next/**",
2123
"build/**",
2224
"api/**",
23-
"public/build/**"
25+
"public/**",
26+
"theme.json"
2427
]
2528
},
2629
"lint": {
@@ -31,12 +34,31 @@
3134
"inputs": ["**/*.tsx", "**/*.ts", "test/**/*.ts"]
3235
},
3336
"dev": {
37+
"inputs": ["src/**", "resources/**"],
3438
"dependsOn": ["copy"],
3539
"cache": false,
3640
"persistent": true
3741
},
3842
"clean": {
3943
"cache": false
44+
},
45+
"//#codegen": {
46+
"inputs": ["apps/nextjs/lib/graphql/**"],
47+
"outputs": ["apps/nextjs/gql/**", "graphql.schema.json"],
48+
"env": ["GRAPHQL_SCHEMA"]
49+
},
50+
"//#codegen:watch": {
51+
"inputs": ["apps/nextjs/lib/graphql/**"],
52+
"outputs": ["apps/nextjs/gql/**", "graphql.schema.json"],
53+
"env": ["GRAPHQL_SCHEMA"]
54+
},
55+
"@kleinweb/logan-center-nextjs#dev": {
56+
"dependsOn": ["copy", "//#codegen:watch"],
57+
"cache": false,
58+
"persistent": true
59+
},
60+
"@kleinweb/logan-center-nextjs#build": {
61+
"dependsOn": ["^//#codegen"]
4062
}
4163
}
4264
}

0 commit comments

Comments
 (0)