@elliemae/pui-cli 6.24.1 → 6.24.3
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
const { exit } = require('yargs');
|
|
2
2
|
const { exec, logInfo, logError, logSuccess } = require('./utils');
|
|
3
3
|
|
|
4
|
-
async function buildStoryBook(isDoc = false) {
|
|
5
|
-
const additionalParams = isDoc
|
|
4
|
+
async function buildStoryBook(outputDir = 'demo', isDoc = false) {
|
|
5
|
+
const additionalParams = isDoc
|
|
6
|
+
? `--docs -o ${outputDir}/docs`
|
|
7
|
+
: `-o ${outputDir}`;
|
|
6
8
|
await exec(
|
|
7
9
|
`cross-env NODE_ENV=production FORCE_COLOR=true build-storybook --quiet ${additionalParams}`,
|
|
8
10
|
);
|
|
@@ -22,7 +24,7 @@ async function handler(argv) {
|
|
|
22
24
|
await startStoryBook(argv.docs);
|
|
23
25
|
logInfo('Storybook started');
|
|
24
26
|
} else {
|
|
25
|
-
await buildStoryBook(argv.docs);
|
|
27
|
+
await buildStoryBook(argv.output, argv.docs);
|
|
26
28
|
logSuccess('Storybook build completed');
|
|
27
29
|
}
|
|
28
30
|
} catch (err) {
|
|
@@ -45,6 +47,11 @@ exports.builder = {
|
|
|
45
47
|
type: 'boolean',
|
|
46
48
|
default: false,
|
|
47
49
|
},
|
|
50
|
+
output: {
|
|
51
|
+
alias: 'o',
|
|
52
|
+
type: 'string',
|
|
53
|
+
default: 'demo',
|
|
54
|
+
},
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
exports.handler = handler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.24.
|
|
3
|
+
"version": "6.24.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"minimist": "~1.2.6",
|
|
189
189
|
"moment": "~2.29.4",
|
|
190
190
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
191
|
-
"msw": "~0.
|
|
191
|
+
"msw": "~0.48.0",
|
|
192
192
|
"node-gyp": "~9.1.0",
|
|
193
193
|
"node-plop": "~0.31.0",
|
|
194
194
|
"nodemon": "~2.0.19",
|