@elliemae/pui-cli 7.27.0-beta.2 → 7.27.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.
Files changed (103) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/cli.js +12 -14
  3. package/dist/cjs/commands/build.js +8 -9
  4. package/dist/cjs/commands/codemod.js +9 -7
  5. package/dist/cjs/commands/gendoc.js +2 -2
  6. package/dist/cjs/commands/lint.js +23 -21
  7. package/dist/cjs/commands/pack.js +20 -25
  8. package/dist/cjs/commands/start.js +10 -11
  9. package/dist/cjs/commands/storybook.js +18 -19
  10. package/dist/cjs/commands/test.js +31 -37
  11. package/dist/cjs/commands/tscheck.js +8 -9
  12. package/dist/cjs/commands/utils.js +6 -11
  13. package/dist/cjs/commands/version.js +19 -21
  14. package/dist/cjs/commands/vitest.js +28 -32
  15. package/dist/cjs/index.cjs +2 -0
  16. package/dist/cjs/index.js +2 -2
  17. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  18. package/dist/cjs/monorepo/set-registry-version.js +2 -2
  19. package/dist/cjs/monorepo/set-workspace-version.js +2 -2
  20. package/dist/cjs/server/app-routes.cjs +42 -0
  21. package/dist/cjs/server/csp.js +4 -3
  22. package/dist/cjs/server/index.js +11 -13
  23. package/dist/cjs/server/middlewares.js +4 -7
  24. package/dist/cjs/server/utils.js +1 -1
  25. package/dist/cjs/webpack/helpers.js +3 -3
  26. package/dist/cjs/webpack/webpack.base.babel.js +10 -3
  27. package/dist/cjs/webpack/webpack.dev.babel.js +10 -13
  28. package/dist/cjs/webpack/webpack.lib.base.babel.js +5 -4
  29. package/dist/cjs/webpack/webpack.lib.dev.babel.js +0 -1
  30. package/dist/cjs/webpack/webpack.prod.babel.js +15 -7
  31. package/dist/cjs/webpack/webpack.storybook.js +20 -27
  32. package/dist/esm/cli.js +12 -14
  33. package/dist/esm/commands/build.js +8 -9
  34. package/dist/esm/commands/codemod.js +9 -7
  35. package/dist/esm/commands/gendoc.js +2 -2
  36. package/dist/esm/commands/lint.js +23 -27
  37. package/dist/esm/commands/pack.js +20 -32
  38. package/dist/esm/commands/start.js +10 -11
  39. package/dist/esm/commands/storybook.js +18 -19
  40. package/dist/esm/commands/test.js +31 -37
  41. package/dist/esm/commands/tscheck.js +8 -9
  42. package/dist/esm/commands/utils.js +5 -10
  43. package/dist/esm/commands/version.js +19 -21
  44. package/dist/esm/commands/vitest.js +28 -32
  45. package/dist/esm/index.cjs +2 -0
  46. package/dist/esm/index.js +1 -1
  47. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  48. package/dist/esm/monorepo/set-registry-version.js +2 -2
  49. package/dist/esm/monorepo/set-workspace-version.js +2 -2
  50. package/dist/esm/server/app-routes.cjs +42 -0
  51. package/dist/esm/server/csp.js +4 -3
  52. package/dist/esm/server/index.js +11 -13
  53. package/dist/esm/server/middlewares.js +4 -7
  54. package/dist/esm/server/utils.js +1 -1
  55. package/dist/esm/webpack/helpers.js +3 -3
  56. package/dist/esm/webpack/webpack.base.babel.js +10 -3
  57. package/dist/esm/webpack/webpack.dev.babel.js +10 -13
  58. package/dist/esm/webpack/webpack.lib.base.babel.js +5 -4
  59. package/dist/esm/webpack/webpack.lib.dev.babel.js +0 -1
  60. package/dist/esm/webpack/webpack.prod.babel.js +15 -7
  61. package/dist/esm/webpack/webpack.storybook.js +20 -27
  62. package/dist/types/commands/build.d.ts +13 -13
  63. package/dist/types/commands/codemod.d.ts +6 -13
  64. package/dist/types/commands/gendoc.d.ts +6 -7
  65. package/dist/types/commands/lint.d.ts +29 -29
  66. package/dist/types/commands/pack.d.ts +26 -29
  67. package/dist/types/commands/start.d.ts +13 -17
  68. package/dist/types/commands/storybook.d.ts +27 -28
  69. package/dist/types/commands/test.d.ts +39 -47
  70. package/dist/types/commands/tscheck.d.ts +14 -16
  71. package/dist/types/commands/utils.d.ts +11 -11
  72. package/dist/types/commands/version.d.ts +28 -31
  73. package/dist/types/commands/vitest.d.ts +35 -41
  74. package/dist/types/index.d.cts +2 -1
  75. package/dist/types/index.d.ts +11 -11
  76. package/dist/types/monorepo/delete-merged-tags.d.ts +1 -1
  77. package/dist/types/monorepo/set-registry-version.d.ts +1 -1
  78. package/dist/types/monorepo/set-workspace-version.d.ts +1 -1
  79. package/dist/types/server/app-routes.d.cts +1 -0
  80. package/dist/types/server/csp.d.ts +9 -12
  81. package/dist/types/server/logger.d.ts +4 -7
  82. package/dist/types/server/middlewares.d.ts +2 -6
  83. package/dist/types/server/utils.d.ts +3 -3
  84. package/dist/types/testing/jest.config.d.cts +10 -10
  85. package/dist/types/testing/jest.node.config.d.cts +10 -10
  86. package/dist/types/webpack/helpers.d.ts +18 -19
  87. package/dist/types/webpack/webpack.base.babel.d.ts +106 -3
  88. package/dist/types/webpack/webpack.dev.babel.d.ts +1 -2
  89. package/dist/types/webpack/webpack.lib.base.babel.d.ts +102 -3
  90. package/dist/types/webpack/webpack.lib.dev.babel.d.ts +101 -3
  91. package/dist/types/webpack/webpack.lib.prod.babel.d.ts +101 -2
  92. package/dist/types/webpack/webpack.prod.babel.d.ts +2 -3
  93. package/dist/types/webpack/webpack.storybook.d.ts +4 -5
  94. package/package.json +52 -66
  95. package/dist/cjs/monorepo/utils.js +0 -54
  96. package/dist/cjs/server/appRoutes.js +0 -74
  97. package/dist/cjs/utils.js +0 -50
  98. package/dist/esm/monorepo/utils.js +0 -24
  99. package/dist/esm/server/appRoutes.js +0 -44
  100. package/dist/esm/utils.js +0 -20
  101. package/dist/types/monorepo/utils.d.ts +0 -1
  102. package/dist/types/server/appRoutes.d.ts +0 -2
  103. package/dist/types/utils.d.ts +0 -4
@@ -1,47 +1,39 @@
1
- import yargs, { Argv } from 'yargs';
2
- type Arguments = {
3
- fix: boolean;
4
- watch: boolean;
5
- debug: boolean;
6
- passWithNoTests: boolean;
7
- findReleatedTests: boolean;
8
- silent: boolean;
9
- };
10
- export declare const testCmd: {
11
- handler: (argv: Arguments) => Promise<void>;
12
- command: string;
13
- desc: string;
14
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "fix" | "watch" | "debug" | "passWithNoTests" | "findReleatedTests" | "silent"> & yargs.InferredOptionTypes<{
15
- fix: {
16
- boolean: boolean;
17
- alias: string;
18
- default: boolean;
19
- };
20
- watch: {
21
- boolean: boolean;
22
- alias: string;
23
- default: boolean;
24
- };
25
- debug: {
26
- boolean: boolean;
27
- alias: string;
28
- default: boolean;
29
- };
30
- passWithNoTests: {
31
- boolean: boolean;
32
- alias: string;
33
- default: boolean;
34
- };
35
- findReleatedTests: {
36
- boolean: boolean;
37
- alias: string;
38
- default: boolean;
39
- };
40
- silent: {
41
- boolean: boolean;
42
- alias: string;
43
- default: boolean;
44
- };
45
- }>>;
46
- };
47
- export {};
1
+ export namespace testCmd {
2
+ function handler(argv: any): Promise<0 | -1>;
3
+ const command: string;
4
+ const describe: string;
5
+ namespace builder {
6
+ namespace fix {
7
+ const alias: string;
8
+ const type: string;
9
+ }
10
+ namespace watch {
11
+ const alias_1: string;
12
+ export { alias_1 as alias };
13
+ const type_1: string;
14
+ export { type_1 as type };
15
+ }
16
+ namespace debug {
17
+ const type_2: string;
18
+ export { type_2 as type };
19
+ }
20
+ namespace passWithNoTests {
21
+ const alias_2: string;
22
+ export { alias_2 as alias };
23
+ const type_3: string;
24
+ export { type_3 as type };
25
+ }
26
+ namespace findReleatedTests {
27
+ const alias_3: string;
28
+ export { alias_3 as alias };
29
+ const type_4: string;
30
+ export { type_4 as type };
31
+ }
32
+ namespace silent {
33
+ const alias_4: string;
34
+ export { alias_4 as alias };
35
+ const type_5: string;
36
+ export { type_5 as type };
37
+ }
38
+ }
39
+ }
@@ -1,16 +1,14 @@
1
- import yargs, { Argv } from 'yargs';
2
- type Arguments = {
3
- files: string[];
4
- };
5
- export declare const tscheckCmd: {
6
- handler: ({ files }: Arguments) => Promise<void>;
7
- command: string;
8
- desc: string;
9
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "files"> & yargs.InferredOptionTypes<{
10
- files: {
11
- array: boolean;
12
- default: never[];
13
- };
14
- }>>;
15
- };
16
- export {};
1
+ export namespace tscheckCmd {
2
+ function handler({ files }: {
3
+ files: any;
4
+ }): Promise<void>;
5
+ const command: string;
6
+ const describe: string;
7
+ namespace builder {
8
+ namespace files {
9
+ export const type: string;
10
+ const _default: never[];
11
+ export { _default as default };
12
+ }
13
+ }
14
+ }
@@ -1,17 +1,17 @@
1
- /// <reference types="node" />
2
- export declare const exec: (command: string, options?: import("execa").Options<null> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
3
- export declare const logInfo: {
1
+ export function exec(command: any, options?: {
2
+ stdio: string;
3
+ }): Promise<import("execa").ExecaReturnValue<string> & import("execa").ExecaReturnValue<Buffer>>;
4
+ export const logInfo: {
4
5
  (...data: any[]): void;
5
6
  (message?: any, ...optionalParams: any[]): void;
6
7
  };
7
- export declare const logSuccess: (...args: string[]) => void;
8
- export declare const logError: {
8
+ export function logSuccess(...args: any[]): void;
9
+ export const logError: {
9
10
  (...data: any[]): void;
10
11
  (message?: any, ...optionalParams: any[]): void;
11
12
  };
12
- export declare const writeAppInfo: () => Promise<void>;
13
- export declare const copyBuildAssetsToVersionedFolder: () => Promise<void>;
14
- export declare const isPathExist: (pathToCheck: string) => Promise<boolean>;
15
- export declare const isApp: () => Promise<boolean>;
16
- export declare const getCIEnv: () => boolean;
17
- export declare const isTypeScriptEnabled: () => boolean;
13
+ export function writeAppInfo(): Promise<void>;
14
+ export function copyBuildAssetsToVersionedFolder(): Promise<void>;
15
+ export function isPathExist(pathToCheck: any): Promise<boolean>;
16
+ export function isApp(): Promise<boolean>;
17
+ export function getCIEnv(): boolean;
@@ -1,31 +1,28 @@
1
- import yargs, { Argv } from 'yargs';
2
- type Arguments = {
3
- deleteTags: boolean;
4
- useRegistry: boolean;
5
- useWorkspace: boolean;
6
- lernaOptions?: string;
7
- };
8
- export declare const versionCmd: {
9
- handler: (argv: Arguments) => Promise<void>;
10
- command: string;
11
- desc: string;
12
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "deleteTags" | "useRegistry" | "useWorkspace" | "lernaOptions"> & yargs.InferredOptionTypes<{
13
- deleteTags: {
14
- boolean: boolean;
15
- default: boolean;
16
- };
17
- useRegistry: {
18
- boolean: boolean;
19
- default: boolean;
20
- };
21
- useWorkspace: {
22
- boolean: boolean;
23
- default: boolean;
24
- };
25
- lernaOptions: {
26
- string: boolean;
27
- default: string;
28
- };
29
- }>>;
30
- };
31
- export {};
1
+ export namespace versionCmd {
2
+ function handler(argv: any): Promise<void>;
3
+ const command: string;
4
+ const describe: string;
5
+ namespace builder {
6
+ namespace deleteTags {
7
+ export const type: string;
8
+ const _default: boolean;
9
+ export { _default as default };
10
+ }
11
+ namespace useRegistry {
12
+ const type_1: string;
13
+ export { type_1 as type };
14
+ const _default_1: boolean;
15
+ export { _default_1 as default };
16
+ }
17
+ namespace useWorkspace {
18
+ const type_2: string;
19
+ export { type_2 as type };
20
+ const _default_2: boolean;
21
+ export { _default_2 as default };
22
+ }
23
+ namespace lernaOptions {
24
+ const type_3: string;
25
+ export { type_3 as type };
26
+ }
27
+ }
28
+ }
@@ -1,41 +1,35 @@
1
- import yargs, { Argv } from 'yargs';
2
- type Arguments = {
3
- fix?: boolean;
4
- watch?: boolean;
5
- passWithNoTests?: boolean;
6
- findReleatedTests?: boolean;
7
- silent?: boolean;
8
- };
9
- export declare const vitestCmd: {
10
- handler: (argv: Arguments) => Promise<void>;
11
- command: string;
12
- desc: string;
13
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "fix" | "watch" | "passWithNoTests" | "findReleatedTests" | "silent"> & yargs.InferredOptionTypes<{
14
- fix: {
15
- boolean: boolean;
16
- alias: string;
17
- default: boolean;
18
- };
19
- watch: {
20
- boolean: boolean;
21
- alias: string;
22
- default: boolean;
23
- };
24
- passWithNoTests: {
25
- boolean: boolean;
26
- alias: string;
27
- default: boolean;
28
- };
29
- findReleatedTests: {
30
- boolean: boolean;
31
- alias: string;
32
- default: boolean;
33
- };
34
- silent: {
35
- boolean: boolean;
36
- alias: string;
37
- default: boolean;
38
- };
39
- }>>;
40
- };
41
- export {};
1
+ export namespace vitestCmd {
2
+ function handler(argv: any): Promise<0 | -1>;
3
+ const command: string;
4
+ const describe: string;
5
+ namespace builder {
6
+ namespace fix {
7
+ const alias: string;
8
+ const type: string;
9
+ }
10
+ namespace watch {
11
+ const alias_1: string;
12
+ export { alias_1 as alias };
13
+ const type_1: string;
14
+ export { type_1 as type };
15
+ }
16
+ namespace passWithNoTests {
17
+ const alias_2: string;
18
+ export { alias_2 as alias };
19
+ const type_2: string;
20
+ export { type_2 as type };
21
+ }
22
+ namespace related {
23
+ const alias_3: string;
24
+ export { alias_3 as alias };
25
+ const type_3: string;
26
+ export { type_3 as type };
27
+ }
28
+ namespace silent {
29
+ const alias_4: string;
30
+ export { alias_4 as alias };
31
+ const type_4: string;
32
+ export { type_4 as type };
33
+ }
34
+ }
35
+ }
@@ -6,4 +6,5 @@ import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
6
  import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  import { jestConfig } from "./testing/jest.config.cjs";
8
8
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
- export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
9
+ import { loadRoutes } from "./server/app-routes.cjs";
10
+ export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig, loadRoutes };
@@ -1,11 +1,11 @@
1
- export { babelConfig } from './babel.config.cjs';
2
- export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
3
- export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
4
- export { stylelintConfig } from './lint-config/stylelint.config.cjs';
5
- export { prettierConfig } from './lint-config/prettier.config.cjs';
6
- export { commitlintConfig } from './lint-config/commitlint.config.cjs';
7
- export { jestConfig } from './testing/jest.config.cjs';
8
- export { vitestConfig } from './testing/vitest.config.js';
9
- export { jestNodeConfig } from './testing/jest.node.config.cjs';
10
- export { lintStagedConfig } from './lint-config/lint-staged.config.js';
11
- export { loadRoutes } from './server/appRoutes.js';
1
+ export { babelConfig } from "./babel.config.cjs";
2
+ export { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
3
+ export { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
4
+ export { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
+ export { prettierConfig } from "./lint-config/prettier.config.cjs";
6
+ export { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
+ export { jestConfig } from "./testing/jest.config.cjs";
8
+ export { vitestConfig } from "./testing/vitest.config.js";
9
+ export { jestNodeConfig } from "./testing/jest.node.config.cjs";
10
+ export { lintStagedConfig } from "./lint-config/lint-staged.config.js";
11
+ export { loadRoutes } from "./server/app-routes.cjs";
@@ -1 +1 @@
1
- export declare const deleteMergedTags: () => void;
1
+ export function deleteMergedTags(): void;
@@ -1 +1 @@
1
- export declare const setRegistryVersion: () => Promise<void>;
1
+ export function setRegistryVersion(): Promise<void>;
@@ -1 +1 @@
1
- export declare const setWorkspaceVersion: () => Promise<void>;
1
+ export function setWorkspaceVersion(): Promise<void>;
@@ -0,0 +1 @@
1
+ export function loadRoutes(app: any): void;
@@ -1,13 +1,10 @@
1
1
  /// <reference types="node" />
2
- import fs from 'node:fs';
3
- import { Application, Response } from 'express';
4
- type CSPConfig = {
5
- buildPath: string;
6
- page?: string;
7
- nonceRegex?: RegExp;
8
- res: Response<unknown, Record<string, unknown>>;
9
- fileSystem?: typeof fs;
10
- };
11
- export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void;
12
- export declare const csp: (app: Application) => void;
13
- export {};
2
+ export function sendFileWithCSPNonce({ buildPath, page, nonceRegex, res, fileSystem, }: {
3
+ buildPath: any;
4
+ page?: string | undefined;
5
+ nonceRegex?: RegExp | undefined;
6
+ res: any;
7
+ fileSystem?: typeof fs | undefined;
8
+ }): void;
9
+ export function csp(app: any): void;
10
+ import fs from "node:fs";
@@ -1,7 +1,4 @@
1
- /**
2
- * Logger middleware, you can customize it to make messages more personal
3
- */
4
- export declare const logger: {
5
- error: (err: Error) => void;
6
- appStarted: (port: string, host: string, tunnelStarted?: string) => void;
7
- };
1
+ export namespace logger {
2
+ function error(err: any): void;
3
+ function appStarted(port: any, host: any, tunnelStarted: any): void;
4
+ }
@@ -1,6 +1,2 @@
1
- import express, { Application, Express } from 'express';
2
- export declare const setupDefaultMiddlewares: (app: Application) => void;
3
- export declare const setupAdditionalMiddlewars: (app: Express, options?: {
4
- buildPath?: string;
5
- basePath?: string;
6
- }) => express.Express;
1
+ export function setupDefaultMiddlewares(app: any): void;
2
+ export function setupAdditionalMiddlewars(app: any, options?: {}): any;
@@ -1,3 +1,3 @@
1
- export declare const getCWD: () => string;
2
- export declare const port: number;
3
- export declare const host: string;
1
+ export function getCWD(): string;
2
+ export const port: number;
3
+ export const host: any;
@@ -5,16 +5,16 @@ export namespace jestConfig {
5
5
  const coverageReporters: string[];
6
6
  const moduleDirectories: string[];
7
7
  const moduleNameMapper: {
8
- '.*\\webpack-hmr(.[t|j]s)?$': string;
9
- '.*\\.(css|scss)$': string;
10
- '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
11
- '.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
12
- '.*\\.html(?:\\?[a-zA-Z]+)?$': string;
13
- '@elliemae/pui-user-monitoring': string;
14
- '@elliemae/pui-app-loader': string;
15
- '@elliemae/pui-diagnostics': string;
16
- 'react-spring/web': string;
17
- 'react-spring/renderprops': string;
8
+ '.*\\webpack-hmr(.[t|j]s)?$': any;
9
+ '.*\\.(css|scss)$': any;
10
+ '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': any;
11
+ '.*\\.svg(?:\\?[a-zA-Z]+)?$': any;
12
+ '.*\\.html(?:\\?[a-zA-Z]+)?$': any;
13
+ '@elliemae/pui-user-monitoring': any;
14
+ '@elliemae/pui-app-loader': any;
15
+ '@elliemae/pui-diagnostics': any;
16
+ 'react-spring/web': any;
17
+ 'react-spring/renderprops': any;
18
18
  };
19
19
  const moduleFileExtensions: string[];
20
20
  const setupFilesAfterEnv: string[];
@@ -9,16 +9,16 @@ export const jestNodeConfig: {
9
9
  coverageReporters: string[];
10
10
  moduleDirectories: string[];
11
11
  moduleNameMapper: {
12
- '.*\\webpack-hmr(.[t|j]s)?$': string;
13
- '.*\\.(css|scss)$': string;
14
- '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
15
- '.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
16
- '.*\\.html(?:\\?[a-zA-Z]+)?$': string;
17
- '@elliemae/pui-user-monitoring': string;
18
- '@elliemae/pui-app-loader': string;
19
- '@elliemae/pui-diagnostics': string;
20
- 'react-spring/web': string;
21
- 'react-spring/renderprops': string;
12
+ '.*\\webpack-hmr(.[t|j]s)?$': any;
13
+ '.*\\.(css|scss)$': any;
14
+ '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': any;
15
+ '.*\\.svg(?:\\?[a-zA-Z]+)?$': any;
16
+ '.*\\.html(?:\\?[a-zA-Z]+)?$': any;
17
+ '@elliemae/pui-user-monitoring': any;
18
+ '@elliemae/pui-app-loader': any;
19
+ '@elliemae/pui-diagnostics': any;
20
+ 'react-spring/web': any;
21
+ 'react-spring/renderprops': any;
22
22
  };
23
23
  moduleFileExtensions: string[];
24
24
  testRegex: string;
@@ -1,16 +1,13 @@
1
1
  /// <reference types="node" />
2
- import CompressionPlugin from 'compression-webpack-plugin';
3
- import { ObjectPattern } from 'copy-webpack-plugin';
4
- import zlib from 'zlib';
5
- export declare const LATEST_VERSION = "latest";
6
- export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
7
- export declare const getLibraryName: () => string;
8
- export declare const getLibraryVariableName: () => string;
9
- export declare const mapToFolder: (dependencies: string[], folder: string) => {};
10
- export declare const getAlias: () => {};
11
- export declare const modulesToTranspile: string[];
12
- export declare const getAppVersion: () => string;
13
- export declare const getPaths: (latestVersion?: boolean) => {
2
+ export const LATEST_VERSION: "latest";
3
+ export function excludeNodeModulesExcept(modules: any): (modulePath: any) => boolean;
4
+ export function getLibraryName(): string;
5
+ export function getLibraryVariableName(): string;
6
+ export function mapToFolder(dependencies: any, folder: any): any;
7
+ export function getAlias(): any;
8
+ export const modulesToTranspile: string[];
9
+ export function getAppVersion(): string;
10
+ export function getPaths(latestVersion?: boolean): {
14
11
  appVersion: string;
15
12
  buildPath: string;
16
13
  basePath: string;
@@ -21,10 +18,12 @@ export declare const getPaths: (latestVersion?: boolean) => {
21
18
  globalScriptPath: string;
22
19
  encwLoaderScriptPath: string;
23
20
  };
24
- export declare const isAppLoaderEnabled: () => boolean;
25
- export declare const getMediaPath: () => string;
26
- export declare const isGoogleTagManagerEnabled: () => boolean;
27
- export declare const getCompressionPlugins: (isLibrary?: boolean) => CompressionPlugin<zlib.ZlibOptions>[];
28
- export declare const filterByFilePresence: (patterns: ObjectPattern[]) => ObjectPattern[];
29
- export declare const resolveExtensions: string[];
30
- export declare const mainFields: string[];
21
+ export function isAppLoaderEnabled(): boolean;
22
+ export function getMediaPath(): string;
23
+ export function isGoogleTagManagerEnabled(): boolean;
24
+ export function getCompressionPlugins(isLibrary?: boolean): CompressionPlugin<zlib.ZlibOptions>[];
25
+ export function filterByFilePresence(patterns: any): any;
26
+ export const resolveExtensions: string[];
27
+ export const mainFields: string[];
28
+ import zlib from "zlib";
29
+ import CompressionPlugin from "compression-webpack-plugin";
@@ -1,3 +1,106 @@
1
- import { Configuration } from 'webpack';
2
- import 'webpack-dev-server';
3
- export declare const baseConfig: (options: Configuration) => Configuration;
1
+ export function baseConfig(options: any): {
2
+ mode: any;
3
+ entry: any;
4
+ output: any;
5
+ optimization: any;
6
+ module: {
7
+ rules: ({
8
+ test: RegExp;
9
+ exclude: (modulePath: any) => boolean;
10
+ resolve: {
11
+ fullySpecified: boolean;
12
+ };
13
+ use: {
14
+ loader: string;
15
+ options: {
16
+ loader: string;
17
+ target: string[];
18
+ };
19
+ };
20
+ type?: undefined;
21
+ issuer?: undefined;
22
+ resourceQuery?: undefined;
23
+ generator?: undefined;
24
+ } | {
25
+ test: RegExp;
26
+ exclude: (modulePath: any) => boolean;
27
+ use: ({
28
+ loader: string;
29
+ } | {
30
+ loader: string;
31
+ options: {
32
+ importLoaders: number;
33
+ sourceMap: boolean;
34
+ postcssOptions?: undefined;
35
+ };
36
+ } | {
37
+ loader: string;
38
+ options: {
39
+ postcssOptions: {
40
+ plugins: (import(".pnpm/postcss@8.4.21/node_modules/postcss").Plugin | import(".pnpm/postcss@8.4.21/node_modules/postcss").Processor)[];
41
+ };
42
+ sourceMap: boolean;
43
+ importLoaders?: undefined;
44
+ };
45
+ })[];
46
+ resolve?: undefined;
47
+ type?: undefined;
48
+ issuer?: undefined;
49
+ resourceQuery?: undefined;
50
+ generator?: undefined;
51
+ } | {
52
+ test: RegExp;
53
+ type: string;
54
+ exclude: (modulePath: any) => boolean;
55
+ resolve?: undefined;
56
+ use?: undefined;
57
+ issuer?: undefined;
58
+ resourceQuery?: undefined;
59
+ generator?: undefined;
60
+ } | {
61
+ test: RegExp;
62
+ issuer: RegExp;
63
+ resourceQuery: RegExp;
64
+ exclude: (modulePath: any) => boolean;
65
+ use: string[];
66
+ resolve?: undefined;
67
+ type?: undefined;
68
+ generator?: undefined;
69
+ } | {
70
+ test: RegExp;
71
+ resourceQuery: RegExp;
72
+ type: string;
73
+ generator: {
74
+ filename: string;
75
+ };
76
+ exclude: (modulePath: any) => boolean;
77
+ resolve?: undefined;
78
+ use?: undefined;
79
+ issuer?: undefined;
80
+ } | {
81
+ resourceQuery: RegExp;
82
+ type: string;
83
+ exclude: (modulePath: any) => boolean;
84
+ test?: undefined;
85
+ resolve?: undefined;
86
+ use?: undefined;
87
+ issuer?: undefined;
88
+ generator?: undefined;
89
+ })[];
90
+ };
91
+ plugins: any[];
92
+ resolve: {
93
+ modules: string[];
94
+ extensions: string[];
95
+ mainFields: string[];
96
+ alias: any;
97
+ };
98
+ externals: {
99
+ '@elliemae/pui-user-monitoring': string;
100
+ '@elliemae/pui-app-loader': string;
101
+ '@elliemae/pui-diagnostics': string;
102
+ };
103
+ devtool: any;
104
+ performance: any;
105
+ devServer: any;
106
+ };
@@ -1,3 +1,2 @@
1
- import webpack from 'webpack';
2
- declare const config: webpack.Configuration;
3
1
  export default config;
2
+ declare const config: any;