@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "8.8.12",
3
+ "version": "8.8.14",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -33,6 +33,7 @@ export const getPublishComponentQuestions = async () => {
33
33
  },
34
34
  {
35
35
  name: 'devBuild',
36
+ type: 'confirm',
36
37
  message: 'Generate development build ?',
37
38
  default: defaultPegaConfig.devBuild
38
39
  }
@@ -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: 'Bundle Component',
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
  }
@@ -39,6 +39,7 @@ export const getBuildComponentQuestions = async () => {
39
39
  return [
40
40
  {
41
41
  name: 'devBuild',
42
+ type: 'confirm',
42
43
  message: 'Generate development build ?',
43
44
  default: defaultPegaConfig.devBuild
44
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: 'Bundle component',
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: 5
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.12",
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",
@@ -67,6 +67,7 @@ export const getPublishComponentQuestions = async () => {
67
67
  },
68
68
  {
69
69
  name: 'devBuild',
70
+ type: 'confirm',
70
71
  message: 'Generate development build ?',
71
72
  default: defaultPegaConfig.devBuild
72
73
  }
@@ -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: 'Bundle Component',
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
  },
@@ -59,6 +59,7 @@ export const getPublishComponentQuestions = async () => {
59
59
  },
60
60
  {
61
61
  name: 'devBuild',
62
+ type: 'confirm',
62
63
  message: 'Generate development build ?',
63
64
  default: defaultPegaConfig.devBuild
64
65
  }
@@ -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: 'Bundle Component',
28
+ title: `Bundle Component ${sDevBuild}`,
28
29
  task: async () => {
29
30
  await bundleComponent(componentKey, sourceMap, devBuild);
30
31
  },