@progress/kendo-common-tasks 7.9.5-dev.8 → 7.9.5-dev.84

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.
@@ -58,9 +58,4 @@ function set_status {
58
58
  curl -s -X POST -u "$CREDENTIALS" -d "$PAYLOAD" "$STATUS_URL"
59
59
  }
60
60
 
61
- # TODO: Remove 'then' after migrating from Shippable
62
- if [[ "$SHIPPABLE" == "true" ]]; then
63
- set_status 'Shippable'
64
- else
65
- set_status 'build'
66
- fi
61
+ set_status 'Run CI (kendo-workflows) / build'
@@ -32,7 +32,7 @@ sed -i "$REPLACE_YEAR" LICENSE.md
32
32
  sed -i "$REPLACE_YEAR" NOTICE.txt
33
33
  sed -i "$REPLACE_YEAR" README.md
34
34
 
35
- ERROR="$(npm run semantic-release 2>&1)"
35
+ ERROR="$(npx -c 'semantic-release pre && npx semantic-prerelease publish --public && npx semantic-release post' 2>&1)"
36
36
  EXIT_CODE=$?
37
37
 
38
38
  echo "$ERROR"
package/index.js CHANGED
@@ -14,7 +14,7 @@ const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
14
14
  const listenAddress = process.env['LISTEN_ADDRESS'] || '0.0.0.0';
15
15
  const glob = require('glob');
16
16
  const $ = require('gulp-load-plugins')();
17
- const ExtractTextPlugin = require("extract-text-webpack-plugin");
17
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
18
18
  const packageName = require('./package.json').name;
19
19
 
20
20
  const urlLoaderPath = require.resolve('url-loader');
@@ -56,7 +56,7 @@ exports.resourceLoaders = resourceLoaders;
56
56
  exports.npmPackageSassLoader = exports.CDNSassLoader;
57
57
 
58
58
  exports.extractCssPlugin = () =>
59
- new ExtractTextPlugin("[name].css");
59
+ new MiniCssExtractPlugin("[name].css");
60
60
 
61
61
  exports.uglifyJsPlugin = () =>
62
62
  new webpack.optimize.UglifyJsPlugin();
@@ -159,11 +159,14 @@ function ucfirst(str) {
159
159
  return str.charAt(0).toUpperCase() + str.slice(1);
160
160
  }
161
161
 
162
+ const umdExportName = (libraryName) => _.flow(_.camelCase, ucfirst)(libraryName);
163
+ exports.umdExportName = umdExportName;
164
+
162
165
  exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options = {}) => { //eslint-disable-line max-params
163
166
  const series = gulp.series;
164
167
  const parallel = gulp.parallel;
165
168
 
166
- const libraryClassName = _.flow(_.camelCase, ucfirst)(libraryName);
169
+ const libraryClassName = umdExportName(libraryName);
167
170
 
168
171
  systemjsBundle(
169
172
  gulp,
package/lint-slugs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const contains = require('gulp-contains');
2
- const gutil = require('gulp-util');
2
+ const PluginError = require('plugin-error');
3
3
 
4
4
  module.exports = (gulp, packageName) => {
5
5
  const reportError = message => (string, file, cb) => {
@@ -8,7 +8,7 @@ module.exports = (gulp, packageName) => {
8
8
  ${message.replace(/FILE/, filename)}
9
9
  I can't tell you exactly where due to technical limitations, sorry.
10
10
  Validation provided by ${packageName}.`;
11
- cb(new gutil.PluginError('gulp-contains', error));
11
+ cb(new PluginError('gulp-contains', error));
12
12
  };
13
13
 
14
14
  gulp.task('lint-slugs', () =>
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.5-dev.8+28182b5",
4
+ "version": "7.9.5-dev.84+dae6822",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/telerik/kendo-build-tasks.git"
@@ -20,6 +20,7 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@telerik/eslint-config": "1.1.0",
23
+ "acorn": "^8.5.0",
23
24
  "autoprefixer": "^6.3.6",
24
25
  "babel-core": "^6.0.0",
25
26
  "babel-eslint": "^4.1.6",
@@ -30,21 +31,18 @@
30
31
  "eslint-plugin-react": "^3.10.0",
31
32
  "express": "^4.13.4",
32
33
  "express-urlrewrite": "^1.2.0",
33
- "extract-text-webpack-plugin": "next",
34
34
  "file-loader": "^1.1.6",
35
35
  "glob": "^6.0.4",
36
36
  "graphlib": "2.1.1",
37
37
  "gulp": "^4.0.0",
38
38
  "gulp-add-src": "^0.2.0",
39
39
  "gulp-contains": "^1.1.0",
40
- "gulp-eslint": "^1.1.0",
40
+ "gulp-eslint": "^6.0.0",
41
41
  "gulp-if": "^2.0.0",
42
- "gulp-load-plugins": "1.1.0",
42
+ "gulp-load-plugins": "^2.0.7",
43
43
  "gulp-rename": "^1.2.2",
44
44
  "gulp-sourcemaps": "2.6.5",
45
45
  "gulp-uglify": "^3.0.0",
46
- "gulp-util": "^3.0.7",
47
- "gulp-wrap": "^0.13.0",
48
46
  "hbs": "^4.0.0",
49
47
  "highlight.js": "9.14.2",
50
48
  "jasmine-core": "^2.4.1",
@@ -53,19 +51,20 @@
53
51
  "lodash": "^4.6.0",
54
52
  "marked": "~0.3.2",
55
53
  "merge2": "^1.0.2",
54
+ "mini-css-extract-plugin": "^2.3.0",
56
55
  "mkdirp": "^0.5.0",
57
56
  "module-deps": "4.0.7",
57
+ "plugin-error": "^1.0.1",
58
58
  "resolve-url-loader": "^1.5.0",
59
59
  "serve-index": "^1.7.3",
60
60
  "socket.io": "=1.4.5",
61
61
  "style-loader": "^0.13.0",
62
62
  "url-loader": "^0.5.7",
63
63
  "vinyl-named": "^1.1.0",
64
- "webpack": "4.1.0",
65
- "webpack-dev-server": "3.11.2",
66
- "webpack-sources": "^1.3.0",
67
- "webpack-stream": "5.0.0",
68
- "webpack-system-register": "^1.6.0",
64
+ "webpack": "5.53.0",
65
+ "webpack-dev-server": "^4.2.1",
66
+ "webpack-sources": "^3.2.1",
67
+ "webpack-stream": "7.0.0",
69
68
  "yargs": "^3.30.0"
70
69
  },
71
70
  "jest": {
@@ -89,5 +88,5 @@
89
88
  "publishConfig": {
90
89
  "access": "public"
91
90
  },
92
- "gitHead": "28182b56d4b5969becc7e346d5fc13ac995b0426"
91
+ "gitHead": "dae68228558488bc7c6c370a59c4e0314bccffa3"
93
92
  }
@@ -1,7 +1,5 @@
1
1
  const path = require('path');
2
2
  const _ = require('lodash');
3
- const WebpackSystemRegister = require('webpack-system-register');
4
- const wrap = require('gulp-wrap');
5
3
  const gulpUglify = require('gulp-uglify');
6
4
  const $ = require('gulp-load-plugins')();
7
5
 
@@ -18,16 +16,18 @@ module.exports = (gulp, { webpackConfig, distName, modules = [], webpackStream,
18
16
  gulp.task('build-systemjs-bundle', (done) => {
19
17
  const config = _.assign({}, webpackConfig);
20
18
 
21
- config.plugins = config.plugins || [];
22
- config.plugins.push(new WebpackSystemRegister({
23
- systemjsDeps: packageDependencies,
24
- registerName: packageName
25
- }));
19
+ config.output = {
20
+ library: {
21
+ type: 'system',
22
+ name: packageName
23
+ }
24
+ };
25
+
26
+ config.externals = packageDependencies;
26
27
 
27
28
  const fail = error => done(error);
28
29
  return gulp.src('src/main' + SRC_EXT_GLOB).on("error", fail)
29
30
  .pipe(webpackStream(config, webpack)).on("error", fail)
30
- .pipe(wrap({ src: path.join(__dirname, 'systemjs-bundle.template.js' ) }, { packageName: packageName, modules: modules }, { variable: "data" })).on("error", fail)
31
31
  .pipe($.rename((path) => {
32
32
  path.basename = distName;
33
33
  })).on("error", fail)
@@ -5,6 +5,7 @@ const knownExternals = {
5
5
  "@angular/common/http": "ng.common.http",
6
6
  "@angular/compiler": "ng.compiler",
7
7
  "@angular/forms": "ng.forms",
8
+ "@angular/localize": "ng.localize",
8
9
  "@angular/platform-browser": "ng.platformBrowser",
9
10
  "@angular/platform-browser-dynamic": "ng.platformBrowserDynamic",
10
11
  "@angular/animations": "ng.animations",
@@ -1,16 +0,0 @@
1
- <%= data.contents %>
2
-
3
- <% for (let idx = 0; idx < data.modules.length; idx++) { %>
4
- System.register('<%= data.packageName %>/<%= data.modules[idx]%>', ['<%= data.packageName %>'], function($__export) {
5
- var lib;
6
-
7
- return {
8
- setters: [function(dependency) {
9
- lib = dependency;
10
- }],
11
- execute: function() {
12
- $__export(lib.<%= data.modules[idx] %>);
13
- }
14
- };
15
- });
16
- <% } %>