-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
32 changed files
with
329 additions
and
194 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* eslint-disable */ | ||
import { VERSION } from '@angular/cli'; | ||
|
||
export let BrowserBuilderSchema: any; | ||
|
1 change: 1 addition & 0 deletions
1
angular/devkit/ng-compat/build-angular/index-html-webpack-plugin.ts
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,4 @@ | ||
/* eslint-disable */ | ||
import { VERSION } from '@angular/cli'; | ||
|
||
export let IndexHtmlWebpackPlugin: any; | ||
|
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,4 @@ | ||
/* eslint-disable */ | ||
import { VERSION } from '@angular/cli'; | ||
|
||
export let OutputHashing: any; | ||
|
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
1 change: 1 addition & 0 deletions
1
angular/devkit/ng-compat/build-angular/utils/normalize-cache.ts
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,4 @@ | ||
/* eslint-disable */ | ||
import { VERSION } from '@angular/cli'; | ||
import { json } from '@angular-devkit/core'; | ||
|
||
|
1 change: 1 addition & 0 deletions
1
angular/devkit/ng-compat/build-angular/utils/package-chunk-sort.ts
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,4 @@ | ||
/* eslint-disable */ | ||
import { VERSION } from '@angular/cli'; | ||
|
||
export let generateEntryPoints: (options: { | ||
|
1 change: 1 addition & 0 deletions
1
angular/devkit/ng-compat/build-angular/utils/webpack-browser-config.ts
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,4 @@ | ||
/* eslint-disable */ | ||
import type { Configuration } from 'webpack'; | ||
import { VERSION } from '@angular/cli'; | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import { | ||
AngularEnvOptions, | ||
BrowserOptions, | ||
DevServerOptions | ||
} from '@bitdev/angular.dev-services.common'; | ||
import type { DevServerContext } from '@teambit/bundler'; | ||
import { Logger } from '@teambit/logger'; | ||
import { PubsubMain } from '@teambit/pubsub'; | ||
import type { Workspace } from '@teambit/workspace'; | ||
// @ts-ignore | ||
import type { Alias, InlineConfig, PluginOption } from 'vite'; | ||
|
||
|
||
export type ViteConfigTransformer = (config: InlineConfig) => void; | ||
|
||
export type ViteDevServerAspectsContext = { | ||
logger: Logger; | ||
workspace: Workspace; | ||
pubsub: PubsubMain; | ||
}; | ||
|
||
export type NgViteDevServerOptions = { | ||
angularOptions: Partial<BrowserOptions & DevServerOptions>; | ||
|
||
/** | ||
* context of the dev server execution. | ||
*/ | ||
devServerContext: DevServerContext; | ||
|
||
/** | ||
* name of the dev server. | ||
*/ | ||
name?: string; | ||
|
||
ngEnvOptions: AngularEnvOptions; | ||
|
||
sourceRoot?: string; | ||
|
||
// TODO: fix type once we can support preview with vite | ||
transformers?: (ViteConfigTransformer | any)[]; | ||
|
||
// TODO: remove this once we can support preview with vite | ||
[key: string]: any; | ||
}; | ||
|
||
export type ViteDevServerOptions = { | ||
/** | ||
* name of the dev server. | ||
*/ | ||
name?: string; | ||
|
||
/** | ||
* context of the dev server execution. | ||
*/ | ||
devServerContext: DevServerContext; | ||
|
||
/** | ||
* optimize entries before passing them to Vite. | ||
*/ | ||
optimizeEntries?: (entries: string[], context: ViteDevServerAspectsContext) => string[]; | ||
|
||
/** | ||
* root path of the dev server. | ||
*/ | ||
root?: string; | ||
|
||
/** | ||
* base URL to use for all relative URLs in a document | ||
*/ | ||
base?: string; | ||
|
||
/** | ||
* variables to be injected to the dev server. | ||
*/ | ||
define?: Record<string, any>; | ||
|
||
/** | ||
* alias to be injected to the dev server. | ||
*/ | ||
alias?: Alias[]; | ||
|
||
/** | ||
* list of plugins to be injected to the dev server. | ||
*/ | ||
plugins?: PluginOption[]; | ||
|
||
/** | ||
* list of transformers to modify Vite config in an advanced way. | ||
*/ | ||
transformers?: ViteConfigTransformer[]; | ||
}; |
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 +1,2 @@ | ||
export * from './ng-vite-dev-server'; | ||
export * from './dev-server/types'; |
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.