@elliemae/pui-cli 7.27.0-beta.1 → 7.27.0-beta.2

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 (102) hide show
  1. package/dist/cjs/cli.js +14 -12
  2. package/dist/cjs/commands/build.js +9 -8
  3. package/dist/cjs/commands/codemod.js +7 -9
  4. package/dist/cjs/commands/gendoc.js +2 -2
  5. package/dist/cjs/commands/lint.js +21 -23
  6. package/dist/cjs/commands/pack.js +25 -20
  7. package/dist/cjs/commands/start.js +11 -10
  8. package/dist/cjs/commands/storybook.js +19 -18
  9. package/dist/cjs/commands/test.js +37 -31
  10. package/dist/cjs/commands/tscheck.js +9 -8
  11. package/dist/cjs/commands/utils.js +12 -7
  12. package/dist/cjs/commands/version.js +21 -19
  13. package/dist/cjs/commands/vitest.js +32 -28
  14. package/dist/cjs/index.cjs +0 -2
  15. package/dist/cjs/index.js +2 -2
  16. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  17. package/dist/cjs/monorepo/set-registry-version.js +2 -2
  18. package/dist/cjs/monorepo/set-workspace-version.js +2 -2
  19. package/dist/cjs/monorepo/utils.js +54 -0
  20. package/dist/cjs/server/appRoutes.js +74 -0
  21. package/dist/cjs/server/csp.js +3 -4
  22. package/dist/cjs/server/index.js +13 -11
  23. package/dist/cjs/server/middlewares.js +7 -4
  24. package/dist/cjs/server/utils.js +1 -1
  25. package/dist/cjs/utils.js +50 -0
  26. package/dist/cjs/webpack/helpers.js +3 -3
  27. package/dist/cjs/webpack/webpack.base.babel.js +3 -10
  28. package/dist/cjs/webpack/webpack.dev.babel.js +11 -8
  29. package/dist/cjs/webpack/webpack.lib.base.babel.js +4 -5
  30. package/dist/cjs/webpack/webpack.lib.dev.babel.js +1 -0
  31. package/dist/cjs/webpack/webpack.prod.babel.js +7 -15
  32. package/dist/cjs/webpack/webpack.storybook.js +27 -20
  33. package/dist/esm/cli.js +14 -12
  34. package/dist/esm/commands/build.js +9 -8
  35. package/dist/esm/commands/codemod.js +7 -9
  36. package/dist/esm/commands/gendoc.js +2 -2
  37. package/dist/esm/commands/lint.js +27 -23
  38. package/dist/esm/commands/pack.js +32 -20
  39. package/dist/esm/commands/start.js +11 -10
  40. package/dist/esm/commands/storybook.js +19 -18
  41. package/dist/esm/commands/test.js +37 -31
  42. package/dist/esm/commands/tscheck.js +9 -8
  43. package/dist/esm/commands/utils.js +11 -6
  44. package/dist/esm/commands/version.js +21 -19
  45. package/dist/esm/commands/vitest.js +32 -28
  46. package/dist/esm/index.cjs +0 -2
  47. package/dist/esm/index.js +1 -1
  48. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  49. package/dist/esm/monorepo/set-registry-version.js +2 -2
  50. package/dist/esm/monorepo/set-workspace-version.js +2 -2
  51. package/dist/esm/monorepo/utils.js +24 -0
  52. package/dist/esm/server/appRoutes.js +44 -0
  53. package/dist/esm/server/csp.js +3 -4
  54. package/dist/esm/server/index.js +13 -11
  55. package/dist/esm/server/middlewares.js +7 -4
  56. package/dist/esm/server/utils.js +1 -1
  57. package/dist/esm/utils.js +20 -0
  58. package/dist/esm/webpack/helpers.js +3 -3
  59. package/dist/esm/webpack/webpack.base.babel.js +3 -10
  60. package/dist/esm/webpack/webpack.dev.babel.js +11 -8
  61. package/dist/esm/webpack/webpack.lib.base.babel.js +4 -5
  62. package/dist/esm/webpack/webpack.lib.dev.babel.js +1 -0
  63. package/dist/esm/webpack/webpack.prod.babel.js +7 -15
  64. package/dist/esm/webpack/webpack.storybook.js +27 -20
  65. package/dist/types/commands/build.d.ts +13 -13
  66. package/dist/types/commands/codemod.d.ts +13 -6
  67. package/dist/types/commands/gendoc.d.ts +7 -6
  68. package/dist/types/commands/lint.d.ts +29 -29
  69. package/dist/types/commands/pack.d.ts +29 -26
  70. package/dist/types/commands/start.d.ts +17 -13
  71. package/dist/types/commands/storybook.d.ts +28 -27
  72. package/dist/types/commands/test.d.ts +47 -39
  73. package/dist/types/commands/tscheck.d.ts +16 -14
  74. package/dist/types/commands/utils.d.ts +11 -11
  75. package/dist/types/commands/version.d.ts +31 -28
  76. package/dist/types/commands/vitest.d.ts +41 -35
  77. package/dist/types/index.d.cts +1 -2
  78. package/dist/types/index.d.ts +11 -11
  79. package/dist/types/monorepo/delete-merged-tags.d.ts +1 -1
  80. package/dist/types/monorepo/set-registry-version.d.ts +1 -1
  81. package/dist/types/monorepo/set-workspace-version.d.ts +1 -1
  82. package/dist/types/monorepo/utils.d.ts +1 -0
  83. package/dist/types/server/appRoutes.d.ts +2 -0
  84. package/dist/types/server/csp.d.ts +12 -9
  85. package/dist/types/server/logger.d.ts +7 -4
  86. package/dist/types/server/middlewares.d.ts +6 -2
  87. package/dist/types/server/utils.d.ts +3 -3
  88. package/dist/types/testing/jest.config.d.cts +10 -10
  89. package/dist/types/testing/jest.node.config.d.cts +10 -10
  90. package/dist/types/utils.d.ts +4 -0
  91. package/dist/types/webpack/helpers.d.ts +19 -18
  92. package/dist/types/webpack/webpack.base.babel.d.ts +3 -106
  93. package/dist/types/webpack/webpack.dev.babel.d.ts +2 -1
  94. package/dist/types/webpack/webpack.lib.base.babel.d.ts +3 -102
  95. package/dist/types/webpack/webpack.lib.dev.babel.d.ts +3 -101
  96. package/dist/types/webpack/webpack.lib.prod.babel.d.ts +2 -101
  97. package/dist/types/webpack/webpack.prod.babel.d.ts +3 -2
  98. package/dist/types/webpack/webpack.storybook.d.ts +5 -4
  99. package/package.json +38 -24
  100. package/dist/cjs/server/app-routes.cjs +0 -42
  101. package/dist/esm/server/app-routes.cjs +0 -42
  102. package/dist/types/server/app-routes.d.cts +0 -1
@@ -1,26 +1,29 @@
1
- export namespace packCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace production {
7
- export const alias: string;
8
- export const type: string;
9
- const _default: boolean;
10
- export { _default as default };
11
- }
12
- namespace target {
13
- const alias_1: string;
14
- export { alias_1 as alias };
15
- const type_1: string;
16
- export { type_1 as type };
17
- export const description: string;
18
- }
19
- namespace srcPath {
20
- const type_2: string;
21
- export { type_2 as type };
22
- const _default_1: string;
23
- export { _default_1 as default };
24
- }
25
- }
26
- }
1
+ import yargs, { Argv } from 'yargs';
2
+ type Arguments = {
3
+ production: boolean;
4
+ target: string;
5
+ srcPath: string;
6
+ };
7
+ export declare const packCmd: {
8
+ handler: (argv: Arguments) => Promise<void>;
9
+ command: string;
10
+ desc: string;
11
+ builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "target" | "production" | "srcPath"> & yargs.InferredOptionTypes<{
12
+ production: {
13
+ boolean: boolean;
14
+ alias: string;
15
+ default: boolean;
16
+ };
17
+ target: {
18
+ string: boolean;
19
+ alias: string;
20
+ default: string;
21
+ description: string;
22
+ };
23
+ srcPath: {
24
+ string: boolean;
25
+ default: string;
26
+ };
27
+ }>>;
28
+ };
29
+ export {};
@@ -1,13 +1,17 @@
1
- export namespace startCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace prod {
7
- export const alias: string;
8
- const _default: boolean;
9
- export { _default as default };
10
- export const type: string;
11
- }
12
- }
13
- }
1
+ import yargs, { Argv } from 'yargs';
2
+ type Arguments = {
3
+ prod: boolean;
4
+ };
5
+ export declare const startCmd: {
6
+ handler: (argv: Arguments) => Promise<void>;
7
+ command: string;
8
+ desc: string;
9
+ builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "prod"> & yargs.InferredOptionTypes<{
10
+ prod: {
11
+ boolean: boolean;
12
+ alias: string;
13
+ default: boolean;
14
+ };
15
+ }>>;
16
+ };
17
+ export {};
@@ -1,27 +1,28 @@
1
- export namespace storybookCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace build {
7
- export const alias: string;
8
- export const type: string;
9
- const _default: boolean;
10
- export { _default as default };
11
- }
12
- namespace docs {
13
- const type_1: string;
14
- export { type_1 as type };
15
- const _default_1: boolean;
16
- export { _default_1 as default };
17
- }
18
- namespace output {
19
- const alias_1: string;
20
- export { alias_1 as alias };
21
- const type_2: string;
22
- export { type_2 as type };
23
- const _default_2: string;
24
- export { _default_2 as default };
25
- }
26
- }
27
- }
1
+ import yargs, { Argv } from 'yargs';
2
+ type Arguments = {
3
+ build: boolean;
4
+ docs: boolean;
5
+ output: string;
6
+ };
7
+ export declare const storybookCmd: {
8
+ handler: (argv: Arguments) => Promise<void>;
9
+ command: string;
10
+ desc: string;
11
+ builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "build" | "docs" | "output"> & yargs.InferredOptionTypes<{
12
+ build: {
13
+ boolean: boolean;
14
+ alias: string;
15
+ default: boolean;
16
+ };
17
+ docs: {
18
+ boolean: boolean;
19
+ default: boolean;
20
+ };
21
+ output: {
22
+ string: boolean;
23
+ alias: string;
24
+ default: string;
25
+ };
26
+ }>>;
27
+ };
28
+ export {};
@@ -1,39 +1,47 @@
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
+ 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,14 +1,16 @@
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
+ 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,17 +1,17 @@
1
- export function exec(command: any, options?: {
2
- stdio: string;
3
- }): Promise<import("execa").ExecaReturnValue<string> & import("execa").ExecaReturnValue<Buffer>>;
4
- export const logInfo: {
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: {
5
4
  (...data: any[]): void;
6
5
  (message?: any, ...optionalParams: any[]): void;
7
6
  };
8
- export function logSuccess(...args: any[]): void;
9
- export const logError: {
7
+ export declare const logSuccess: (...args: string[]) => void;
8
+ export declare const logError: {
10
9
  (...data: any[]): void;
11
10
  (message?: any, ...optionalParams: any[]): void;
12
11
  };
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;
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;
@@ -1,28 +1,31 @@
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
+ 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,35 +1,41 @@
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
- }
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 {};
@@ -6,5 +6,4 @@ 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
- import { loadRoutes } from "./server/app-routes.cjs";
10
- export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig, loadRoutes };
9
+ export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
@@ -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/app-routes.cjs";
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 +1 @@
1
- export function deleteMergedTags(): void;
1
+ export declare const deleteMergedTags: () => void;
@@ -1 +1 @@
1
- export function setRegistryVersion(): Promise<void>;
1
+ export declare const setRegistryVersion: () => Promise<void>;
@@ -1 +1 @@
1
- export function setWorkspaceVersion(): Promise<void>;
1
+ export declare const setWorkspaceVersion: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const findMonoRepoRoot: (cwd?: string) => string | null;
@@ -0,0 +1,2 @@
1
+ import { Application } from 'express';
2
+ export declare const loadRoutes: (app: Application) => Promise<void>;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="node" />
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";
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 {};
@@ -1,4 +1,7 @@
1
- export namespace logger {
2
- function error(err: any): void;
3
- function appStarted(port: any, host: any, tunnelStarted: any): void;
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,2 +1,6 @@
1
- export function setupDefaultMiddlewares(app: any): void;
2
- export function setupAdditionalMiddlewars(app: any, options?: {}): any;
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,3 +1,3 @@
1
- export function getCWD(): string;
2
- export const port: number;
3
- export const host: any;
1
+ export declare const getCWD: () => string;
2
+ export declare const port: number;
3
+ export declare const host: string;
@@ -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)?$': 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;
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;
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)?$': 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;
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;
22
22
  };
23
23
  moduleFileExtensions: string[];
24
24
  testRegex: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="node" />
2
+ export declare const basePath: string;
3
+ export declare const isApp: () => boolean;
4
+ export declare const getAppConfig: () => Buffer | "{}";