@progress/kendo-typescript-tasks 11.3.8-dev.0 → 11.3.8-dev.20

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/README.md CHANGED
@@ -1,11 +1,7 @@
1
- # Kendo UI for Angular
1
+ ![npm version](https://badge.fury.io/js/%40telerik%2Fkendo-typescript-tasks.svg)](https://badge.fury.io/js/%40telerik%2Fkendo-typescript-tasks)
2
2
 
3
- This package is part of the [Kendo UI for Angular](http://www.telerik.com/kendo-angular-ui/) suite.
3
+ # Kendo UI TypeScript Tasks
4
4
 
5
- ## License
5
+ This package contains the build and packaging utilities.
6
6
 
7
- This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI Complete**](http://www.telerik.com/purchase/license-agreement/kendo-ui-complete). If you do not own a commercial license, this file shall be governed by the trial license terms.
8
-
9
- All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
10
-
11
- *Copyright © 2019 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.*
@@ -1,16 +1,13 @@
1
- 'use strict';
2
-
3
- const del = require('del');
4
1
  const childProcess = require('child_process');
5
2
  const path = require('path');
6
3
 
7
4
  const apiTasks = require('./api.js');
8
5
  const commonTasks = require('@progress/kendo-common-tasks');
9
- const linter = require('./src/linter');
10
6
 
11
7
  const webpackConfig = require('./webpack.config.js');
12
8
  const tscPath = require.resolve('typescript/bin/tsc');
13
9
  const listenAddress = process.env['LISTEN_ADDRESS'] || '0.0.0.0';
10
+ const listenPort = parseInt(process.env['LISTEN_PORT'] || '3000', 10);
14
11
 
15
12
  const DTS = '**/*.d.ts';
16
13
  const SRC = 'src/**/*.{ts,tsx}';
@@ -24,10 +21,14 @@ module.exports = (gulp, libraryName, compilerPath, options, webpackConfigPath) =
24
21
  const cmd = compilerPath || tscPath;
25
22
  const tsConfigPath = path.join(process.cwd(), configFile);
26
23
 
27
- childProcess.exec(`${cmd} -p ${tsConfigPath}`, err => {
28
- del.sync([ 'src/**/*.ngfactory.*', 'src/**/*.ngsummary.*',
29
- 'dist/**/*.ngfactory.*', 'dist/**/*.ngsummary.*' ]);
30
- done(err);
24
+ childProcess.exec(`${cmd} -p ${tsConfigPath}`, (err, stdout, stderr) => {
25
+ if (err) {
26
+ console.error(stdout);
27
+ console.error(stderr);
28
+ done(err);
29
+ } else {
30
+ done();
31
+ }
31
32
  });
32
33
  };
33
34
 
@@ -36,19 +37,7 @@ module.exports = (gulp, libraryName, compilerPath, options, webpackConfigPath) =
36
37
  done();
37
38
  });
38
39
 
39
- gulp.task('lint', series(
40
- 'check-compilation',
41
- linter([ 'src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}', 'e2e/**/*.{ts,tsx}' ])
42
- ));
43
-
44
- gulp.task('lint-docs', linter([ 'docs/examples/**/*.{ts,tsx}' ], {
45
- overrideConfigFile: '.eslintrc.docs.json'
46
- }));
47
-
48
- gulp.task('start', (done) => {
49
- const webpackPort = 8888;
50
- const host = listenAddress;
51
-
40
+ gulp.task('start', async(done) => {
52
41
  const packageInfo = require(path.join(process.cwd(), 'package.json'));
53
42
 
54
43
  const config = Object.assign({}, webpackConfig.dev);
@@ -59,23 +48,21 @@ module.exports = (gulp, libraryName, compilerPath, options, webpackConfigPath) =
59
48
  modules: [ path.join(process.cwd(), 'node_modules') ]
60
49
  });
61
50
 
62
- const webpack = commonTasks.webpack(config);
63
- const server = new commonTasks.webpackDevServer(webpack, {
64
- contentBase: './',
51
+ const compiler = commonTasks.webpack(config);
52
+ const server = new commonTasks.webpackDevServer({
65
53
  hot: true,
66
- noInfo: false,
67
- stats: 'errors-only',
68
- disableHostCheck: true
69
- });
70
-
71
- server.listen(webpackPort, host, err => {
72
- if (err) {
73
- done();
74
- throw new $.util.PluginError('webpack-dev-server', err); // eslint-disable-line no-undef
54
+ allowedHosts: 'all',
55
+ host: listenAddress,
56
+ port: listenPort,
57
+ static: './',
58
+ devMiddleware: {
59
+ stats: 'errors-only'
75
60
  }
76
- });
77
- });
61
+ }, compiler);
78
62
 
63
+ await server.start();
64
+ done();
65
+ });
79
66
 
80
67
  gulp.task('build-es-bundle', compile('tsconfig.es.json'));
81
68
  gulp.task('build-es2015-bundle', compile('tsconfig.es2015.json'));
package/package.json CHANGED
@@ -1,46 +1,24 @@
1
1
  {
2
2
  "name": "@progress/kendo-typescript-tasks",
3
3
  "description": "Kendo UI TypeScript package gulp tasks",
4
- "main": "gulp-tasks.js",
5
- "version": "11.3.8-dev.0+7cc2df8",
4
+ "main": "index.js",
5
+ "version": "11.3.8-dev.20+af7ef2b",
6
6
  "author": "Telerik",
7
7
  "license": "Apache-2.0",
8
8
  "scripts": {
9
- "lint": "gulp lint",
10
- "test": "gulp test"
9
+ "test": "echo noop"
11
10
  },
12
11
  "keywords": [
13
12
  "Kendo UI",
14
13
  "TypeScript",
15
14
  "API Generation"
16
15
  ],
17
- "peerDependencies": {
18
- "typescript": "^4.3.4"
19
- },
20
16
  "dependencies": {
21
- "@progress/kendo-common-tasks": "8.0.7-dev.1+7cc2df8",
22
- "@progress/kendo-typescript-api-tasks": "2.1.1-dev.0+7cc2df8",
23
- "@typescript-eslint/eslint-plugin": "4.28.2",
24
- "@typescript-eslint/parser": "4.28.2",
25
- "core-js": "^3.18.0",
26
- "del": "2.2.2",
27
- "eslint": "7.32.0",
28
- "eslint-plugin-import": "2.25.2",
29
- "eslint-plugin-rxjs": "3.3.7",
30
- "glob": "^7.2.0",
31
- "gulp": "^4.0.0",
32
- "gulp-add-src": "^1.0.0",
33
- "handlebars": "^4.0.5",
34
- "highlight.js": "9.14.2",
35
- "lodash": "^4.6.0",
36
- "mkdirp": "^0.5.0",
37
- "source-map-loader": "^0.1.5",
38
- "ts-loader": "4.1.0",
39
- "typedoc": "0.22.15"
40
- },
41
- "devDependencies": {
42
- "gulp-jasmine": "^2.4.2",
43
- "typescript": "~4.3.4"
17
+ "@progress/kendo-common-tasks": "dev",
18
+ "@progress/kendo-typescript-api-tasks": "dev",
19
+ "gulp": "^5.0.0",
20
+ "source-map-loader": "^5.0.0",
21
+ "ts-loader": "^9.5.1"
44
22
  },
45
23
  "repository": {
46
24
  "type": "git",
@@ -49,5 +27,5 @@
49
27
  "publishConfig": {
50
28
  "access": "public"
51
29
  },
52
- "gitHead": "7cc2df83024b11a5c72d761afa400cb6b5df6bc9"
30
+ "gitHead": "af7ef2be3e8c46f9a24499bd3bb7fd23cedf0a44"
53
31
  }
package/webpack.config.js CHANGED
@@ -68,7 +68,13 @@ module.exports = {
68
68
 
69
69
  dev: commonTasks.webpackDevConfig({
70
70
  resolve,
71
- rules: [ tsLoader({ sourceMap: true }) ],
71
+ rules: [ tsLoader({
72
+ sourceMap: true,
73
+ baseUrl: './',
74
+ paths: {
75
+ [packageInfo.name]: [ 'src/main' ]
76
+ }
77
+ }) ],
72
78
  entries: 'examples/**/*.ts'
73
79
  }),
74
80
 
package/gulpfile.js DELETED
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- const gulp = require('gulp');
4
- const jasmine = require('gulp-jasmine');
5
-
6
- gulp.task('test', () =>
7
- gulp.src('test/**/*.js')
8
- .pipe(jasmine({
9
- includeStackTrace: true
10
- }))
11
- );
12
-
package/jenkins.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "tasks":[
3
- "npm run lint",
4
- "npm run test"
5
- ]
6
- }
package/spec-bundle.js DELETED
@@ -1,35 +0,0 @@
1
- /*
2
- * When testing with webpack and ES6, we have to do some extra
3
- * things get testing to work right. Because we are gonna write test
4
- * in ES6 to, we have to compile those as well. That's handled in
5
- * karma.conf.js with the karma-webpack plugin. This is the entry
6
- * file for webpack test. Just like webpack will create a bundle.js
7
- * file for our client, when we run test, it well compile and bundle them
8
- * all here! Crazy huh. So we need to do some setup
9
- */
10
- Error.stackTraceLimit = Infinity;
11
-
12
- require('core-js');
13
-
14
- /*
15
- Ok, this is kinda crazy. We can use the the context method on
16
- require that webpack created in order to tell webpack
17
- what files we actually want to require or import.
18
- Below, context will be an function/object with file names as keys.
19
- using that regex we are saying look in ./src/app and ./test then find
20
- any file that ends with spec.js and get its path. By passing in true
21
- we say do this recursively
22
- */
23
- const testContext = require.context('./test', true, /test\.ts/);
24
-
25
- // get all the files, for each file, call the context function
26
- // that will require the file and load it up here. Context will
27
- // loop and require those spec files here
28
- //testContext.keys().forEach(testContext);
29
-
30
- function requireAll(requireContext) {
31
- return requireContext.keys().map(requireContext);
32
- }
33
-
34
- let modules = requireAll(testContext); // eslint-disable-line no-unused-vars
35
- // requires and returns all modules that match
package/src/linter.js DELETED
@@ -1,18 +0,0 @@
1
- const { ESLint } = require('eslint');
2
-
3
- const linter = (files, options = {}) => async function lint(done) {
4
- const eslint = new ESLint(options);
5
- const results = await eslint.lintFiles(files);
6
- const formatter = await eslint.loadFormatter('stylish');
7
- const errors = ESLint.getErrorResults(results);
8
- const resultText = formatter.format(results);
9
- console.log(resultText);
10
-
11
- if (errors.length > 0) {
12
- done(new Error('Lint failed.'));
13
- } else {
14
- done();
15
- }
16
- };
17
-
18
- module.exports = linter;