@elliemae/pui-cli 6.15.1 → 6.15.4
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/lib/cli-commands/lint.js
CHANGED
|
@@ -2,16 +2,20 @@ const { exit } = require('yargs');
|
|
|
2
2
|
const { exec, logError, logSuccess } = require('./utils');
|
|
3
3
|
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
4
4
|
|
|
5
|
+
const { CI = false } = process.env;
|
|
6
|
+
|
|
5
7
|
async function lintCSS(fix = false) {
|
|
6
8
|
const fixIssues = fix ? '--fix' : '';
|
|
7
9
|
await exec(
|
|
8
|
-
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues}
|
|
10
|
+
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${
|
|
11
|
+
!CI ? '--color' : ''
|
|
12
|
+
} --allowEmptyInput`,
|
|
9
13
|
);
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
async function lintJS(fix = false) {
|
|
13
17
|
const fixIssues = fix ? '--fix' : '';
|
|
14
|
-
await exec(`eslint --color ${fixIssues} .`);
|
|
18
|
+
await exec(`eslint ${!CI ? '--color' : ''} ${fixIssues} .`);
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
async function handler(argv) {
|
package/lib/cli-commands/test.js
CHANGED
|
@@ -4,7 +4,7 @@ const { exec, logError, logSuccess } = require('./utils');
|
|
|
4
4
|
const { CI = false } = process.env;
|
|
5
5
|
|
|
6
6
|
async function test(commandOptions) {
|
|
7
|
-
await exec(`cross-env
|
|
7
|
+
await exec(`cross-env NODE_ENV=test jest ${commandOptions}`);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line max-statements
|
|
@@ -12,7 +12,7 @@ async function handler(argv) {
|
|
|
12
12
|
let commandOptions = '--coverage';
|
|
13
13
|
if (argv.fix) commandOptions = '-u';
|
|
14
14
|
else if (argv.watch) commandOptions = '--watchAll';
|
|
15
|
-
if (CI) commandOptions += ' --ci --runInBand';
|
|
15
|
+
if (CI) commandOptions += ' --ci --runInBand --no-colors';
|
|
16
16
|
else commandOptions += ' --maxWorkers=50%';
|
|
17
17
|
if (argv.p) commandOptions += ' --passWithNoTests';
|
|
18
18
|
if (argv.r) commandOptions += ' --bail --findRelatedTests';
|
|
@@ -70,9 +70,6 @@ const jestConfig = {
|
|
|
70
70
|
'react-spring/renderprops': getNodeModulesPath(
|
|
71
71
|
'react-spring/renderprops.cjs.js',
|
|
72
72
|
),
|
|
73
|
-
'styled-components': getNodeModulesPath(
|
|
74
|
-
'styled-components/dist/styled-components.cjs.js',
|
|
75
|
-
),
|
|
76
73
|
},
|
|
77
74
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
78
75
|
setupFilesAfterEnv: [path.resolve(__dirname, './setup-tests.js')],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@commitlint/cli": "~16.2.3",
|
|
67
67
|
"@commitlint/config-conventional": "~16.2.1",
|
|
68
68
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
|
|
69
|
-
"@faker-js/faker": "6.
|
|
69
|
+
"@faker-js/faker": "6.2.0",
|
|
70
70
|
"@nrwl/cli": "13.10.3",
|
|
71
71
|
"@nrwl/tao": "13.10.3",
|
|
72
72
|
"@nrwl/workspace": "13.10.3",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"dotenv": "~16.0.0",
|
|
132
132
|
"dotenv-webpack": "~7.1.0",
|
|
133
133
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
134
|
-
"enhanced-resolve": "5.9.
|
|
134
|
+
"enhanced-resolve": "5.9.3",
|
|
135
135
|
"esbuild": "~0.14.37",
|
|
136
136
|
"esbuild-loader": "~2.18.0",
|
|
137
137
|
"esbuild-plugin-svgr": "~1.0.1",
|