@progress/kendo-common-tasks 7.9.1-dev.8 → 7.9.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.9.1](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-common-tasks@7.9.0...@progress/kendo-common-tasks@7.9.1) (2022-03-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * change promp url ([#324](https://github.com/telerik/kendo-build-tasks/issues/324)) ([bd7ee38](https://github.com/telerik/kendo-build-tasks/commit/bd7ee38731bff7c723427f0c61b9d2b7fdb8f001))
12
+ * **kendo-package-tasks:** do not include peer dependencies in CDN bundles ([fd36d5f](https://github.com/telerik/kendo-build-tasks/commit/fd36d5f5a15c0cf93ff07a3873384ce354f9a5b8))
13
+
14
+
15
+
16
+
17
+
6
18
  # [7.9.0](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-common-tasks@7.8.0...@progress/kendo-common-tasks@7.9.0) (2021-12-03)
7
19
 
8
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-common-tasks",
3
3
  "description": "Build infrastructure helpers and gulp tasks for Kendo UI Angular 2 / React components",
4
- "version": "7.9.1-dev.8+bd7ee38",
4
+ "version": "7.9.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/telerik/kendo-build-tasks.git"
@@ -90,5 +90,5 @@
90
90
  "publishConfig": {
91
91
  "access": "public"
92
92
  },
93
- "gitHead": "bd7ee38731bff7c723427f0c61b9d2b7fdb8f001"
93
+ "gitHead": "d312b6e9168c3b21c723d72374782822c0e33f2d"
94
94
  }
@@ -0,0 +1,57 @@
1
+ // List all external packages that with known global names.
2
+ const knownExternals = {
3
+ "@angular/core": "ng.core",
4
+ "@angular/common": "ng.common",
5
+ "@angular/common/http": "ng.common.http",
6
+ "@angular/compiler": "ng.compiler",
7
+ "@angular/forms": "ng.forms",
8
+ "@angular/platform-browser": "ng.platformBrowser",
9
+ "@angular/platform-browser-dynamic": "ng.platformBrowserDynamic",
10
+ "@angular/animations": "ng.animations",
11
+ "@progress/pako-esm": "pako",
12
+ "@progress/jszip-esm": "JSZip",
13
+ "rxjs": "rxjs",
14
+ "rxjs/operators": "rxjs.operators",
15
+ "tslib": "self"
16
+ };
17
+
18
+ const _ = require('lodash');
19
+ const isProgressPackage = dep => dep.match(/@progress|@telerik/);
20
+ const ucFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1);
21
+ const stripScope = (str) => str.substring((str.indexOf('/') + 1));
22
+ const umdExportName = (libraryName) => _.flow(stripScope, _.camelCase, ucFirst)(libraryName);
23
+
24
+ function toWebpackExternal(module) {
25
+ let externalName = knownExternals[module];
26
+
27
+ if (!externalName && isProgressPackage(module)) {
28
+ externalName = umdExportName(module);
29
+ }
30
+
31
+ if (!externalName) {
32
+ console.warn(`Warning: No known export name for "${module}", including in UMD bundle.`);
33
+ return false;
34
+ }
35
+
36
+ const result = {
37
+ root: externalName.split('.'),
38
+ commonjs: module,
39
+ commonjs2: module
40
+ }
41
+
42
+ return result;
43
+ }
44
+
45
+ function umdExternals(dependencies) {
46
+ const externals = {};
47
+
48
+ dependencies.forEach(module => {
49
+ externals[module] = toWebpackExternal(module);
50
+ });
51
+
52
+ return externals;
53
+ }
54
+
55
+ module.exports = {
56
+ umdExternals
57
+ };