@elliemae/pui-cli 9.0.0-next.4 → 9.0.0-next.41
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.
- package/app.tsconfig.json +1 -1
- package/dist/cjs/commands/lint.js +27 -8
- package/dist/cjs/commands/start.js +1 -1
- package/dist/cjs/commands/storybook.js +2 -2
- package/dist/cjs/commands/test.js +51 -22
- package/dist/cjs/commands/utils.js +33 -2
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/lint-config/eslint/common.cjs +3 -2
- package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
- package/dist/cjs/lint-config/stylelint.config.js +45 -0
- package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
- package/dist/cjs/monorepo/set-registry-version.js +1 -1
- package/dist/cjs/monorepo/set-workspace-version.js +1 -1
- package/dist/cjs/pui-config.js +1 -1
- package/dist/cjs/release.config.js +46 -0
- package/dist/cjs/server/csp.js +2 -1
- package/dist/cjs/server/index.js +5 -0
- package/dist/cjs/server/utils.js +11 -4
- package/dist/cjs/server/wsServer.js +129 -0
- package/dist/cjs/testing/ExtendedJSDomEnv.cjs +27 -0
- package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +37 -0
- package/dist/cjs/testing/extended/axe-core/index.js +24 -0
- package/dist/cjs/testing/extended/axe-core/reporter.js +51 -0
- package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +31 -0
- package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +43 -0
- package/dist/cjs/testing/jest.config.cjs +5 -2
- package/dist/cjs/testing/jest.polyfills.cjs +30 -0
- package/dist/cjs/testing/setup-test-env.js +0 -2
- package/dist/cjs/testing/setup-tests.js +26 -4
- package/dist/cjs/testing/vitest.config.js +8 -8
- package/dist/cjs/transpile/.swcrc +1 -1
- package/dist/cjs/transpile/esbuild.js +4 -4
- package/dist/cjs/update-notifier.js +1 -1
- package/dist/cjs/utils.js +1 -1
- package/dist/cjs/webpack/helpers.js +20 -8
- package/dist/cjs/webpack/webpack.base.babel.js +13 -27
- package/dist/cjs/webpack/webpack.dev.babel.js +14 -3
- package/dist/cjs/webpack/webpack.lib.base.babel.js +13 -5
- package/dist/cjs/webpack/webpack.lib.dev.babel.js +8 -12
- package/dist/cjs/webpack/webpack.lib.prod.babel.js +7 -6
- package/dist/cjs/webpack/webpack.prod.babel.js +3 -2
- package/dist/cjs/webpack/webpack.storybook.js +10 -11
- package/dist/esm/commands/lint.js +28 -8
- package/dist/esm/commands/start.js +1 -1
- package/dist/esm/commands/storybook.js +2 -2
- package/dist/esm/commands/test.js +51 -22
- package/dist/esm/commands/utils.js +33 -2
- package/dist/esm/index.cjs +0 -2
- package/dist/esm/index.js +4 -2
- package/dist/esm/lint-config/eslint/common.cjs +3 -2
- package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
- package/dist/esm/lint-config/stylelint.config.js +25 -0
- package/dist/esm/monorepo/delete-merged-tags.js +1 -1
- package/dist/esm/monorepo/set-registry-version.js +1 -1
- package/dist/esm/monorepo/set-workspace-version.js +1 -1
- package/dist/esm/pui-config.js +1 -1
- package/dist/esm/release.config.js +26 -0
- package/dist/esm/server/csp.js +2 -1
- package/dist/esm/server/index.js +6 -1
- package/dist/esm/server/utils.js +11 -4
- package/dist/esm/server/wsServer.js +99 -0
- package/dist/esm/testing/ExtendedJSDomEnv.cjs +27 -0
- package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +17 -0
- package/dist/esm/testing/extended/axe-core/index.js +4 -0
- package/dist/esm/testing/extended/axe-core/reporter.js +31 -0
- package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +11 -0
- package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +23 -0
- package/dist/esm/testing/jest.config.cjs +5 -2
- package/dist/esm/testing/jest.polyfills.cjs +30 -0
- package/dist/esm/testing/setup-test-env.js +0 -2
- package/dist/esm/testing/setup-tests.js +26 -4
- package/dist/esm/testing/vitest.config.js +8 -8
- package/dist/esm/transpile/.swcrc +1 -1
- package/dist/esm/transpile/esbuild.js +4 -4
- package/dist/esm/update-notifier.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/dist/esm/webpack/helpers.js +20 -8
- package/dist/esm/webpack/webpack.base.babel.js +13 -27
- package/dist/esm/webpack/webpack.dev.babel.js +14 -3
- package/dist/esm/webpack/webpack.lib.base.babel.js +13 -5
- package/dist/esm/webpack/webpack.lib.dev.babel.js +9 -13
- package/dist/esm/webpack/webpack.lib.prod.babel.js +12 -7
- package/dist/esm/webpack/webpack.prod.babel.js +3 -2
- package/dist/esm/webpack/webpack.storybook.js +11 -12
- package/dist/types/docusaurus.config.d.ts +2 -0
- package/dist/types/{babel.config.d.cts → lib/babel.config.d.cts} +7 -7
- package/dist/types/{commands → lib/commands}/build.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/codemod.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/lint.d.ts +3 -2
- package/dist/types/{commands → lib/commands}/pack.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/start.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/storybook.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/test.d.ts +4 -2
- package/dist/types/{commands → lib/commands}/tscheck.d.ts +2 -2
- package/dist/types/lib/commands/utils.d.ts +39 -0
- package/dist/types/{commands → lib/commands}/version.d.ts +2 -2
- package/dist/types/{commands → lib/commands}/vitest.d.ts +2 -2
- package/dist/types/{index.d.cts → lib/index.d.cts} +1 -2
- package/dist/types/{index.d.ts → lib/index.d.ts} +3 -1
- package/dist/types/{lint-config → lib/lint-config}/commitlint.config.d.cts +1 -1
- package/dist/types/{lint-config → lib/lint-config}/eslint/common.d.cts +18 -12
- package/dist/types/{lint-config → lib/lint-config}/eslint/non-react.d.cts +8 -1
- package/dist/types/{lint-config → lib/lint-config}/eslint/react.d.cts +8 -1
- package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/common.d.cts +6 -6
- package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/non-react.d.cts +9 -2
- package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/react.d.cts +9 -2
- package/dist/types/lib/lint-config/lint-staged.config.d.ts +5 -0
- package/dist/types/lib/lint-config/prettier.config.d.cts +8 -0
- package/dist/types/lib/lint-config/stylelint.config.d.ts +13 -0
- package/dist/types/lib/release.config.d.ts +10 -0
- package/dist/types/{server → lib/server}/csp.d.ts +2 -2
- package/dist/types/{server → lib/server}/utils.d.ts +1 -0
- package/dist/types/lib/server/wsServer.d.ts +13 -0
- package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts +5 -0
- package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts +8 -0
- package/dist/types/lib/testing/extended/axe-core/index.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/reporter.d.ts +2 -0
- package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +2 -0
- package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts +12 -0
- package/dist/types/lib/testing/jest.config.d.cts +44 -0
- package/dist/types/{testing → lib/testing}/jest.node.config.d.cts +3 -0
- package/dist/types/lib/testing/mocks/axios.d.ts +17 -0
- package/dist/types/{testing → lib/testing}/mocks/pui-diagnostics.d.ts +13 -13
- package/dist/types/lib/testing/setup-tests.d.ts +1 -0
- package/dist/types/lib/testing/vitest.config.d.ts +1 -0
- package/dist/types/lib/tests/basic.test.d.ts +0 -0
- package/dist/types/{transpile → lib/transpile}/esbuild.d.ts +3 -3
- package/dist/types/lib/typedoc.d.cts +3 -0
- package/dist/types/{webpack → lib/webpack}/helpers.d.ts +4 -1
- package/dist/types/{webpack → lib/webpack}/webpack.storybook.d.ts +0 -1
- package/nx.json +97 -0
- package/package.json +189 -178
- package/dist/cjs/lint-config/stylelint.config.cjs +0 -19
- package/dist/cjs/release.config.cjs +0 -24
- package/dist/esm/lint-config/stylelint.config.cjs +0 -19
- package/dist/esm/release.config.cjs +0 -24
- package/dist/types/commands/utils.d.ts +0 -17
- package/dist/types/lint-config/lint-staged.config.d.ts +0 -5
- package/dist/types/lint-config/prettier.config.d.cts +0 -8
- package/dist/types/lint-config/stylelint.config.d.cts +0 -10
- package/dist/types/release.config.d.cts +0 -7
- package/dist/types/testing/jest.config.d.cts +0 -41
- package/dist/types/testing/mocks/axios.d.ts +0 -17
- package/dist/types/testing/vitest.config.d.ts +0 -1
- package/dist/types/typedoc.d.cts +0 -3
- /package/dist/types/{cli.d.ts → lib/cli.d.ts} +0 -0
- /package/dist/types/{commands → lib/commands}/gendoc.d.ts +0 -0
- /package/dist/types/{dummy.d.ts → lib/dummy.d.ts} +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/delete-merged-tags.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/set-registry-version.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/set-workspace-version.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/utils.d.cts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/utils.d.ts +0 -0
- /package/dist/types/{pui-config.d.ts → lib/pui-config.d.ts} +0 -0
- /package/dist/types/{server → lib/server}/appRoutes.d.ts +0 -0
- /package/dist/types/{server → lib/server}/index.d.ts +0 -0
- /package/dist/types/{server → lib/server}/logger.d.ts +0 -0
- /package/dist/types/{server → lib/server}/middlewares.d.ts +0 -0
- /package/dist/types/{testing/setup-react-env.d.ts → lib/testing/jest.polyfills.d.cts} +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/cssModule.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/html.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/image.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/matchMedia.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/pui-app-loader.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/pui-user-monitoring.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/retry-axios.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/svg.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/webpack-hmr.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/resolver.d.cts +0 -0
- /package/dist/types/{testing/setup-test-env.d.ts → lib/testing/setup-react-env.d.ts} +0 -0
- /package/dist/types/{testing/setup-tests.d.ts → lib/testing/setup-test-env.d.ts} +0 -0
- /package/dist/types/{transpile → lib/transpile}/react-shim.d.ts +0 -0
- /package/dist/types/{transpile → lib/transpile}/swcrc.config.d.cts +0 -0
- /package/dist/types/{update-notifier.d.ts → lib/update-notifier.d.ts} +0 -0
- /package/dist/types/{utils.d.cts → lib/utils.d.cts} +0 -0
- /package/dist/types/{utils.d.ts → lib/utils.d.ts} +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.base.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.dev.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.base.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.dev.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.prod.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.prod.babel.d.ts +0 -0
|
@@ -31,7 +31,14 @@ export const esReactConfig: {
|
|
|
31
31
|
})[];
|
|
32
32
|
"redux-saga/no-yield-in-race": number;
|
|
33
33
|
"redux-saga/yield-effects": number;
|
|
34
|
-
"prettier/prettier": (string |
|
|
34
|
+
"prettier/prettier": (string | {
|
|
35
|
+
printWidth: number;
|
|
36
|
+
tabWidth: number;
|
|
37
|
+
useTabs: boolean;
|
|
38
|
+
semi: boolean;
|
|
39
|
+
singleQuote: boolean;
|
|
40
|
+
trailingComma: string;
|
|
41
|
+
})[];
|
|
35
42
|
"arrow-body-style": (string | number)[];
|
|
36
43
|
"class-methods-use-this": number;
|
|
37
44
|
"import/imports-first": number;
|
|
@@ -20,14 +20,14 @@ export const tsBaseRules: {
|
|
|
20
20
|
})[];
|
|
21
21
|
};
|
|
22
22
|
export namespace tsBaseConfig {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let files: string[];
|
|
24
|
+
let parser: string;
|
|
25
|
+
let plugins: string[];
|
|
26
26
|
namespace parserOptions {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
let tsconfigRootDir: string;
|
|
28
|
+
let project: boolean;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
let settings: {
|
|
31
31
|
'import/resolver': {
|
|
32
32
|
typescript: {
|
|
33
33
|
alwaysTryTypes: boolean;
|
|
@@ -19,7 +19,14 @@ export const tsConfig: {
|
|
|
19
19
|
'@typescript-eslint/no-floating-promises': (string | {
|
|
20
20
|
ignoreIIFE: boolean;
|
|
21
21
|
})[];
|
|
22
|
-
"prettier/prettier": (string |
|
|
22
|
+
"prettier/prettier": (string | {
|
|
23
|
+
printWidth: number;
|
|
24
|
+
tabWidth: number;
|
|
25
|
+
useTabs: boolean;
|
|
26
|
+
semi: boolean;
|
|
27
|
+
singleQuote: boolean;
|
|
28
|
+
trailingComma: string;
|
|
29
|
+
})[];
|
|
23
30
|
"arrow-body-style": (string | number)[];
|
|
24
31
|
"class-methods-use-this": number;
|
|
25
32
|
"import/imports-first": number;
|
|
@@ -75,7 +82,7 @@ export const tsConfig: {
|
|
|
75
82
|
plugins: string[];
|
|
76
83
|
parserOptions: {
|
|
77
84
|
tsconfigRootDir: string;
|
|
78
|
-
project:
|
|
85
|
+
project: boolean;
|
|
79
86
|
};
|
|
80
87
|
settings: {
|
|
81
88
|
'import/resolver': {
|
|
@@ -50,7 +50,14 @@ export const tsReactConfig: {
|
|
|
50
50
|
'@typescript-eslint/no-floating-promises': (string | {
|
|
51
51
|
ignoreIIFE: boolean;
|
|
52
52
|
})[];
|
|
53
|
-
"prettier/prettier": (string |
|
|
53
|
+
"prettier/prettier": (string | {
|
|
54
|
+
printWidth: number;
|
|
55
|
+
tabWidth: number;
|
|
56
|
+
useTabs: boolean;
|
|
57
|
+
semi: boolean;
|
|
58
|
+
singleQuote: boolean;
|
|
59
|
+
trailingComma: string;
|
|
60
|
+
})[];
|
|
54
61
|
"arrow-body-style": (string | number)[];
|
|
55
62
|
"class-methods-use-this": number;
|
|
56
63
|
"import/imports-first": number;
|
|
@@ -106,7 +113,7 @@ export const tsReactConfig: {
|
|
|
106
113
|
plugins: string[];
|
|
107
114
|
parserOptions: {
|
|
108
115
|
tsconfigRootDir: string;
|
|
109
|
-
project:
|
|
116
|
+
project: boolean;
|
|
110
117
|
};
|
|
111
118
|
settings: {
|
|
112
119
|
'import/resolver': {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export namespace stylelintConfig {
|
|
2
|
+
export let ignoreFiles: string[];
|
|
3
|
+
let _extends: string[];
|
|
4
|
+
export { _extends as extends };
|
|
5
|
+
export let customSyntax: string;
|
|
6
|
+
export let rules: {
|
|
7
|
+
'selector-type-no-unknown': null;
|
|
8
|
+
'function-no-unknown': null;
|
|
9
|
+
'value-no-vendor-prefix': boolean;
|
|
10
|
+
'property-no-vendor-prefix': boolean;
|
|
11
|
+
'no-empty-source': null;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import { Application, Response } from 'express';
|
|
4
|
-
|
|
4
|
+
interface CSPConfig {
|
|
5
5
|
buildPath: string;
|
|
6
6
|
page?: string;
|
|
7
7
|
nonceRegex?: RegExp;
|
|
8
8
|
res: Response<unknown, Record<string, unknown>>;
|
|
9
9
|
fileSystem?: typeof fs;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void;
|
|
12
12
|
export declare const csp: (app: Application) => void;
|
|
13
13
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import http from 'node:http';
|
|
3
|
+
import * as wsLib from 'ws';
|
|
4
|
+
export interface Servers {
|
|
5
|
+
httpServer: http.Server;
|
|
6
|
+
wsServer: wsLib.WebSocketServer;
|
|
7
|
+
}
|
|
8
|
+
export interface WSServerOptions {
|
|
9
|
+
port?: number;
|
|
10
|
+
pingInterval?: number;
|
|
11
|
+
onOpen?: (webSocket: wsLib.WebSocket) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createWSServer: ({ port, pingInterval, onOpen, }: WSServerOptions) => Promise<Servers>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toHaveNoViolations } from './toHaveNoViolations.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxeResults, Result } from 'axe-core';
|
|
2
|
+
export declare const toHaveNoViolations: {
|
|
3
|
+
toHaveNoViolations(results: AxeResults): {
|
|
4
|
+
message: () => string;
|
|
5
|
+
pass: true;
|
|
6
|
+
actual: Result[];
|
|
7
|
+
} | {
|
|
8
|
+
message: () => string;
|
|
9
|
+
pass: false;
|
|
10
|
+
actual: Result[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export namespace jestConfig {
|
|
2
|
+
let collectCoverageFrom: string[];
|
|
3
|
+
let coverageThreshold: {};
|
|
4
|
+
let coverageDirectory: string;
|
|
5
|
+
let coverageReporters: string[];
|
|
6
|
+
let moduleDirectories: string[];
|
|
7
|
+
let moduleNameMapper: {
|
|
8
|
+
d3: string;
|
|
9
|
+
'^d3-(.*)$': string;
|
|
10
|
+
'.*\\webpack-hmr(.[t|j]s)?$': string;
|
|
11
|
+
'.*\\.(css|scss)$': string;
|
|
12
|
+
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
|
|
13
|
+
'.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
|
|
14
|
+
'.*\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
15
|
+
'@elliemae/pui-user-monitoring': string;
|
|
16
|
+
'@elliemae/pui-app-loader': string;
|
|
17
|
+
'@elliemae/pui-diagnostics': string;
|
|
18
|
+
'react-spring/web': string;
|
|
19
|
+
'react-spring/renderprops': string;
|
|
20
|
+
};
|
|
21
|
+
let moduleFileExtensions: string[];
|
|
22
|
+
let setupFilesAfterEnv: string[];
|
|
23
|
+
let setupFiles: string[];
|
|
24
|
+
let testRegex: string;
|
|
25
|
+
let snapshotSerializers: never[];
|
|
26
|
+
let testResultsProcessor: string;
|
|
27
|
+
let resolver: string;
|
|
28
|
+
let transform: {
|
|
29
|
+
'^.+\\.[jt]sx?$': any[];
|
|
30
|
+
};
|
|
31
|
+
let transformIgnorePatterns: string[];
|
|
32
|
+
namespace globals {
|
|
33
|
+
let APP_CONFIG: string | Buffer;
|
|
34
|
+
let __webpack_public_path__: string;
|
|
35
|
+
}
|
|
36
|
+
namespace testEnvironmentOptions {
|
|
37
|
+
let url: string;
|
|
38
|
+
let resources: string;
|
|
39
|
+
let customExportConditions: string[];
|
|
40
|
+
}
|
|
41
|
+
let testEnvironment: string;
|
|
42
|
+
let watchPlugins: string[];
|
|
43
|
+
let testTimeout: number;
|
|
44
|
+
}
|
|
@@ -9,6 +9,8 @@ export const jestNodeConfig: {
|
|
|
9
9
|
coverageReporters: string[];
|
|
10
10
|
moduleDirectories: string[];
|
|
11
11
|
moduleNameMapper: {
|
|
12
|
+
d3: string;
|
|
13
|
+
'^d3-(.*)$': string;
|
|
12
14
|
'.*\\webpack-hmr(.[t|j]s)?$': string;
|
|
13
15
|
'.*\\.(css|scss)$': string;
|
|
14
16
|
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
|
|
@@ -35,6 +37,7 @@ export const jestNodeConfig: {
|
|
|
35
37
|
testEnvironmentOptions: {
|
|
36
38
|
url: string;
|
|
37
39
|
resources: string;
|
|
40
|
+
customExportConditions: string[];
|
|
38
41
|
};
|
|
39
42
|
watchPlugins: string[];
|
|
40
43
|
testTimeout: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let defaults: {};
|
|
3
|
+
namespace interceptors {
|
|
4
|
+
namespace request {
|
|
5
|
+
let use: jest.Mock<any, any, any>;
|
|
6
|
+
}
|
|
7
|
+
namespace response {
|
|
8
|
+
let use_1: jest.Mock<any, any, any>;
|
|
9
|
+
export { use_1 as use };
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
let create: jest.Mock<any, any, any>;
|
|
13
|
+
let get: jest.Mock<any, any, any>;
|
|
14
|
+
let post: jest.Mock<any, any, any>;
|
|
15
|
+
let put: jest.Mock<any, any, any>;
|
|
16
|
+
}
|
|
17
|
+
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export namespace LogLevels {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
let DEBUG: number;
|
|
3
|
+
let INFO: number;
|
|
4
|
+
let AUDIT: number;
|
|
5
|
+
let WARN: number;
|
|
6
|
+
let ERROR: number;
|
|
7
|
+
let FATAL: number;
|
|
8
8
|
}
|
|
9
9
|
export function logger(): {
|
|
10
10
|
setLogLevel(): void;
|
|
@@ -19,13 +19,13 @@ export function logger(): {
|
|
|
19
19
|
fatal(): void;
|
|
20
20
|
};
|
|
21
21
|
export namespace LogLevel {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
let info: string;
|
|
23
|
+
let debug: string;
|
|
24
|
+
let trace: string;
|
|
25
|
+
let warn: string;
|
|
26
|
+
let error: string;
|
|
27
|
+
let audit: string;
|
|
28
|
+
let fatal: string;
|
|
29
29
|
}
|
|
30
30
|
export function Console(): {
|
|
31
31
|
log: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vitestConfig: import("vite").UserConfig;
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export namespace TARGETS {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let browserslist: string[];
|
|
3
|
+
let web: string;
|
|
4
|
+
let node: string;
|
|
5
5
|
}
|
|
6
6
|
export function esBuild({ srcdir, outdir, esmOnly, target, injectReactShim, skipNestedPackageJSON, }: {
|
|
7
7
|
srcdir: any;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import zlib from 'zlib';
|
|
2
3
|
import CompressionPlugin from 'compression-webpack-plugin';
|
|
3
4
|
import { ObjectPattern } from 'copy-webpack-plugin';
|
|
4
|
-
import zlib from 'zlib';
|
|
5
5
|
export declare const LATEST_VERSION = "latest";
|
|
6
6
|
export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
|
|
7
7
|
export declare const getLibraryName: () => string;
|
|
8
8
|
export declare const getLibraryVariableName: () => string[];
|
|
9
9
|
export declare const mapToFolder: (dependencies: string[], folder: string) => {};
|
|
10
10
|
export declare const getAlias: () => {};
|
|
11
|
+
export declare const getLibraryAlias: (name: string, alias: string) => {
|
|
12
|
+
[x: string]: string;
|
|
13
|
+
};
|
|
11
14
|
export declare const modulesToTranspile: string[];
|
|
12
15
|
export declare const getAppVersion: () => string;
|
|
13
16
|
export declare const getPaths: (latestVersion?: boolean) => {
|
package/nx.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
3
|
+
"targetDependencies": {
|
|
4
|
+
"build": [
|
|
5
|
+
{
|
|
6
|
+
"target": "build",
|
|
7
|
+
"projects": "dependencies"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"test": [
|
|
11
|
+
{
|
|
12
|
+
"target": "build",
|
|
13
|
+
"projects": "dependencies"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"dts": [
|
|
17
|
+
{
|
|
18
|
+
"target": "dts",
|
|
19
|
+
"projects": "dependencies"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"lint": [
|
|
23
|
+
{
|
|
24
|
+
"target": "dts",
|
|
25
|
+
"projects": "dependencies"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"dev": [
|
|
29
|
+
{
|
|
30
|
+
"target": "dev",
|
|
31
|
+
"projects": "dependencies"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"storybook:start": [
|
|
35
|
+
{
|
|
36
|
+
"target": "build",
|
|
37
|
+
"projects": "dependencies"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"storybook:build": [
|
|
41
|
+
{
|
|
42
|
+
"target": "build",
|
|
43
|
+
"projects": "dependencies"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"prepare": [
|
|
47
|
+
{
|
|
48
|
+
"target": "prepare",
|
|
49
|
+
"projects": "dependencies"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"package": [
|
|
53
|
+
{
|
|
54
|
+
"target": "package",
|
|
55
|
+
"projects": "dependencies"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"targetDefaults": {
|
|
60
|
+
"postinstall": {
|
|
61
|
+
"cache": true
|
|
62
|
+
},
|
|
63
|
+
"build": {
|
|
64
|
+
"cache": true
|
|
65
|
+
},
|
|
66
|
+
"dev": {
|
|
67
|
+
"cache": true
|
|
68
|
+
},
|
|
69
|
+
"dev:project": {
|
|
70
|
+
"cache": true
|
|
71
|
+
},
|
|
72
|
+
"test": {
|
|
73
|
+
"cache": true
|
|
74
|
+
},
|
|
75
|
+
"lint": {
|
|
76
|
+
"cache": true
|
|
77
|
+
},
|
|
78
|
+
"dts": {
|
|
79
|
+
"cache": true
|
|
80
|
+
},
|
|
81
|
+
"storybook:start": {
|
|
82
|
+
"cache": true
|
|
83
|
+
},
|
|
84
|
+
"storybook:build": {
|
|
85
|
+
"cache": true
|
|
86
|
+
},
|
|
87
|
+
"package": {
|
|
88
|
+
"cache": true
|
|
89
|
+
},
|
|
90
|
+
"prepare": {
|
|
91
|
+
"cache": true
|
|
92
|
+
},
|
|
93
|
+
"compile:scss": {
|
|
94
|
+
"cache": true
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|