@progress/kendo-common-tasks 8.0.7-dev.1 → 8.0.7-dev.22

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.
Files changed (68) hide show
  1. package/README.md +2 -3
  2. package/bin/publish-develop-to-master +19 -0
  3. package/index.js +5 -50
  4. package/package.json +15 -54
  5. package/bin/ci-semantic-release +0 -44
  6. package/docs-layout.hbs +0 -51
  7. package/docs-public/bootstrap.css +0 -6759
  8. package/docs-public/bootstrap.min.js +0 -7
  9. package/docs-public/codemirror/clike.min.js +0 -1
  10. package/docs-public/codemirror/codemirror.min.js +0 -5
  11. package/docs-public/codemirror/css.min.js +0 -1
  12. package/docs-public/codemirror/htmlmixed.min.js +0 -1
  13. package/docs-public/codemirror/javascript.min.js +0 -1
  14. package/docs-public/codemirror/jsx.min.js +0 -1
  15. package/docs-public/codemirror/php.min.js +0 -1
  16. package/docs-public/codemirror/runmode.min.js +0 -1
  17. package/docs-public/codemirror/xml.min.js +0 -1
  18. package/docs-public/docs.css +0 -208
  19. package/docs-public/docs.scss +0 -253
  20. package/docs-public/editor/angular/app/app.component.ts +0 -3
  21. package/docs-public/editor/angular/app/app.module.ts +0 -14
  22. package/docs-public/editor/angular/index.html +0 -32
  23. package/docs-public/editor/angular/main.ts +0 -15
  24. package/docs-public/editor/angular/polyfills.ts +0 -73
  25. package/docs-public/editor/angular/styles.css +0 -13
  26. package/docs-public/editor/builder/app/app.component.html +0 -1
  27. package/docs-public/editor/builder/app/app.component.ts +0 -17
  28. package/docs-public/editor/builder/app/app.css +0 -449
  29. package/docs-public/editor/builder/app/app.module.ts +0 -53
  30. package/docs-public/editor/builder/app/core/core.module.ts +0 -19
  31. package/docs-public/editor/builder/app/core/data/data-services.exports.ts +0 -71
  32. package/docs-public/editor/builder/app/core/data/data.service.ts +0 -183
  33. package/docs-public/editor/builder/app/core/data/odata-service-factory.ts +0 -23
  34. package/docs-public/editor/builder/app/core/data/odata.service.ts +0 -88
  35. package/docs-public/editor/builder/app/core/module.config.ts +0 -19
  36. package/docs-public/editor/builder/app/data/odata-provider/customer.config.ts +0 -17
  37. package/docs-public/editor/builder/app/data/odata-provider/customer.model.ts +0 -17
  38. package/docs-public/editor/builder/app/grid-demo.base.component.ts +0 -107
  39. package/docs-public/editor/builder/app/grid-demo.component.html +0 -37
  40. package/docs-public/editor/builder/app/grid-demo.component.ts +0 -1
  41. package/docs-public/editor/builder/app/shared/components/grid/grid.component.html +0 -5
  42. package/docs-public/editor/builder/app/shared/components/grid/grid.component.ts +0 -243
  43. package/docs-public/editor/builder/app/shared/services/grid-incell-editing.service.ts +0 -120
  44. package/docs-public/editor/builder/app/topSection.html +0 -12
  45. package/docs-public/editor/builder/app/topSection.ts +0 -25
  46. package/docs-public/editor/builder/assets/themes/metro.css +0 -18877
  47. package/docs-public/editor/builder/index.html +0 -14
  48. package/docs-public/editor/builder/main.ts +0 -14
  49. package/docs-public/editor/builder/polyfills.ts +0 -67
  50. package/docs-public/editor/builder/styles.css +0 -1
  51. package/docs-public/editor/builder/tsconfig.app.json +0 -13
  52. package/docs-public/editor/builder/typings.d.ts +0 -5
  53. package/docs-public/editor/react/app/main.jsx +0 -6
  54. package/docs-public/editor/react/index.html +0 -32
  55. package/docs-public/editor/vue/app/main.js +0 -5
  56. package/docs-public/editor/vue/index.html +0 -29
  57. package/docs-public/example-runner.js +0 -802
  58. package/docs-public/github.css +0 -99
  59. package/docs-public/snippets.js +0 -1722
  60. package/docs-public/tomorrow-night.css +0 -75
  61. package/docs-server.js +0 -152
  62. package/lint-slugs.js +0 -25
  63. package/markdown-serve/index.js +0 -10
  64. package/markdown-serve/parser.js +0 -234
  65. package/markdown-serve/resolver.js +0 -86
  66. package/markdown-serve/server.js +0 -370
  67. package/test/jest-setup.js +0 -2
  68. package/test/snippets.test.js +0 -373
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
- [![Build Status](https://travis-ci.org/telerik/kendo-common-tasks.svg?branch=master)](https://travis-ci.org/telerik/kendo-common-tasks)
2
1
  [![npm version](https://badge.fury.io/js/%40telerik%2Fkendo-common-tasks.svg)](https://badge.fury.io/js/%40telerik%2Fkendo-common-tasks)
3
2
 
4
3
  # Kendo UI Common Tasks
5
4
 
6
- This package contains the build and packaging utilities, WebPack configuration blocks, and Gulp tasks that are used in the Kendo UI for Angular and KendoReact components. It also re-exports common packages such as WebPack.
5
+ This package contains the build and packaging utilities.
7
6
 
8
- *Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
7
+ *Copyright © 2025 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -o verbose
4
+ BRANCH=$(git rev-parse --abbrev-ref HEAD)
5
+
6
+ if [ "$BRANCH" != "master" ]; then
7
+ echo "Refusing to release from $BRANCH. This script should be running in master."
8
+ exit 1
9
+ fi
10
+
11
+ echo Fast-forwarding master to develop
12
+ set -o errexit
13
+ git fetch --quiet
14
+ git reset --hard origin/master
15
+ git merge --ff-only --quiet origin/develop
16
+ set +o errexit
17
+
18
+ echo Pushing master
19
+ git push origin master
package/index.js CHANGED
@@ -3,24 +3,19 @@
3
3
 
4
4
  const path = require('path');
5
5
  const _ = require('lodash');
6
- const argv = require('yargs').argv;
7
6
  const merge = require('merge2');
8
7
  const named = require('vinyl-named');
9
8
  const webpack = require('webpack');
10
9
  const WebpackDevServer = require('webpack-dev-server');
11
10
  const webpackStream = require('webpack-stream');
12
- const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
13
- //BrowserSync will work only on first port
14
11
  const listenAddress = process.env['LISTEN_ADDRESS'] || '0.0.0.0';
12
+ const listenPort = parseInt(process.env['LISTEN_PORT'] || '3000', 10);
15
13
  const glob = require('glob');
16
14
  const $ = require('gulp-load-plugins')();
17
15
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
18
- const packageName = require('./package.json').name;
19
16
 
20
17
  const verifyModules = require('./verify-modules');
21
18
  const systemjsBundle = require('./systemjs-bundle/task');
22
- const docsServer = require('./docs-server');
23
- const lintSlugsTask = require('./lint-slugs');
24
19
 
25
20
  const SRC = "src";
26
21
  const SRC_EXT_GLOB = ".{jsx,ts,tsx,js}";
@@ -117,30 +112,11 @@ exports.webpackDevConfig = (config) => webpackCommonConfig({
117
112
  filename: 'examples/[name].js'
118
113
  },
119
114
 
120
- devtool: 'cheap-module-eval-source-map',
115
+ devtool: 'eval-cheap-module-source-map',
121
116
  performance: {
122
117
  hints: false
123
118
  },
124
119
 
125
- plugins: [
126
- new BrowserSyncPlugin(
127
- // BrowserSync options
128
- {
129
- open: false,
130
- host: listenAddress,
131
- port: 3000,
132
- proxy: 'http://' + listenAddress + ':8888/'
133
- },
134
- // plugin options
135
- {
136
- // prevent BrowserSync from reloading the page
137
- // and let Webpack Dev Server take care of this
138
- reload: false
139
- }
140
- ),
141
- new webpack.HotModuleReplacementPlugin()
142
- ],
143
-
144
120
  module: {
145
121
  rules: config.rules,
146
122
  noParse: config.noParse
@@ -157,7 +133,6 @@ exports.umdExportName = umdExportName;
157
133
 
158
134
  exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options = {}) => { //eslint-disable-line max-params
159
135
  const series = gulp.series;
160
- const parallel = gulp.parallel;
161
136
 
162
137
  const libraryClassName = umdExportName(libraryName);
163
138
 
@@ -237,12 +212,9 @@ exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options
237
212
  }));
238
213
 
239
214
  gulp.task("start", async() => {
240
- const webpackPort = 3000;
241
- const host = listenAddress;
242
-
243
215
  function entryReducer(entry, filename) {
244
216
  const key = path.basename(filename, path.extname(filename));
245
- entry[key] = [ filename, './src/main' ];
217
+ entry[key] = [ './' + filename, './src/main' ];
246
218
 
247
219
  return entry;
248
220
  }
@@ -267,8 +239,8 @@ exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options
267
239
  const server = new WebpackDevServer({
268
240
  hot: true,
269
241
  allowedHosts: 'all',
270
- host,
271
- port: webpackPort,
242
+ host: listenAddress,
243
+ port: listenPort,
272
244
  static: {
273
245
  directory: './',
274
246
  publicPath: '/'
@@ -281,22 +253,5 @@ exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options
281
253
 
282
254
  await server.start();
283
255
  });
284
- lintSlugsTask(gulp, packageName);
285
-
286
- gulp.task('docs', parallel('lint-slugs', 'build-cdn', 'build-npm-package', 'build-systemjs-bundle', (done) => docsServer(libraryName, (browserSync) => {
287
- gulp.watch("docs/**/*.{md,hbs}", series('lint-slugs')).on('change', browserSync.reload);
288
- gulp.watch("public/**/*.{css,js}").on('change', browserSync.reload);
289
- gulp.watch("dist/cdn/**/*.{css,js}").on('change', browserSync.reload);
290
- gulp.watch("src/**/*" + SRC_EXT_GLOB, series("build-cdn", "build-npm-package"));
291
- }, done)));
292
-
293
- gulp.task('lint', series('lint-slugs', () => {
294
- const isFixed = (file) => file.eslint != null && file.eslint.fixed;
295
- return gulp.src([ srcGlob, "test" ], { "allowEmpty": true })
296
- .pipe($.eslint({ fix: argv.fix }))
297
- .pipe($.eslint.format())
298
- .pipe($.if(isFixed, gulp.dest(".")))
299
- .pipe($.eslint.failAfterError());
300
- }));
301
256
 
302
257
  };
package/package.json CHANGED
@@ -1,89 +1,50 @@
1
1
  {
2
2
  "name": "@progress/kendo-common-tasks",
3
- "description": "Build infrastructure helpers and gulp tasks for Kendo UI Angular 2 / React components",
4
- "version": "8.0.7-dev.1+7cc2df8",
3
+ "description": "Build helpers and gulp tasks for Kendo UI components",
4
+ "version": "8.0.7-dev.22+af7ef2b",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/telerik/kendo-build-tasks.git"
8
8
  },
9
9
  "main": "index.js",
10
10
  "scripts": {
11
- "test": "./node_modules/.bin/jest"
11
+ "test": "echo noop"
12
12
  },
13
13
  "bin": {
14
14
  "ci-utils": "./bin/ci-utils",
15
- "ci-semantic-release": "./bin/ci-semantic-release",
16
- "ci-commit-snapshots": "./bin/ci-commit-snapshots"
15
+ "ci-commit-snapshots": "./bin/ci-commit-snapshots",
16
+ "publish-develop-to-master": "./bin/publish-develop-to-master"
17
17
  },
18
18
  "keywords": [
19
19
  "Kendo UI"
20
20
  ],
21
21
  "dependencies": {
22
- "acorn": "^8.5.0",
23
- "ajv": "^8.11.0",
24
- "autoprefixer": "^6.3.6",
25
- "babel-core": "^6.0.0",
26
- "babel-eslint": "^4.1.6",
27
- "browser-sync": "^2.26.3",
28
- "browser-sync-webpack-plugin": "^2.2.2",
29
- "css-loader": "^0.23.1",
30
- "eslint": "^1.10.1",
31
- "eslint-plugin-react": "^3.10.0",
32
- "express": "^4.13.4",
33
- "express-urlrewrite": "^1.2.0",
34
- "glob": "^6.0.4",
22
+ "acorn": "^8.14.0",
23
+ "ajv": "^8.17.0",
24
+ "glob": "^11.0.0",
35
25
  "graphlib": "2.1.1",
36
- "gulp": "^4.0.0",
37
- "gulp-add-src": "^0.2.0",
38
- "gulp-contains": "^1.1.0",
39
- "gulp-eslint": "^6.0.0",
40
- "gulp-if": "^2.0.0",
26
+ "gulp": "^5.0.0",
41
27
  "gulp-load-plugins": "^2.0.7",
42
28
  "gulp-rename": "^1.2.2",
43
- "gulp-sourcemaps": "2.6.5",
44
29
  "gulp-uglify": "^3.0.0",
45
- "hbs": "^4.0.0",
46
- "highlight.js": "9.14.2",
47
- "jasmine-core": "^2.4.1",
48
- "js-yaml": "~3.2.2",
49
- "lazypipe": "^1.0.1",
50
30
  "lodash": "^4.6.0",
51
- "marked": "~0.3.2",
52
31
  "merge2": "^1.0.2",
53
32
  "mini-css-extract-plugin": "^2.3.0",
54
- "mkdirp": "^0.5.0",
55
33
  "module-deps": "4.0.7",
56
- "plugin-error": "^1.0.1",
57
- "serve-index": "^1.7.3",
58
- "socket.io": "=1.4.5",
59
- "style-loader": "^0.13.0",
34
+ "style-loader": "^4.0.0",
60
35
  "vinyl-named": "^1.1.0",
61
- "webpack": "5.76.0",
62
- "webpack-dev-server": "^4.2.1",
36
+ "webpack": "^5.97.1",
37
+ "webpack-dev-server": "^5.2.0",
63
38
  "webpack-sources": "^3.2.1",
64
- "webpack-stream": "7.0.0",
65
- "yargs": "^3.30.0"
66
- },
67
- "jest": {
68
- "setupFiles": [
69
- "./test/jest-setup.js"
70
- ],
71
- "testURL": "http://localhost/"
39
+ "webpack-stream": "^7.0.0"
72
40
  },
73
41
  "engines": {
74
- "node": ">=4.2.0",
75
- "npm": ">=3.0.0"
42
+ "node": ">=20.0.0"
76
43
  },
77
44
  "author": "Telerik",
78
45
  "license": "Apache-2.0",
79
- "devDependencies": {
80
- "@progress/kendo-ui": "^2018.2.613",
81
- "gulp-debug": "^2.1.2",
82
- "jest": "^23.4.2",
83
- "jquery": "^3.3.1"
84
- },
85
46
  "publishConfig": {
86
47
  "access": "public"
87
48
  },
88
- "gitHead": "7cc2df83024b11a5c72d761afa400cb6b5df6bc9"
49
+ "gitHead": "af7ef2be3e8c46f9a24499bd3bb7fd23cedf0a44"
89
50
  }
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
4
- BRANCH=${BRANCH:-$LOCAL_BRANCH}
5
-
6
- # Override branch for Semantic Prerelease
7
- export GIT_LOCAL_BRANCH=$BRANCH
8
-
9
- REPOSITORY="telerik/$REPO_NAME"
10
- if [[ $GITHUB_REPOSITORY ]]; then
11
- REPOSITORY=$GITHUB_REPOSITORY
12
- fi
13
-
14
- if [[ "$IS_PULL_REQUEST" == true ]]; then
15
- echo "Skipping release for PR builds"
16
- exit 0;
17
- fi
18
-
19
- if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "develop" ]]; then
20
- echo "Skipping release for branches other than \"master\" and \"develop\""
21
- exit 0;
22
- fi
23
-
24
- if [[ "$REPOSITORY" == *-base ]]; then
25
- echo "Skipping release for base repo"
26
- exit 0;
27
- fi
28
-
29
- THIS_YEAR=$(date +%Y)
30
- REPLACE_YEAR="s/\$YEAR/$THIS_YEAR/g"
31
- sed -i "$REPLACE_YEAR" LICENSE.md
32
- sed -i "$REPLACE_YEAR" NOTICE.txt
33
- sed -i "$REPLACE_YEAR" README.md
34
-
35
- ERROR="$(npx -c 'semantic-release pre && semantic-prerelease publish --public && semantic-release post' 2>&1)"
36
- EXIT_CODE=$?
37
-
38
- echo "$ERROR"
39
-
40
- if [ $EXIT_CODE -eq 1 ] && [[ $ERROR != *"ENOCHANGE"* ]]; then
41
- exit 1;
42
- else
43
- exit 0;
44
- fi
package/docs-layout.hbs DELETED
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
5
-
6
- <!-- code mirror -->
7
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/codemirror.min.css">
8
- <link rel="stylesheet" href="/internals/tomorrow-night.css">
9
- <link rel="stylesheet" href="/internals/bootstrap.css">
10
- <link rel="stylesheet" href="/internals/docs.css">
11
-
12
- <script src="/internals/codemirror/codemirror.min.js"></script>
13
- <script src="/internals/codemirror/clike.min.js"></script>
14
- <script src="/internals/codemirror/css.min.js"></script>
15
- <script src="/internals/codemirror/htmlmixed.min.js"></script>
16
- <script src="/internals/codemirror/javascript.min.js"></script>
17
- <script src="/internals/codemirror/jsx.min.js"></script>
18
- <script src="/internals/codemirror/php.min.js"></script>
19
- <script src="/internals/codemirror/runmode.min.js"></script>
20
- <script src="/internals/codemirror/xml.min.js"></script>
21
-
22
- <script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
23
- <script src="http://kendo.cdn.telerik.com/2016.2.714/js/kendo.core.min.js"></script>
24
- <script src="/internals/bootstrap.min.js"></script>
25
- <script src="/internals/example-runner.js"></script>
26
- <script src="/auto-imports.js"></script>
27
-
28
- <script>
29
- var jsCDN = '/cdn/{{scriptSrc}}'
30
- var cssCDN = '/cdn/{{styleSrc}}'
31
- var runnerScript = '/internals/example-runner.js';
32
- var editorTemplatesPath = '/internals/editor/';
33
- var npmUrl = '/npm';
34
- var trackjs = false;
35
- var k2platform = '{{platform}}';
36
- var runner = 'stackblitz';
37
- </script>
38
-
39
- <script src="/internals/snippets.js"></script>
40
- </head>
41
- <body>
42
- <div class="container">
43
- <div class="mt-3 alert alert-info" role="alert" style="margin-top: 20px;">
44
- <strong>Internal Note</strong>: Need help with the docs? Go to the <a target="_blank" href="https://docs.telerik.com/style-guide/introduction" class="alert-link">Style Guide</a>.
45
- </div>
46
- <h1>{{title}}</h1>
47
-
48
- {{{ content }}}
49
- </div>
50
- </body>
51
- </html>