Skip to content

Commit 9c7426b

Browse files
feat: use @nrwl/vite:preview-server executor (#47)
1 parent 17ce312 commit 9c7426b

File tree

5 files changed

+1579
-255
lines changed

5 files changed

+1579
-255
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ nx generate qwik-nx:route
6767
nx generate qwik-nx:setup-tailwind
6868
```
6969

70+
## qwik-nx & Nx Compatibility Chart
71+
72+
| qwik-nx version | Nx version |
73+
| --------------- | ---------- |
74+
| ~0.6.0 | >=15.6.0 |
75+
| ~0.5.0 | ~15.5.0 |
76+
| ~0.4.0 | ~15.4.0 |
77+
| <=0.4.0 | ^15.0.0 |
78+
7079
## ROADMAP:
7180

7281
- [ ] Complete generators for Route, Component and more

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
"@commitlint/config-angular": "^17.3.0",
1717
"@commitlint/config-conventional": "^17.3.0",
1818
"@jscutlery/semver": "^2.29.0",
19-
"@nrwl/cli": "15.5.3",
20-
"@nrwl/cypress": "15.5.3",
21-
"@nrwl/devkit": "15.5.3",
22-
"@nrwl/eslint-plugin-nx": "15.5.3",
23-
"@nrwl/jest": "15.5.3",
24-
"@nrwl/js": "15.5.3",
25-
"@nrwl/linter": "15.5.3",
26-
"@nrwl/nx-plugin": "15.5.3",
27-
"@nrwl/vite": "15.5.3",
28-
"@nrwl/workspace": "15.5.3",
19+
"@nrwl/cli": "15.6.1",
20+
"@nrwl/cypress": "15.6.1",
21+
"@nrwl/devkit": "15.6.1",
22+
"@nrwl/eslint-plugin-nx": "15.6.1",
23+
"@nrwl/jest": "15.6.1",
24+
"@nrwl/js": "15.6.1",
25+
"@nrwl/linter": "15.6.1",
26+
"@nrwl/nx-plugin": "15.6.1",
27+
"@nrwl/vite": "15.6.1",
28+
"@nrwl/workspace": "15.6.1",
2929
"@nxkit/playwright": "2.0.1",
3030
"@swc-node/register": "^1.4.2",
3131
"@swc/cli": "~0.1.55",
@@ -45,7 +45,7 @@
4545
"jest-environment-jsdom": "28.1.1",
4646
"jsonc-eslint-parser": "^2.1.0",
4747
"ngx-deploy-npm": "^4.3.10",
48-
"nx": "15.5.3",
48+
"nx": "15.6.1",
4949
"prettier": "^2.8.0",
5050
"pretty-quick": "^3.1.3",
5151
"ts-jest": "28.0.5",

packages/qwik-nx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"generators": "./generators.json",
2222
"executors": "./executors.json",
2323
"dependencies": {
24-
"@nrwl/vite": "~15.5.3"
24+
"@nrwl/vite": "~15.6.0"
2525
}
2626
}

packages/qwik-nx/src/generators/application/utils/get-qwik-application-project-params.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ function getPreviewTarget(
5353
params: UpdateQwikAppConfigurationParams
5454
): TargetConfiguration {
5555
return {
56-
executor: 'nx:run-commands',
56+
executor: '@nrwl/vite:preview-server',
5757
options: {
58-
command: 'vite preview',
59-
cwd: `${params.projectRoot}`,
58+
buildTarget: `${params.projectName}:build-ssr`,
6059
},
61-
dependsOn: ['build-ssr'],
60+
dependsOn: ['build'],
6261
};
6362
}
6463
function getTestTarget(

0 commit comments

Comments
 (0)