@progress/kendo-package-tasks 4.0.32-dev.3 → 4.0.34-cdn-bundle.10
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 +19 -0
- package/gulp-tasks.js +2 -3
- package/package.json +3 -3
- package/webpack.config.js +31 -51
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [4.0.33](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-package-tasks@4.0.32...@progress/kendo-package-tasks@4.0.33) (2021-12-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **package-tasks:** build concurrency ([e32f863](https://github.com/telerik/kendo-build-tasks/commit/e32f86347c5b7dbdc7809950a58321137c5e2da5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.0.32](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-package-tasks@4.0.31...@progress/kendo-package-tasks@4.0.32) (2021-12-03)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @progress/kendo-package-tasks
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [4.0.31](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-package-tasks@4.0.30...@progress/kendo-package-tasks@4.0.31) (2021-11-09)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @progress/kendo-package-tasks
|
package/gulp-tasks.js
CHANGED
|
@@ -25,7 +25,6 @@ const webpackStream = require('webpack-stream');
|
|
|
25
25
|
const startKarma = require('./start-karma.js');
|
|
26
26
|
module.exports = function(gulp, libraryName, options) {
|
|
27
27
|
const series = gulp.series;
|
|
28
|
-
const parallel = gulp.parallel;
|
|
29
28
|
|
|
30
29
|
if (options && options.packageExternals) {
|
|
31
30
|
webpackConfig.npmPackage.externals = webpackConfig.npmPackage.externals.concat(options.packageExternals);
|
|
@@ -103,7 +102,7 @@ module.exports = function(gulp, libraryName, options) {
|
|
|
103
102
|
.pipe(gulp.dest('dist/npm'))
|
|
104
103
|
));
|
|
105
104
|
|
|
106
|
-
gulp.task('cjs-bundle',
|
|
105
|
+
gulp.task('cjs-bundle', series('clean-cjs-bundle', 'bundle-typings', () => {
|
|
107
106
|
const tasks = entries.map((entry) =>
|
|
108
107
|
rollup({
|
|
109
108
|
entry: 'src/' + entry,
|
|
@@ -120,7 +119,7 @@ module.exports = function(gulp, libraryName, options) {
|
|
|
120
119
|
return merge(tasks);
|
|
121
120
|
}));
|
|
122
121
|
|
|
123
|
-
gulp.task('build-module',
|
|
122
|
+
gulp.task('build-module', series('es-bundle', 'es2015-bundle', 'cjs-bundle', 'build-systemjs-bundle' ));
|
|
124
123
|
|
|
125
124
|
// Alias for backwards-compatibility
|
|
126
125
|
gulp.task('build-rollup-package', series('build-module'));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-package-tasks",
|
|
3
3
|
"description": "An utility package exporting gulp tasks for Kendo UI NPM packages",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.34-cdn-bundle.10+90b5187",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-build-tasks.git"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Kendo UI"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@progress/kendo-common-tasks": "^7.
|
|
17
|
+
"@progress/kendo-common-tasks": "^7.9.1-cdn-bundle.12+90b5187",
|
|
18
18
|
"@telerik/eslint-config": "^1.1.0",
|
|
19
19
|
"buble": "^0.20.0",
|
|
20
20
|
"buble-loader": "^0.5.1",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "90b518795c372df38e0df2230ca2f27971a154d7"
|
|
56
56
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const commonTasks = require('@progress/kendo-common-tasks');
|
|
2
1
|
const path = require('path');
|
|
2
|
+
const commonTasks = require('@progress/kendo-common-tasks');
|
|
3
|
+
const { umdExternals } = require('@progress/kendo-common-tasks/umd-externals');
|
|
3
4
|
|
|
4
5
|
const sourceExtensions = [ '.js' ];
|
|
5
6
|
const nodeModulesPath = path.join(__dirname, 'node_modules');
|
|
@@ -7,16 +8,10 @@ const nodeModulesPath = path.join(__dirname, 'node_modules');
|
|
|
7
8
|
const resolve = commonTasks.resolveConfig(sourceExtensions, nodeModulesPath);
|
|
8
9
|
|
|
9
10
|
const packageInfo = require(path.join(process.cwd(), 'package.json'));
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.map(dep => new RegExp(`^${dep}`));
|
|
15
|
-
|
|
16
|
-
const prebuilt = [
|
|
17
|
-
/jszip[\/\\]dist[\/\\]jszip.js/,
|
|
18
|
-
/pako[\/\\]dist[\/\\]pako_deflate.js/
|
|
19
|
-
];
|
|
11
|
+
const packageKeys = (key) => Object.keys(packageInfo[key] || {});
|
|
12
|
+
const peerDependencies = packageKeys('peerDependencies');
|
|
13
|
+
const allDependencies = packageKeys('dependencies').concat(peerDependencies);
|
|
14
|
+
const matchStartsWith = (key) => new RegExp(`^${key}`);
|
|
20
15
|
|
|
21
16
|
const loaders = [
|
|
22
17
|
{
|
|
@@ -29,43 +24,31 @@ const loaders = [
|
|
|
29
24
|
}
|
|
30
25
|
];
|
|
31
26
|
|
|
27
|
+
const cdn = commonTasks.webpackCommonConfig({
|
|
28
|
+
resolve,
|
|
29
|
+
stats: { assets: false },
|
|
30
|
+
output: { libraryTarget: 'umd' },
|
|
31
|
+
plugins: [],
|
|
32
|
+
optimization: {
|
|
33
|
+
minimize: true
|
|
34
|
+
},
|
|
35
|
+
module: {
|
|
36
|
+
rules: loaders
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
32
40
|
module.exports = {
|
|
41
|
+
// dist/cdn/js/<package-name>.js
|
|
33
42
|
CDN: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
output: { libraryTarget: 'umd' },
|
|
38
|
-
|
|
39
|
-
plugins: [
|
|
40
|
-
],
|
|
41
|
-
optimization: {
|
|
42
|
-
minimize: true
|
|
43
|
-
},
|
|
44
|
-
module: {
|
|
45
|
-
rules: loaders,
|
|
46
|
-
noParse: prebuilt
|
|
47
|
-
}
|
|
43
|
+
...cdn,
|
|
44
|
+
externals: umdExternals(peerDependencies)
|
|
48
45
|
},
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
output: { libraryTarget: 'umd' },
|
|
56
|
-
|
|
57
|
-
externals: packageDependencies,
|
|
58
|
-
|
|
59
|
-
plugins: [
|
|
60
|
-
],
|
|
61
|
-
optimization: {
|
|
62
|
-
minimize: true
|
|
63
|
-
},
|
|
64
|
-
module: {
|
|
65
|
-
rules: loaders,
|
|
66
|
-
noParse: prebuilt
|
|
67
|
-
}
|
|
68
|
-
}), // CDN
|
|
47
|
+
// dist/cdn/main.js
|
|
48
|
+
umdPackage: {
|
|
49
|
+
...cdn,
|
|
50
|
+
externals: umdExternals(allDependencies)
|
|
51
|
+
},
|
|
69
52
|
|
|
70
53
|
npmPackage: {
|
|
71
54
|
mode: 'production',
|
|
@@ -76,11 +59,10 @@ module.exports = {
|
|
|
76
59
|
externals: [
|
|
77
60
|
/^\.\//,
|
|
78
61
|
/^\.\.\//
|
|
79
|
-
].concat(
|
|
62
|
+
].concat(allDependencies.map(matchStartsWith)),
|
|
80
63
|
|
|
81
64
|
module: {
|
|
82
|
-
rules: loaders
|
|
83
|
-
noParse: prebuilt
|
|
65
|
+
rules: loaders
|
|
84
66
|
}
|
|
85
67
|
}, // npmPackage
|
|
86
68
|
|
|
@@ -91,8 +73,7 @@ module.exports = {
|
|
|
91
73
|
"cheerio": "global"
|
|
92
74
|
},
|
|
93
75
|
module: {
|
|
94
|
-
rules: loaders
|
|
95
|
-
noParse: prebuilt
|
|
76
|
+
rules: loaders
|
|
96
77
|
},
|
|
97
78
|
target: 'node'
|
|
98
79
|
}, // test
|
|
@@ -112,8 +93,7 @@ module.exports = {
|
|
|
112
93
|
enforce: 'pre',
|
|
113
94
|
test: /\.js$/,
|
|
114
95
|
loader: require.resolve("source-map-loader")
|
|
115
|
-
} ].concat(loaders)
|
|
116
|
-
noParse: prebuilt
|
|
96
|
+
} ].concat(loaders)
|
|
117
97
|
},
|
|
118
98
|
stats: { colors: true, reasons: true },
|
|
119
99
|
plugins: [
|