@cypress/webpack-dev-server 3.9.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ export interface CypressCTWebpackPluginOptions {
|
|
|
9
9
|
webpack: Function;
|
|
10
10
|
indexHtmlFile: string;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type CypressCTContextOptions = Omit<CypressCTWebpackPluginOptions, 'devServerEvents' | 'webpack'>;
|
|
13
13
|
export interface CypressCTWebpackContext {
|
|
14
14
|
_cypress: CypressCTContextOptions;
|
|
15
15
|
}
|
package/dist/devServer.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import type { Configuration } from 'webpack';
|
|
4
4
|
import { SourceRelativeWebpackResult } from './helpers/sourceRelativeWebpackModules';
|
|
5
|
-
export
|
|
5
|
+
export type Frameworks = Extract<Cypress.DevServerConfigOptions, {
|
|
6
6
|
bundler: 'webpack';
|
|
7
7
|
}>['framework'];
|
|
8
|
-
|
|
8
|
+
type FrameworkConfig = {
|
|
9
9
|
framework?: Exclude<Frameworks, 'angular'>;
|
|
10
10
|
} | {
|
|
11
11
|
framework: 'angular';
|
|
@@ -13,8 +13,8 @@ declare type FrameworkConfig = {
|
|
|
13
13
|
projectConfig: Cypress.AngularDevServerProjectConfig;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type ConfigHandler = Partial<Configuration> | (() => Partial<Configuration> | Promise<Partial<Configuration>>);
|
|
17
|
+
export type WebpackDevServerConfig = {
|
|
18
18
|
specs: Cypress.Spec[];
|
|
19
19
|
cypressConfig: Cypress.PluginConfigOptions;
|
|
20
20
|
devServerEvents: NodeJS.EventEmitter;
|
|
@@ -37,7 +37,7 @@ export declare namespace devServer {
|
|
|
37
37
|
version: 3 | 4 | 5;
|
|
38
38
|
}>;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type PresetHandlerResult = {
|
|
41
41
|
frameworkConfig: Configuration;
|
|
42
42
|
sourceWebpackModulesResult: SourceRelativeWebpackResult;
|
|
43
43
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
2
|
import type { PresetHandlerResult, WebpackDevServerConfig } from '../devServer';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type BuildOptions = Record<string, any>;
|
|
4
|
+
export type AngularWebpackDevServerConfig = Extract<WebpackDevServerConfig, {
|
|
5
5
|
framework: 'angular';
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
type Configurations = {
|
|
8
8
|
configurations?: {
|
|
9
9
|
[configuration: string]: BuildOptions;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type AngularJsonProjectConfig = {
|
|
13
13
|
projectType: string;
|
|
14
14
|
root: string;
|
|
15
15
|
sourceRoot: string;
|
|
@@ -19,7 +19,7 @@ export declare type AngularJsonProjectConfig = {
|
|
|
19
19
|
} & Configurations;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
type AngularJson = {
|
|
23
23
|
defaultProject?: string;
|
|
24
24
|
projects: {
|
|
25
25
|
[project: string]: AngularJsonProjectConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import Module from 'module';
|
|
3
3
|
import type { WebpackDevServerConfig } from '../devServer';
|
|
4
|
-
export
|
|
4
|
+
export type ModuleClass = typeof Module & {
|
|
5
5
|
_load(id: string, parent: Module, isMain: boolean): any;
|
|
6
6
|
_resolveFilename(request: string, parent: Module, isMain: boolean, options?: {
|
|
7
7
|
paths: string[];
|