Skip to content

Commit af92d26

Browse files
fix(qwik-nx): misc updates (#186)
1 parent d6a26af commit af92d26

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packages/qwik-nx/src/generators/application/generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export async function appGenerator(
6969
await initGenerator(tree, {
7070
includeLib: false,
7171
uiFramework: 'none',
72+
testEnvironment: 'node',
7273
})
7374
);
7475

packages/qwik-nx/src/generators/integrations/netlify/generator.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('netlify-integration generator', () => {
5555
dependsOn: ['build-netlify'],
5656
});
5757
expect(config.targets!['preview-netlify']).toEqual({
58-
executor: 'qwik-nx:exec',
58+
executor: 'nx:run-commands',
5959
options: {
6060
command: 'npx netlify dev --dir=client',
6161
cwd: `dist/apps/${projectName}`,

packages/qwik-nx/src/generators/integrations/netlify/generator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ function getDeployTarget(options: NormalizedOptions): TargetConfiguration {
6565
return {
6666
executor: 'qwik-nx:exec',
6767
options: {
68-
command: `npx netlify deploy --build --dir=client`,
68+
command: `npx netlify deploy --build --dir=client ${
69+
options.site ? '--site=' + options.site : ''
70+
}`.trim(),
6971
cwd: joinPathFragments('dist', options.root),
7072
},
7173
dependsOn: ['build-netlify'],
@@ -76,7 +78,7 @@ function getNetlifyPreviewTarget(
7678
options: NormalizedOptions
7779
): TargetConfiguration {
7880
return {
79-
executor: 'qwik-nx:exec',
81+
executor: 'nx:run-commands',
8082
options: {
8183
command: `npx netlify dev --dir=client`,
8284
cwd: joinPathFragments('dist', options.root),

packages/qwik-nx/src/generators/library/generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ async function configureVite(tree: Tree, options: NormalizedSchema) {
125125
const callback = await initGenerator(tree, {
126126
uiFramework: 'none',
127127
includeLib: true,
128+
testEnvironment: 'node',
128129
});
129130

130131
const projectConfig = readProjectConfiguration(tree, options.projectName);

0 commit comments

Comments
 (0)