@elliemae/pui-cli 6.18.0 → 6.21.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.
- package/lib/cli-commands/gendoc.js +1 -11
- package/lib/lint/lint-staged.config.js +8 -3
- package/lib/typedoc.js +12 -0
- package/package.json +69 -68
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
const { exit } = require('yargs');
|
|
2
|
-
const fs = require('fs');
|
|
3
2
|
const path = require('path');
|
|
4
3
|
const { exec, logInfo, logSuccess, logError } = require('./utils');
|
|
5
4
|
|
|
6
|
-
const { name } = require('../../package.json');
|
|
7
|
-
|
|
8
|
-
function isApp() {
|
|
9
|
-
return fs.existsSync(path.join(process.cwd(), 'app'));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
5
|
async function generateDocs() {
|
|
13
6
|
logInfo('Documentation Generation inprogress...');
|
|
14
|
-
|
|
15
|
-
exec(
|
|
16
|
-
`jsdoc -r -c node_modules/${name}/lib/docgen/jsdoc.config.js -d docs ${srcPath}`,
|
|
17
|
-
);
|
|
7
|
+
await exec(`typedoc --options ${path.resolve(__dirname, '../typedoc.js')}`);
|
|
18
8
|
}
|
|
19
9
|
|
|
20
10
|
async function handler() {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
|
|
4
|
+
const npmClient = fs.existsSync(path.join(process.cwd(), 'pnpm-lock.yaml'))
|
|
5
|
+
? 'pnpm'
|
|
6
|
+
: 'npm';
|
|
2
7
|
|
|
3
8
|
module.exports = {
|
|
4
9
|
'*.{js,ts,jsx,tsx,md,mdx,html,css,json}': ['prettier --write'],
|
|
@@ -9,8 +14,8 @@ module.exports = {
|
|
|
9
14
|
)} --noEmit --emitDeclarationOnly false`,
|
|
10
15
|
],
|
|
11
16
|
'*.{js,ts,jsx,tsx}': [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
`${npmClient} run lint:fix`,
|
|
18
|
+
`${npmClient} run test:staged`,
|
|
19
|
+
`${npmClient} run gendoc`,
|
|
15
20
|
],
|
|
16
21
|
};
|
package/lib/typedoc.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
|
|
4
|
+
const isApp = () => fs.existsSync(path.join(process.cwd(), 'app'));
|
|
5
|
+
|
|
6
|
+
const srcPath = path.join(process.cwd(), isApp() ? 'app' : 'lib');
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
entryPoints: [srcPath],
|
|
10
|
+
exclude: ['**/*+(index|.spec|.e2e).ts'],
|
|
11
|
+
out: 'docs',
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.21.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,26 +47,26 @@
|
|
|
47
47
|
"indent": 4
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@babel/cli": "~7.
|
|
51
|
-
"@babel/core": "~7.
|
|
52
|
-
"@babel/eslint-parser": "~7.
|
|
53
|
-
"@babel/node": "~7.
|
|
54
|
-
"@babel/plugin-proposal-class-properties": "~7.
|
|
55
|
-
"@babel/plugin-proposal-export-default-from": "~7.
|
|
50
|
+
"@babel/cli": "~7.18.6",
|
|
51
|
+
"@babel/core": "~7.18.6",
|
|
52
|
+
"@babel/eslint-parser": "~7.18.2",
|
|
53
|
+
"@babel/node": "~7.18.6",
|
|
54
|
+
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
55
|
+
"@babel/plugin-proposal-export-default-from": "~7.18.6",
|
|
56
56
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
57
|
-
"@babel/plugin-transform-modules-commonjs": "~7.
|
|
58
|
-
"@babel/plugin-transform-react-constant-elements": "~7.
|
|
59
|
-
"@babel/plugin-transform-react-inline-elements": "~7.
|
|
60
|
-
"@babel/plugin-transform-react-jsx-source": "~7.
|
|
61
|
-
"@babel/plugin-transform-runtime": "~7.
|
|
62
|
-
"@babel/preset-env": "~7.
|
|
63
|
-
"@babel/preset-react": "~7.
|
|
64
|
-
"@babel/preset-typescript": "~7.
|
|
65
|
-
"@babel/runtime": "~7.
|
|
66
|
-
"@commitlint/cli": "~
|
|
67
|
-
"@commitlint/config-conventional": "~
|
|
57
|
+
"@babel/plugin-transform-modules-commonjs": "~7.18.6",
|
|
58
|
+
"@babel/plugin-transform-react-constant-elements": "~7.18.6",
|
|
59
|
+
"@babel/plugin-transform-react-inline-elements": "~7.18.6",
|
|
60
|
+
"@babel/plugin-transform-react-jsx-source": "~7.18.6",
|
|
61
|
+
"@babel/plugin-transform-runtime": "~7.18.6",
|
|
62
|
+
"@babel/preset-env": "~7.18.6",
|
|
63
|
+
"@babel/preset-react": "~7.18.6",
|
|
64
|
+
"@babel/preset-typescript": "~7.18.6",
|
|
65
|
+
"@babel/runtime": "~7.18.6",
|
|
66
|
+
"@commitlint/cli": "~17.0.3",
|
|
67
|
+
"@commitlint/config-conventional": "~17.0.3",
|
|
68
68
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
|
|
69
|
-
"@faker-js/faker": "
|
|
69
|
+
"@faker-js/faker": "7.3.0",
|
|
70
70
|
"@nrwl/cli": "13.10.3",
|
|
71
71
|
"@nrwl/tao": "13.10.3",
|
|
72
72
|
"@nrwl/workspace": "13.10.3",
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
89
89
|
"@svgr/webpack": "~6.2.1",
|
|
90
90
|
"@swc/cli": "~0.1.57",
|
|
91
|
-
"@swc/core": "~1.2.
|
|
91
|
+
"@swc/core": "~1.2.206",
|
|
92
92
|
"@swc/jest": "~0.2.21",
|
|
93
93
|
"@testing-library/jest-dom": "~5.16.4",
|
|
94
94
|
"@testing-library/react": "~12.1.4",
|
|
95
|
-
"@testing-library/react-hooks": "~8.0.
|
|
95
|
+
"@testing-library/react-hooks": "~8.0.1",
|
|
96
96
|
"@types/jest": "~27.5.1",
|
|
97
|
-
"@types/node": "~17.0.
|
|
97
|
+
"@types/node": "~17.0.34",
|
|
98
98
|
"@types/react": "~17.0.44",
|
|
99
99
|
"@types/rimraf": "~3.0.2",
|
|
100
|
-
"@types/testing-library__jest-dom": "~5.14.
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
102
|
-
"@typescript-eslint/parser": "~5.
|
|
100
|
+
"@types/testing-library__jest-dom": "~5.14.5",
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "~5.30.0",
|
|
102
|
+
"@typescript-eslint/parser": "~5.30.0",
|
|
103
103
|
"autoprefixer": "~10.4.7",
|
|
104
104
|
"axe-core": "~4.4.2",
|
|
105
105
|
"babel-loader": "~8.2.5",
|
|
@@ -109,15 +109,15 @@
|
|
|
109
109
|
"babel-plugin-import-remove-resource-query": "~1.0.0",
|
|
110
110
|
"babel-plugin-lodash": "~3.3.4",
|
|
111
111
|
"babel-plugin-module-resolver": "~4.1.0",
|
|
112
|
-
"babel-plugin-source-map-support": "~2.
|
|
112
|
+
"babel-plugin-source-map-support": "~2.2.0",
|
|
113
113
|
"babel-plugin-styled-components": "~2.0.7",
|
|
114
114
|
"babel-plugin-transform-react-remove-prop-types": "~0.4.24",
|
|
115
115
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
116
116
|
"babel-plugin-transform-strip-block": "~0.0.5",
|
|
117
117
|
"body-parser": "~1.20.0",
|
|
118
|
-
"browserslist": "~4.
|
|
118
|
+
"browserslist": "~4.21.0",
|
|
119
119
|
"browserslist-to-esbuild": "~1.1.1",
|
|
120
|
-
"canvas": "~2.9.
|
|
120
|
+
"canvas": "~2.9.3",
|
|
121
121
|
"chalk": "~4.1.2",
|
|
122
122
|
"circular-dependency-plugin": "~5.2.2",
|
|
123
123
|
"compression": "~1.7.4",
|
|
@@ -130,13 +130,13 @@
|
|
|
130
130
|
"depcheck": "~1.4.3",
|
|
131
131
|
"docdash": "~1.2.0",
|
|
132
132
|
"dotenv": "~16.0.1",
|
|
133
|
-
"dotenv-webpack": "~7.1.
|
|
133
|
+
"dotenv-webpack": "~7.1.1",
|
|
134
134
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
135
135
|
"enhanced-resolve": "5.9.3",
|
|
136
|
-
"esbuild": "~0.14.
|
|
137
|
-
"esbuild-loader": "~2.
|
|
136
|
+
"esbuild": "~0.14.47",
|
|
137
|
+
"esbuild-loader": "~2.19.0",
|
|
138
138
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
139
|
-
"eslint": "~8.
|
|
139
|
+
"eslint": "~8.18.0",
|
|
140
140
|
"eslint-config-airbnb": "~19.0.4",
|
|
141
141
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
142
142
|
"eslint-config-airbnb-typescript": "~17.0.0",
|
|
@@ -148,21 +148,21 @@
|
|
|
148
148
|
"eslint-plugin-compat": "~4.0.2",
|
|
149
149
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
150
150
|
"eslint-plugin-import": "~2.26.0",
|
|
151
|
-
"eslint-plugin-jest": "~26.
|
|
152
|
-
"eslint-plugin-jsdoc": "~39.
|
|
153
|
-
"eslint-plugin-jsx-a11y": "~6.
|
|
151
|
+
"eslint-plugin-jest": "~26.5.3",
|
|
152
|
+
"eslint-plugin-jsdoc": "~39.3.3",
|
|
153
|
+
"eslint-plugin-jsx-a11y": "~6.6.0",
|
|
154
154
|
"eslint-plugin-mdx": "~1.17.0",
|
|
155
|
-
"eslint-plugin-prettier": "~4.
|
|
156
|
-
"eslint-plugin-react": "~7.
|
|
157
|
-
"eslint-plugin-react-hooks": "~4.
|
|
155
|
+
"eslint-plugin-prettier": "~4.1.0",
|
|
156
|
+
"eslint-plugin-react": "~7.30.1",
|
|
157
|
+
"eslint-plugin-react-hooks": "~4.6.0",
|
|
158
158
|
"eslint-plugin-redux-saga": "~1.3.2",
|
|
159
|
-
"eslint-plugin-storybook": "~0.5.
|
|
160
|
-
"eslint-plugin-testing-library": "~5.5.
|
|
159
|
+
"eslint-plugin-storybook": "~0.5.13",
|
|
160
|
+
"eslint-plugin-testing-library": "~5.5.1",
|
|
161
161
|
"eslint-plugin-wdio": "~7.19.4",
|
|
162
162
|
"execa": "~5.1.1",
|
|
163
163
|
"express": "~4.18.1",
|
|
164
164
|
"express-pino-logger": "~7.0.0",
|
|
165
|
-
"express-static-gzip": "~2.1.
|
|
165
|
+
"express-static-gzip": "~2.1.7",
|
|
166
166
|
"favicons": "~6.2.2",
|
|
167
167
|
"favicons-webpack-plugin": "~5.0.2",
|
|
168
168
|
"fast-glob": "~3.2.11",
|
|
@@ -170,9 +170,9 @@
|
|
|
170
170
|
"happy-dom": "~2.55.0",
|
|
171
171
|
"helmet-csp": "~3.4.0",
|
|
172
172
|
"html-webpack-plugin": "~5.5.0",
|
|
173
|
-
"http-server": "~14.1.
|
|
174
|
-
"husky": "~
|
|
175
|
-
"husky-init": "~
|
|
173
|
+
"http-server": "~14.1.1",
|
|
174
|
+
"husky": "~8.0.1",
|
|
175
|
+
"husky-init": "~8.0.0",
|
|
176
176
|
"imports-loader": "~3.1.1",
|
|
177
177
|
"ip": "~1.1.8",
|
|
178
178
|
"jest-axe": "~6.0.0",
|
|
@@ -183,68 +183,69 @@
|
|
|
183
183
|
"jsdoc": "~3.6.10",
|
|
184
184
|
"lerna": "~4.0.0",
|
|
185
185
|
"lint-staged": "~12.4.1",
|
|
186
|
-
"mini-css-extract-plugin": "~2.6.
|
|
186
|
+
"mini-css-extract-plugin": "~2.6.1",
|
|
187
187
|
"minimist": "~1.2.6",
|
|
188
188
|
"moment": "~2.29.3",
|
|
189
189
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
190
|
-
"msw": "~0.
|
|
190
|
+
"msw": "~0.42.3",
|
|
191
191
|
"node-gyp": "~9.0.0",
|
|
192
192
|
"node-plop": "~0.31.0",
|
|
193
|
-
"nodemon": "~2.0.
|
|
193
|
+
"nodemon": "~2.0.18",
|
|
194
194
|
"normalize-path": "~3.0.0",
|
|
195
|
-
"npm-check-updates": "
|
|
195
|
+
"npm-check-updates": "14.1.1",
|
|
196
196
|
"null-loader": "~4.0.1",
|
|
197
|
-
"pino": "~
|
|
198
|
-
"pino-pretty": "~
|
|
197
|
+
"pino": "~8.1.0",
|
|
198
|
+
"pino-pretty": "~8.1.0",
|
|
199
199
|
"pinst": "~3.0.0",
|
|
200
|
-
"plop": "~3.1.
|
|
201
|
-
"postcss": "~8.4.
|
|
200
|
+
"plop": "~3.1.1",
|
|
201
|
+
"postcss": "~8.4.14",
|
|
202
202
|
"postcss-html": "~1.4.1",
|
|
203
203
|
"postcss-jsx": "~0.36.4",
|
|
204
204
|
"postcss-loader": "~6.2.1",
|
|
205
205
|
"postcss-markdown": "~1.2.0",
|
|
206
|
-
"postcss-preset-env": "~7.
|
|
206
|
+
"postcss-preset-env": "~7.7.2",
|
|
207
207
|
"postcss-syntax": "~0.36.2",
|
|
208
|
-
"prettier": "~2.
|
|
208
|
+
"prettier": "~2.7.1",
|
|
209
209
|
"pug": "~3.0.2",
|
|
210
210
|
"pug-loader": "~2.4.0",
|
|
211
211
|
"raf": "~3.4.1",
|
|
212
212
|
"react-axe": "~3.5.4",
|
|
213
|
-
"react-docgen": "~5.4.
|
|
213
|
+
"react-docgen": "~5.4.2",
|
|
214
214
|
"react-refresh": "~0.11.0",
|
|
215
215
|
"react-test-renderer": "~17.0.2",
|
|
216
216
|
"resize-observer-polyfill": "~1.5.1",
|
|
217
217
|
"resolve-typescript-plugin": "~1.2.0",
|
|
218
218
|
"rimraf": "~3.0.2",
|
|
219
|
-
"semantic-release": "~19.0.
|
|
219
|
+
"semantic-release": "~19.0.3",
|
|
220
220
|
"slackify-markdown": "~4.3.1",
|
|
221
221
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
222
222
|
"storybook-addon-turbo-build": "~1.1.0",
|
|
223
223
|
"storybook-react-router": "~1.0.8",
|
|
224
224
|
"style-loader": "~3.3.1",
|
|
225
|
-
"stylelint": "~14.
|
|
225
|
+
"stylelint": "~14.9.1",
|
|
226
226
|
"stylelint-config-recommended": "~7.0.0",
|
|
227
227
|
"stylelint-config-styled-components": "~0.1.1",
|
|
228
|
-
"swc-loader": "~0.2.
|
|
229
|
-
"terser-webpack-plugin": "~5.3.
|
|
230
|
-
"ts-node": "~10.
|
|
231
|
-
"tsc-alias": "~1.6.
|
|
232
|
-
"
|
|
228
|
+
"swc-loader": "~0.2.3",
|
|
229
|
+
"terser-webpack-plugin": "~5.3.3",
|
|
230
|
+
"ts-node": "~10.8.1",
|
|
231
|
+
"tsc-alias": "~1.6.11",
|
|
232
|
+
"typedoc": "~0.23.1",
|
|
233
|
+
"typescript": "~4.7.4",
|
|
233
234
|
"update-notifier": "~5.1.0",
|
|
234
235
|
"url-loader": "~4.1.1",
|
|
235
236
|
"uuid": "~8.3.2",
|
|
236
|
-
"vite": "~2.9.
|
|
237
|
-
"vitest": "~0.
|
|
238
|
-
"webpack": "~5.
|
|
237
|
+
"vite": "~2.9.13",
|
|
238
|
+
"vitest": "~0.16.0",
|
|
239
|
+
"webpack": "~5.73.0",
|
|
239
240
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
240
|
-
"webpack-cli": "~4.
|
|
241
|
-
"webpack-dev-middleware": "~5.3.
|
|
241
|
+
"webpack-cli": "~4.10.0",
|
|
242
|
+
"webpack-dev-middleware": "~5.3.3",
|
|
242
243
|
"webpack-hot-middleware": "~2.25.1",
|
|
243
244
|
"webpack-manifest-plugin": "~5.0.0",
|
|
244
245
|
"webpack-merge": "~5.8.0",
|
|
245
246
|
"whatwg-fetch": "~3.6.2",
|
|
246
247
|
"workbox-webpack-plugin": "~6.5.3",
|
|
247
|
-
"yargs": "~17.5.
|
|
248
|
+
"yargs": "~17.5.1"
|
|
248
249
|
},
|
|
249
250
|
"devDependencies": {
|
|
250
251
|
"react": "~17.0.2",
|