@elliemae/pui-cli 7.19.0 → 7.20.1
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/dist/cjs/commands/lint.js +2 -3
- package/dist/cjs/commands/test.js +2 -3
- package/dist/cjs/commands/utils.js +2 -0
- package/dist/cjs/commands/vitest.js +1 -2
- package/dist/esm/commands/lint.js +3 -4
- package/dist/esm/commands/test.js +3 -4
- package/dist/esm/commands/utils.js +2 -0
- package/dist/esm/commands/vitest.js +2 -3
- package/dist/types/commands/utils.d.ts +1 -0
- package/package.json +45 -45
|
@@ -31,11 +31,10 @@ var import_node_path = __toESM(require("node:path"), 1);
|
|
|
31
31
|
var import_yargs = __toESM(require("yargs"), 1);
|
|
32
32
|
var import_utils = require("./utils.js");
|
|
33
33
|
var import_utils2 = require("../utils.cjs");
|
|
34
|
-
const { CI = false } = process.env;
|
|
35
34
|
const lintCSS = async (fix = false) => {
|
|
36
35
|
const fixIssues = fix ? "--fix" : "";
|
|
37
36
|
await (0, import_utils.exec)(
|
|
38
|
-
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!
|
|
37
|
+
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!(0, import_utils.getCIEnv)() ? "--color" : ""} --allow-empty-input --config ${import_node_path.default.join(
|
|
39
38
|
process.cwd(),
|
|
40
39
|
"stylelint.config.cjs"
|
|
41
40
|
)}`
|
|
@@ -43,7 +42,7 @@ const lintCSS = async (fix = false) => {
|
|
|
43
42
|
};
|
|
44
43
|
const lintJS = async (fix = false) => {
|
|
45
44
|
const fixIssues = fix ? "--fix" : "";
|
|
46
|
-
await (0, import_utils.exec)(`eslint ${!
|
|
45
|
+
await (0, import_utils.exec)(`eslint ${!(0, import_utils.getCIEnv)() ? "--color" : ""} ${fixIssues} .`);
|
|
47
46
|
};
|
|
48
47
|
const lintCmd = {
|
|
49
48
|
handler: async (argv) => {
|
|
@@ -29,7 +29,6 @@ __export(test_exports, {
|
|
|
29
29
|
module.exports = __toCommonJS(test_exports);
|
|
30
30
|
var import_yargs = __toESM(require("yargs"), 1);
|
|
31
31
|
var import_utils = require("./utils.js");
|
|
32
|
-
const { CI = false } = process.env;
|
|
33
32
|
const test = async (commandOptions) => {
|
|
34
33
|
await (0, import_utils.exec)(`cross-env NODE_ENV=test jest ${commandOptions}`);
|
|
35
34
|
};
|
|
@@ -45,7 +44,7 @@ const testCmd = {
|
|
|
45
44
|
commandOptions = "-u";
|
|
46
45
|
else if (argv.watch)
|
|
47
46
|
commandOptions = "--watchAll";
|
|
48
|
-
if (
|
|
47
|
+
if ((0, import_utils.getCIEnv)())
|
|
49
48
|
commandOptions += " --ci --no-colors";
|
|
50
49
|
if (argv.p)
|
|
51
50
|
commandOptions += " --passWithNoTests";
|
|
@@ -54,7 +53,7 @@ const testCmd = {
|
|
|
54
53
|
if (argv.s)
|
|
55
54
|
commandOptions += " --silent";
|
|
56
55
|
try {
|
|
57
|
-
if (
|
|
56
|
+
if ((0, import_utils.getCIEnv)()) {
|
|
58
57
|
await (0, import_utils.exec)("rimraf ./reports");
|
|
59
58
|
}
|
|
60
59
|
if (argv.debug) {
|
|
@@ -26,6 +26,7 @@ var utils_exports = {};
|
|
|
26
26
|
__export(utils_exports, {
|
|
27
27
|
copyBuildAssetsToVersionedFolder: () => copyBuildAssetsToVersionedFolder,
|
|
28
28
|
exec: () => exec,
|
|
29
|
+
getCIEnv: () => getCIEnv,
|
|
29
30
|
isApp: () => isApp,
|
|
30
31
|
isPathExist: () => isPathExist,
|
|
31
32
|
logError: () => logError,
|
|
@@ -155,3 +156,4 @@ const isPathExist = async (pathToCheck) => {
|
|
|
155
156
|
}
|
|
156
157
|
};
|
|
157
158
|
const isApp = async () => isPathExist(import_node_path.default.join(process.cwd(), "app"));
|
|
159
|
+
const getCIEnv = () => process.env.CI === "true";
|
|
@@ -29,7 +29,6 @@ __export(vitest_exports, {
|
|
|
29
29
|
module.exports = __toCommonJS(vitest_exports);
|
|
30
30
|
var import_yargs = __toESM(require("yargs"), 1);
|
|
31
31
|
var import_utils = require("./utils.js");
|
|
32
|
-
const { CI = false } = process.env;
|
|
33
32
|
const test = async (commandOptions) => {
|
|
34
33
|
await (0, import_utils.exec)(`cross-env FORCE_COLOR=true vitest ${commandOptions}`);
|
|
35
34
|
};
|
|
@@ -47,7 +46,7 @@ const vitestCmd = {
|
|
|
47
46
|
if (argv.s)
|
|
48
47
|
commandOptions += " --silent";
|
|
49
48
|
try {
|
|
50
|
-
if (
|
|
49
|
+
if ((0, import_utils.getCIEnv)()) {
|
|
51
50
|
await (0, import_utils.exec)("rimraf ./reports");
|
|
52
51
|
}
|
|
53
52
|
await test(commandOptions);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import yargs from "yargs";
|
|
3
|
-
import { exec, logError, logSuccess } from "./utils.js";
|
|
3
|
+
import { exec, logError, logSuccess, getCIEnv } from "./utils.js";
|
|
4
4
|
import { isTypeScriptEnabled } from "../utils.cjs";
|
|
5
|
-
const { CI = false } = process.env;
|
|
6
5
|
const lintCSS = async (fix = false) => {
|
|
7
6
|
const fixIssues = fix ? "--fix" : "";
|
|
8
7
|
await exec(
|
|
9
|
-
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!
|
|
8
|
+
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!getCIEnv() ? "--color" : ""} --allow-empty-input --config ${path.join(
|
|
10
9
|
process.cwd(),
|
|
11
10
|
"stylelint.config.cjs"
|
|
12
11
|
)}`
|
|
@@ -14,7 +13,7 @@ const lintCSS = async (fix = false) => {
|
|
|
14
13
|
};
|
|
15
14
|
const lintJS = async (fix = false) => {
|
|
16
15
|
const fixIssues = fix ? "--fix" : "";
|
|
17
|
-
await exec(`eslint ${!
|
|
16
|
+
await exec(`eslint ${!getCIEnv() ? "--color" : ""} ${fixIssues} .`);
|
|
18
17
|
};
|
|
19
18
|
const lintCmd = {
|
|
20
19
|
handler: async (argv) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import yargs from "yargs";
|
|
2
|
-
import { exec, logError, logSuccess } from "./utils.js";
|
|
3
|
-
const { CI = false } = process.env;
|
|
2
|
+
import { exec, logError, logSuccess, getCIEnv } from "./utils.js";
|
|
4
3
|
const test = async (commandOptions) => {
|
|
5
4
|
await exec(`cross-env NODE_ENV=test jest ${commandOptions}`);
|
|
6
5
|
};
|
|
@@ -16,7 +15,7 @@ const testCmd = {
|
|
|
16
15
|
commandOptions = "-u";
|
|
17
16
|
else if (argv.watch)
|
|
18
17
|
commandOptions = "--watchAll";
|
|
19
|
-
if (
|
|
18
|
+
if (getCIEnv())
|
|
20
19
|
commandOptions += " --ci --no-colors";
|
|
21
20
|
if (argv.p)
|
|
22
21
|
commandOptions += " --passWithNoTests";
|
|
@@ -25,7 +24,7 @@ const testCmd = {
|
|
|
25
24
|
if (argv.s)
|
|
26
25
|
commandOptions += " --silent";
|
|
27
26
|
try {
|
|
28
|
-
if (
|
|
27
|
+
if (getCIEnv()) {
|
|
29
28
|
await exec("rimraf ./reports");
|
|
30
29
|
}
|
|
31
30
|
if (argv.debug) {
|
|
@@ -131,9 +131,11 @@ const isPathExist = async (pathToCheck) => {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
const isApp = async () => isPathExist(path.join(process.cwd(), "app"));
|
|
134
|
+
const getCIEnv = () => process.env.CI === "true";
|
|
134
135
|
export {
|
|
135
136
|
copyBuildAssetsToVersionedFolder,
|
|
136
137
|
exec,
|
|
138
|
+
getCIEnv,
|
|
137
139
|
isApp,
|
|
138
140
|
isPathExist,
|
|
139
141
|
logError,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import yargs from "yargs";
|
|
2
|
-
import { exec, logError, logSuccess } from "./utils.js";
|
|
3
|
-
const { CI = false } = process.env;
|
|
2
|
+
import { exec, logError, logSuccess, getCIEnv } from "./utils.js";
|
|
4
3
|
const test = async (commandOptions) => {
|
|
5
4
|
await exec(`cross-env FORCE_COLOR=true vitest ${commandOptions}`);
|
|
6
5
|
};
|
|
@@ -18,7 +17,7 @@ const vitestCmd = {
|
|
|
18
17
|
if (argv.s)
|
|
19
18
|
commandOptions += " --silent";
|
|
20
19
|
try {
|
|
21
|
-
if (
|
|
20
|
+
if (getCIEnv()) {
|
|
22
21
|
await exec("rimraf ./reports");
|
|
23
22
|
}
|
|
24
23
|
await test(commandOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.1",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@axe-core/react": "~4.5.2",
|
|
66
66
|
"@babel/cli": "~7.19.3",
|
|
67
|
-
"@babel/core": "~7.20.
|
|
67
|
+
"@babel/core": "~7.20.5",
|
|
68
68
|
"@babel/eslint-parser": "~7.19.1",
|
|
69
|
-
"@babel/node": "~7.20.
|
|
69
|
+
"@babel/node": "~7.20.5",
|
|
70
70
|
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
71
71
|
"@babel/plugin-proposal-export-default-from": "~7.18.10",
|
|
72
72
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
@@ -78,49 +78,49 @@
|
|
|
78
78
|
"@babel/preset-env": "~7.20.2",
|
|
79
79
|
"@babel/preset-react": "~7.18.6",
|
|
80
80
|
"@babel/preset-typescript": "~7.18.6",
|
|
81
|
-
"@babel/runtime": "~7.20.
|
|
81
|
+
"@babel/runtime": "~7.20.6",
|
|
82
82
|
"@commitlint/cli": "~17.3.0",
|
|
83
83
|
"@commitlint/config-conventional": "~17.3.0",
|
|
84
84
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
85
85
|
"@faker-js/faker": "7.6.0",
|
|
86
|
-
"@nrwl/cli": "15.
|
|
87
|
-
"@nrwl/tao": "15.
|
|
88
|
-
"@nrwl/workspace": "15.
|
|
89
|
-
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.
|
|
90
|
-
"@semantic-release/changelog": "~6.0.
|
|
86
|
+
"@nrwl/cli": "15.3.0",
|
|
87
|
+
"@nrwl/tao": "15.3.0",
|
|
88
|
+
"@nrwl/workspace": "15.3.0",
|
|
89
|
+
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
|
|
90
|
+
"@semantic-release/changelog": "~6.0.2",
|
|
91
91
|
"@semantic-release/exec": "~6.0.3",
|
|
92
92
|
"@semantic-release/git": "~10.0.1",
|
|
93
|
-
"@storybook/addon-a11y": "~6.5.
|
|
94
|
-
"@storybook/addon-essentials": "~6.5.
|
|
93
|
+
"@storybook/addon-a11y": "~6.5.14",
|
|
94
|
+
"@storybook/addon-essentials": "~6.5.14",
|
|
95
95
|
"@storybook/addon-events": "~6.2.9",
|
|
96
|
-
"@storybook/addon-interactions": "~6.5.
|
|
97
|
-
"@storybook/addon-links": "~6.5.
|
|
98
|
-
"@storybook/addon-storysource": "~6.5.
|
|
96
|
+
"@storybook/addon-interactions": "~6.5.14",
|
|
97
|
+
"@storybook/addon-links": "~6.5.14",
|
|
98
|
+
"@storybook/addon-storysource": "~6.5.14",
|
|
99
99
|
"@storybook/builder-vite": "~0.2.5",
|
|
100
|
-
"@storybook/builder-webpack5": "~6.5.
|
|
101
|
-
"@storybook/manager-webpack5": "~6.5.
|
|
102
|
-
"@storybook/react": "~6.5.
|
|
103
|
-
"@storybook/theming": "~6.5.
|
|
100
|
+
"@storybook/builder-webpack5": "~6.5.14",
|
|
101
|
+
"@storybook/manager-webpack5": "~6.5.14",
|
|
102
|
+
"@storybook/react": "~6.5.14",
|
|
103
|
+
"@storybook/theming": "~6.5.14",
|
|
104
104
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
105
105
|
"@svgr/webpack": "~6.5.1",
|
|
106
106
|
"@swc/cli": "~0.1.57",
|
|
107
|
-
"@swc/core": "~1.3.
|
|
107
|
+
"@swc/core": "~1.3.21",
|
|
108
108
|
"@swc/jest": "~0.2.23",
|
|
109
109
|
"@testing-library/jest-dom": "~5.16.5",
|
|
110
110
|
"@testing-library/react": "~13.4.0",
|
|
111
111
|
"@testing-library/react-hooks": "~8.0.1",
|
|
112
112
|
"@testing-library/user-event": "~14.4.3",
|
|
113
|
-
"@types/jest": "~29.2.
|
|
113
|
+
"@types/jest": "~29.2.4",
|
|
114
114
|
"@types/jest-axe": "~3.5.5",
|
|
115
|
-
"@types/node": "~18.11.
|
|
115
|
+
"@types/node": "~18.11.11",
|
|
116
116
|
"@types/rimraf": "~3.0.2",
|
|
117
117
|
"@types/supertest": "~2.0.12",
|
|
118
|
-
"@types/uuid": "~
|
|
118
|
+
"@types/uuid": "~9.0.0",
|
|
119
119
|
"@types/testing-library__jest-dom": "~5.14.5",
|
|
120
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
121
|
-
"@typescript-eslint/parser": "~5.
|
|
120
|
+
"@typescript-eslint/eslint-plugin": "~5.45.1",
|
|
121
|
+
"@typescript-eslint/parser": "~5.45.1",
|
|
122
122
|
"@vitejs/plugin-react": "~2.2.0",
|
|
123
|
-
"@vitest/coverage-c8": "~0.25.
|
|
123
|
+
"@vitest/coverage-c8": "~0.25.5",
|
|
124
124
|
"autoprefixer": "~10.4.13",
|
|
125
125
|
"axe-core": "~4.5.2",
|
|
126
126
|
"babel-plugin-date-fns": "~2.0.0",
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
"dotenv": "~16.0.3",
|
|
151
151
|
"dotenv-webpack": "~8.0.1",
|
|
152
152
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
153
|
-
"enhanced-resolve": "5.
|
|
154
|
-
"esbuild": "~0.15.
|
|
153
|
+
"enhanced-resolve": "5.12.0",
|
|
154
|
+
"esbuild": "~0.15.18",
|
|
155
155
|
"esbuild-loader": "~2.20.0",
|
|
156
156
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
157
|
-
"eslint": "~8.
|
|
157
|
+
"eslint": "~8.29.0",
|
|
158
158
|
"eslint-config-airbnb": "~19.0.4",
|
|
159
159
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
160
160
|
"eslint-config-airbnb-typescript": "~17.0.0",
|
|
@@ -166,15 +166,15 @@
|
|
|
166
166
|
"eslint-plugin-compat": "~4.0.2",
|
|
167
167
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
168
168
|
"eslint-plugin-import": "~2.26.0",
|
|
169
|
-
"eslint-plugin-jest": "~27.1.
|
|
170
|
-
"eslint-plugin-jsdoc": "~39.6.
|
|
169
|
+
"eslint-plugin-jest": "~27.1.6",
|
|
170
|
+
"eslint-plugin-jsdoc": "~39.6.4",
|
|
171
171
|
"eslint-plugin-jsx-a11y": "~6.6.1",
|
|
172
172
|
"eslint-plugin-mdx": "~2.0.5",
|
|
173
173
|
"eslint-plugin-prettier": "~4.2.1",
|
|
174
174
|
"eslint-plugin-react": "~7.31.11",
|
|
175
175
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
176
176
|
"eslint-plugin-redux-saga": "~1.3.2",
|
|
177
|
-
"eslint-plugin-storybook": "~0.6.
|
|
177
|
+
"eslint-plugin-storybook": "~0.6.8",
|
|
178
178
|
"eslint-plugin-testing-library": "~5.9.1",
|
|
179
179
|
"eslint-plugin-wdio": "~7.25.3",
|
|
180
180
|
"execa": "~6.1.0",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"fast-glob": "~3.2.12",
|
|
187
187
|
"find-up": "~6.3.0",
|
|
188
188
|
"find-up-cli": "~5.0.0",
|
|
189
|
-
"happy-dom": "~7.7.
|
|
189
|
+
"happy-dom": "~7.7.2",
|
|
190
190
|
"helmet-csp": "~3.4.0",
|
|
191
191
|
"html-loader": "~4.2.0",
|
|
192
192
|
"html-webpack-plugin": "~5.5.0",
|
|
@@ -203,13 +203,13 @@
|
|
|
203
203
|
"jest-watch-typeahead": "~2.2.1",
|
|
204
204
|
"jscodeshift": "~0.14.0",
|
|
205
205
|
"jsdoc": "~4.0.0",
|
|
206
|
-
"lerna": "~6.0
|
|
207
|
-
"lint-staged": "~13.0
|
|
208
|
-
"mini-css-extract-plugin": "~2.7.
|
|
206
|
+
"lerna": "~6.1.0",
|
|
207
|
+
"lint-staged": "~13.1.0",
|
|
208
|
+
"mini-css-extract-plugin": "~2.7.2",
|
|
209
209
|
"minimist": "~1.2.7",
|
|
210
210
|
"moment": "~2.29.4",
|
|
211
211
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
212
|
-
"msw": "~0.49.
|
|
212
|
+
"msw": "~0.49.1",
|
|
213
213
|
"node-gyp": "~9.3.0",
|
|
214
214
|
"node-plop": "~0.31.0",
|
|
215
215
|
"nodemon": "~2.0.20",
|
|
@@ -221,11 +221,11 @@
|
|
|
221
221
|
"postcss": "~8.4.19",
|
|
222
222
|
"postcss-html": "~1.5.0",
|
|
223
223
|
"postcss-jsx": "~0.36.4",
|
|
224
|
-
"postcss-loader": "~7.0.
|
|
224
|
+
"postcss-loader": "~7.0.2",
|
|
225
225
|
"postcss-markdown": "~1.2.0",
|
|
226
226
|
"postcss-preset-env": "~7.8.3",
|
|
227
227
|
"postcss-syntax": "~0.36.2",
|
|
228
|
-
"prettier": "~2.
|
|
228
|
+
"prettier": "~2.8.0",
|
|
229
229
|
"pug": "~3.0.2",
|
|
230
230
|
"pug-loader": "~2.4.0",
|
|
231
231
|
"raf": "~3.4.1",
|
|
@@ -242,24 +242,24 @@
|
|
|
242
242
|
"storybook-builder-vite": "~0.1.23",
|
|
243
243
|
"storybook-react-router": "~1.0.8",
|
|
244
244
|
"style-loader": "~3.3.1",
|
|
245
|
-
"stylelint": "~14.
|
|
245
|
+
"stylelint": "~14.16.0",
|
|
246
246
|
"stylelint-config-recommended": "~9.0.0",
|
|
247
247
|
"stylelint-config-styled-components": "~0.1.1",
|
|
248
|
-
"supertest": "~6.3.
|
|
248
|
+
"supertest": "~6.3.2",
|
|
249
249
|
"swc-loader": "~0.2.3",
|
|
250
250
|
"ts-node": "~10.9.1",
|
|
251
|
-
"tsc-alias": "~1.
|
|
251
|
+
"tsc-alias": "~1.8.1",
|
|
252
252
|
"typedoc": "~0.23.21",
|
|
253
253
|
"typescript": "~4.9.3",
|
|
254
254
|
"update-notifier": "~6.0.2",
|
|
255
255
|
"url-loader": "~4.1.1",
|
|
256
256
|
"uuid": "~9.0.0",
|
|
257
|
-
"vite": "~3.2.
|
|
258
|
-
"vitest": "~0.25.
|
|
259
|
-
"vite-tsconfig-paths": "~
|
|
257
|
+
"vite": "~3.2.5",
|
|
258
|
+
"vitest": "~0.25.5",
|
|
259
|
+
"vite-tsconfig-paths": "~4.0.0",
|
|
260
260
|
"webpack": "~5.75.0",
|
|
261
261
|
"webpack-bundle-analyzer": "~4.7.0",
|
|
262
|
-
"webpack-cli": "~5.0.
|
|
262
|
+
"webpack-cli": "~5.0.1",
|
|
263
263
|
"webpack-dev-server": "~4.11.1",
|
|
264
264
|
"webpack-manifest-plugin": "~5.0.0",
|
|
265
265
|
"webpack-merge": "~5.8.0",
|