Skip to content

Commit 4ec5d6c

Browse files
committed
chore(repo): project relationships and tasks stuff
1 parent c518a2f commit 4ec5d6c

File tree

4 files changed

+19
-41
lines changed

4 files changed

+19
-41
lines changed

libs/core/project.json

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,7 @@
2222
},
2323
"defaultConfiguration": "production"
2424
},
25-
"build-ecosystem": {
26-
"executor": "nx:run-commands",
27-
"options": {
28-
"commands": [
29-
"pnpm exec nx build soba",
30-
"pnpm exec nx build cannon",
31-
"pnpm exec nx build postprocessing",
32-
"pnpm exec nx build rapier"
33-
],
34-
"parallel": true
35-
}
36-
},
37-
"package": {
38-
"executor": "nx:run-commands",
39-
"options": {
40-
"commands": [
41-
"pnpm exec nx build core",
42-
"pnpm exec nx build-ecosystem core",
43-
"pnpm exec nx generate-json core",
44-
"pnpm exec nx build plugin"
45-
],
46-
"parallel": false
47-
}
48-
},
49-
"generate-json": {
50-
"executor": "nx:run-commands",
51-
"options": {
52-
"commands": ["node ./tools/scripts/generate-json.mjs", "node ./tools/scripts/generate-soba-json.mjs"],
53-
"parallel": true
54-
}
55-
},
25+
5626
"test": {
5727
"executor": "@analogjs/vitest-angular:test"
5828
},

libs/plugin/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"output": "."
3535
}
3636
]
37-
}
37+
},
38+
"dependsOn": [{ "target": "build", "projects": "core" }]
3839
},
3940
"lint": {
4041
"executor": "@nx/eslint:lint",

nx.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"inputs": ["production", "^production"],
66
"cache": true
77
},
8-
"package": {
9-
"dependsOn": ["build"],
10-
"inputs": ["production", "^production"],
11-
"cache": true
12-
},
138
"build-storybook": {
149
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"],
1510
"cache": true
@@ -93,9 +88,9 @@
9388
}
9489
},
9590
"release": {
96-
"projects": ["core", "cannon", "postprocessing", "soba", "rapier"],
91+
"projects": ["core", "cannon", "postprocessing", "soba", "rapier", "plugin"],
9792
"version": {
98-
"preVersionCommand": "nx package core",
93+
"preVersionCommand": "npm run package",
9994
"generatorOptions": {
10095
"packageRoot": "dist/libs/{projectName}",
10196
"currentVersionResolver": "git-tag"

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"**comments**": "these scripts are here for convenience to debugging",
77
"generate-json": "node tools/scripts/generate-json.mjs",
88
"generate-soba": "node tools/scripts/generate-soba-json.mjs",
9-
"commit": "czg"
9+
"commit": "czg",
10+
"package": "nx run-many -t build --projects=core,cannon,postprocessing,soba,rapier,plugin && nx generate-json @platform/source"
1011
},
1112
"private": true,
1213
"devDependencies": {
@@ -163,5 +164,16 @@
163164
"czConfig": "cz.config.js"
164165
}
165166
},
166-
"packageManager": "[email protected]"
167+
"packageManager": "[email protected]",
168+
"nx": {
169+
"targets": {
170+
"generate-json": {
171+
"executor": "nx:run-commands",
172+
"options": {
173+
"commands": ["node ./tools/scripts/generate-json.mjs", "node ./tools/scripts/generate-soba-json.mjs"],
174+
"parallel": true
175+
}
176+
}
177+
}
178+
}
167179
}

0 commit comments

Comments
 (0)