-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61a7e39
commit 8a9bbe1
Showing
17 changed files
with
130 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## 0.0.0-e2e (2024-06-24) | ||
|
||
### 🚀 Features | ||
|
||
- **sveltekit:** upgrade versions and allow CLI overrides ([f867fb34](https://github.com/nxext/nx-extensions/commit/f867fb34)) | ||
|
||
### 🩹 Fixes | ||
|
||
- **stencil:** allow ArrayLiteralExpression in addCodeIntoArray ([f24475d5](https://github.com/nxext/nx-extensions/commit/f24475d5)) | ||
- **stencil:** resolve `validateConfig` error from @stencil/core@14.17.0 onward ([f5b87252](https://github.com/nxext/nx-extensions/commit/f5b87252)) | ||
- **stencil:** remove gitignore addage ([b6e8e8be](https://github.com/nxext/nx-extensions/commit/b6e8e8be)) | ||
|
||
### ❤️ Thank You | ||
|
||
- Dominik Pieper @DominikPieper | ||
- kristianmandrup @kristianmandrup | ||
- Maarten Van Hoof @mrtnvh | ||
- Sharief Orie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,46 @@ | ||
import { ensurePackage, NX_VERSION, Tree } from '@nx/devkit'; | ||
import { | ||
ensurePackage, | ||
GeneratorCallback, | ||
NX_VERSION, | ||
runTasksInSerial, | ||
Tree, | ||
} from '@nx/devkit'; | ||
import { NormalizedSchema } from '../schema'; | ||
import { createOrEditViteConfig } from '@nx/vite'; | ||
|
||
export async function addVite(host: Tree, options: NormalizedSchema) { | ||
const { viteConfigurationGenerator } = ensurePackage< | ||
typeof import('@nx/vite') | ||
>('@nx/vite', NX_VERSION); | ||
const tasks: GeneratorCallback[] = []; | ||
|
||
return await viteConfigurationGenerator(host, { | ||
uiFramework: 'none', | ||
project: options.name, | ||
newProject: true, | ||
includeVitest: options.unitTestRunner === 'vitest', | ||
inSourceTests: false, | ||
}); | ||
if (options.buildable || options.publishable) { | ||
const { viteConfigurationGenerator } = ensurePackage< | ||
typeof import('@nx/vite') | ||
>('@nx/vite', NX_VERSION); | ||
|
||
const viteTask = await viteConfigurationGenerator(host, { | ||
uiFramework: 'none', | ||
project: options.name, | ||
newProject: true, | ||
includeLib: true, | ||
includeVitest: options.unitTestRunner === 'vitest', | ||
inSourceTests: false, | ||
skipFormat: true, | ||
}); | ||
tasks.push(viteTask); | ||
|
||
createOrEditViteConfig( | ||
host, | ||
{ | ||
project: options.name, | ||
includeLib: true, | ||
includeVitest: options.unitTestRunner === 'vitest', | ||
inSourceTests: false, | ||
rollupOptionsExternal: [], | ||
imports: [`import solidPlugin from 'vite-plugin-solid'`], | ||
plugins: [`solidPlugin()`], | ||
}, | ||
false | ||
); | ||
} | ||
|
||
return runTasksInSerial(...tasks); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,46 @@ | ||
import { Tree, ensurePackage, NX_VERSION } from '@nx/devkit'; | ||
import { | ||
Tree, | ||
ensurePackage, | ||
NX_VERSION, | ||
GeneratorCallback, | ||
runTasksInSerial, | ||
} from '@nx/devkit'; | ||
import { NormalizedSchema } from '../schema'; | ||
import { createOrEditViteConfig } from '@nx/vite'; | ||
|
||
export async function addVite(host: Tree, options: NormalizedSchema) { | ||
const tasks: GeneratorCallback[] = []; | ||
|
||
if (options.buildable || options.publishable) { | ||
const { viteConfigurationGenerator } = ensurePackage< | ||
typeof import('@nx/vite') | ||
>('@nx/vite', NX_VERSION); | ||
|
||
return await viteConfigurationGenerator(host, { | ||
const viteTask = await viteConfigurationGenerator(host, { | ||
uiFramework: 'none', | ||
project: options.name, | ||
newProject: true, | ||
includeLib: true, | ||
includeVitest: options.unitTestRunner === 'vitest', | ||
inSourceTests: false, | ||
skipFormat: true, | ||
}); | ||
tasks.push(viteTask); | ||
|
||
createOrEditViteConfig( | ||
host, | ||
{ | ||
project: options.name, | ||
includeLib: false, | ||
includeVitest: options.unitTestRunner === 'vitest', | ||
inSourceTests: false, | ||
rollupOptionsExternal: [], | ||
imports: [`import { svelte } from '@sveltejs/vite-plugin-svelte'`], | ||
plugins: [`svelte()`], | ||
}, | ||
false | ||
); | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
return () => {}; | ||
return runTasksInSerial(...tasks); | ||
} |
23 changes: 0 additions & 23 deletions
23
packages/svelte/src/generators/library/lib/update-jest-config.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.