-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move plugins under platform package (#146)
- Loading branch information
1 parent
295bdac
commit cbc0264
Showing
6 changed files
with
35 additions
and
18 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
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,3 +1,3 @@ | ||
import { analogPlatform } from './lib/analog-platform-plugin'; | ||
import { platformPlugin } from './lib/platform-plugin'; | ||
|
||
export default analogPlatform; | ||
export default platformPlugin; |
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,7 @@ | ||
import type { PluginOptions } from '@analogjs/vite-plugin-angular'; | ||
import { NitroConfig } from 'nitropack'; | ||
|
||
export interface Options { | ||
vite?: PluginOptions; | ||
nitro?: NitroConfig; | ||
} |
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,9 @@ | ||
import { Plugin } from 'vite'; | ||
import angular from '@analogjs/vite-plugin-angular'; | ||
|
||
import { Options } from './options'; | ||
import { viteNitroPlugin } from './vite-nitro-plugin'; | ||
|
||
export function platformPlugin(opts?: Options): Plugin[] { | ||
return [viteNitroPlugin(opts?.nitro), ...angular(opts?.vite)]; | ||
} |
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