@pega/custom-dx-components 8.8.12 → 8.8.14
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/package.json +1 -1
- package/src/tasks/build/helper.js +1 -0
- package/src/tasks/build/index.js +3 -1
- package/src/tasks/build-all/helper.js +1 -0
- package/src/tasks/build-all/index.js +2 -1
- package/src/tasks/bundle/builder/webpack.config.js +3 -2
- package/src/tasks/init/template/package.json.mustache +1 -1
- package/src/tasks/publish/helper.js +1 -0
- package/src/tasks/publish/index.js +2 -1
- package/src/tasks/publish-all/helper.js +1 -0
- package/src/tasks/publish-all/index.js +2 -1
package/package.json
CHANGED
package/src/tasks/build/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export default async options => {
|
|
|
20
20
|
...answers
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
const sDevBuild = devBuild ? '(dev build)' : '';
|
|
23
24
|
const tasks = new Listr(
|
|
24
25
|
[
|
|
25
26
|
{
|
|
@@ -37,7 +38,8 @@ export default async options => {
|
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
|
-
title:
|
|
41
|
+
title: `Bundle Component ${sDevBuild}`,
|
|
42
|
+
type: 'confirm',
|
|
41
43
|
task: async () => await bundleComponent(componentKey, sourceMap, devBuild),
|
|
42
44
|
skip: () => (options.skipBundle ? 'Skipped bundling component' : undefined)
|
|
43
45
|
}
|
|
@@ -12,6 +12,7 @@ import { getBuildComponentQuestions, cleanUp } from './helper.js';
|
|
|
12
12
|
|
|
13
13
|
export function getCustomTasks(componentKey, sourceMap, devBuild) {
|
|
14
14
|
|
|
15
|
+
const sDevBuild = devBuild ? '(dev build)' : '';
|
|
15
16
|
return new Listr(
|
|
16
17
|
[
|
|
17
18
|
{
|
|
@@ -29,7 +30,7 @@ export function getCustomTasks(componentKey, sourceMap, devBuild) {
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
|
-
title:
|
|
33
|
+
title: `Bundle component ${sDevBuild}`,
|
|
33
34
|
task: async () => bundleComponent(componentKey, sourceMap, devBuild),
|
|
34
35
|
}
|
|
35
36
|
],
|
|
@@ -125,7 +125,8 @@ export default (
|
|
|
125
125
|
name: componentKey,
|
|
126
126
|
type: 'umd',
|
|
127
127
|
export: 'default'
|
|
128
|
-
}
|
|
128
|
+
},
|
|
129
|
+
publicPath: ''
|
|
129
130
|
},
|
|
130
131
|
optimization: {
|
|
131
132
|
minimize: isEnvProduction,
|
|
@@ -318,7 +319,7 @@ export default (
|
|
|
318
319
|
}),
|
|
319
320
|
|
|
320
321
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
321
|
-
maxChunks:
|
|
322
|
+
maxChunks: 1
|
|
322
323
|
}),
|
|
323
324
|
new webpack.optimize.MinChunkSizePlugin({
|
|
324
325
|
minChunkSize: 100000 // Minimum number of characters
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@pega/configs": "^0.5.3",
|
|
59
|
-
"@pega/custom-dx-components": "^8.8.
|
|
59
|
+
"@pega/custom-dx-components": "^8.8.14",
|
|
60
60
|
"@pega/eslint-config": "^0.3.2",
|
|
61
61
|
"@storybook/addon-actions": "^6.5.12",
|
|
62
62
|
"@storybook/addon-essentials": "^6.5.12",
|
|
@@ -21,6 +21,7 @@ export default async options => {
|
|
|
21
21
|
...answers
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
const sDevBuild = devBuild ? '(dev build)' : '';
|
|
24
25
|
const tasks = new Listr(
|
|
25
26
|
[
|
|
26
27
|
{
|
|
@@ -38,7 +39,7 @@ export default async options => {
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
|
-
title:
|
|
42
|
+
title: `Bundle Component ${sDevBuild}`,
|
|
42
43
|
task: async () => await bundleComponent(componentKey, sourceMap, devBuild),
|
|
43
44
|
skip: () => (options.skipBundle ? 'Skipped bundling component' : undefined)
|
|
44
45
|
},
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
} from './helper.js';
|
|
16
16
|
|
|
17
17
|
export function getCustomTasks(componentKey, sourceMap, devBuild, content, options) {
|
|
18
|
+
const sDevBuild = devBuild ? '(dev build)' : '';
|
|
18
19
|
return new Listr(
|
|
19
20
|
[
|
|
20
21
|
{
|
|
@@ -24,7 +25,7 @@ export function getCustomTasks(componentKey, sourceMap, devBuild, content, optio
|
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
|
-
title:
|
|
28
|
+
title: `Bundle Component ${sDevBuild}`,
|
|
28
29
|
task: async () => {
|
|
29
30
|
await bundleComponent(componentKey, sourceMap, devBuild);
|
|
30
31
|
},
|