@progress/kendo-typescript-tasks 10.0.13-ng12.26 → 10.0.13-ng12.32
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 +8 -0
- package/api.config.js +0 -1
- package/api.js +26 -9
- package/gulp-tasks.js +14 -11
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [10.0.14](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-typescript-tasks@10.0.13...@progress/kendo-typescript-tasks@10.0.14) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @progress/kendo-typescript-tasks
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [10.0.13](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-typescript-tasks@10.0.12...@progress/kendo-typescript-tasks@10.0.13) (2021-09-28)
|
|
7
15
|
|
|
8
16
|
|
package/api.config.js
CHANGED
package/api.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const execSync = require('child_process').execSync;
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const typedoc = require('
|
|
5
|
+
const typedoc = require('typedoc');
|
|
6
6
|
const deepAssign = require('lodash.merge');
|
|
7
|
+
const glob = require('glob');
|
|
7
8
|
|
|
8
9
|
const api = require('./src/api/generator.js');
|
|
9
10
|
const apiConfig = require('./api.config.js');
|
|
@@ -12,14 +13,30 @@ module.exports = (gulp, userConfig) => {
|
|
|
12
13
|
const series = gulp.series;
|
|
13
14
|
const config = deepAssign({}, apiConfig, userConfig);
|
|
14
15
|
|
|
15
|
-
gulp.task('api-json', () =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
gulp.task('api-json', async (done) => {
|
|
17
|
+
const entryPoints = [
|
|
18
|
+
...glob.sync("src/**/*.{ts,tsx}"),
|
|
19
|
+
...(config.externalApi || [])
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
const app = new typedoc.Application();
|
|
23
|
+
app.options.addReader(new typedoc.TSConfigReader());
|
|
24
|
+
app.bootstrap({ ...config.typedoc, entryPoints });
|
|
25
|
+
|
|
26
|
+
const project = app.convert();
|
|
27
|
+
if (!project) {
|
|
28
|
+
done(new Error('Unable to initialize TypeDoc.'));
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
await app.generateJson(project, apiConfig.jsonPath);
|
|
33
|
+
if (app.logger.hasErrors()) {
|
|
34
|
+
done(new Error('Unable to generate API reference, see messages above.'));
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
done();
|
|
39
|
+
});
|
|
23
40
|
|
|
24
41
|
gulp.task('api-clean', (done) => {
|
|
25
42
|
execSync(`rm -rf docs/api`, {stdio:[0,1,2]});
|
package/gulp-tasks.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
const del = require('del');
|
|
4
4
|
const childProcess = require('child_process');
|
|
5
5
|
const path = require('path');
|
|
6
|
-
const
|
|
7
|
-
const tslint = require('tslint');
|
|
6
|
+
const { ESLint } = require('eslint');
|
|
8
7
|
|
|
9
8
|
const apiTasks = require('./api.js');
|
|
10
9
|
const commonTasks = require('@progress/kendo-common-tasks');
|
|
@@ -37,15 +36,19 @@ module.exports = (gulp, libraryName, compilerPath, options, webpackConfigPath) =
|
|
|
37
36
|
done()
|
|
38
37
|
});
|
|
39
38
|
|
|
40
|
-
gulp.task('lint', series('check-compilation', (done) => {
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.
|
|
39
|
+
gulp.task('lint', series('check-compilation', async(done) => {
|
|
40
|
+
const eslint = new ESLint();
|
|
41
|
+
const results = await eslint.lintFiles([ 'src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}', 'e2e/**/*.{ts,tsx}' ]);
|
|
42
|
+
const formatter = await eslint.loadFormatter('stylish');
|
|
43
|
+
const errors = ESLint.getErrorResults(results)
|
|
44
|
+
|
|
45
|
+
if (errors.length) {
|
|
46
|
+
const resultText = formatter.format(results);
|
|
47
|
+
console.log(resultText);
|
|
48
|
+
done(new Error('Lint failed.'));
|
|
49
|
+
} else {
|
|
50
|
+
done();
|
|
51
|
+
}
|
|
49
52
|
}));
|
|
50
53
|
|
|
51
54
|
gulp.task('lint-docs', () => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@progress/kendo-typescript-tasks",
|
|
3
3
|
"description": "Kendo UI TypeScript package gulp tasks",
|
|
4
4
|
"main": "gulp-tasks.js",
|
|
5
|
-
"version": "10.0.13-ng12.
|
|
5
|
+
"version": "10.0.13-ng12.32+528844c",
|
|
6
6
|
"author": "Telerik",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"scripts": {
|
|
@@ -19,20 +19,22 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@progress/kendo-common-tasks": "ng12",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "4.28.2",
|
|
23
|
+
"@typescript-eslint/parser": "4.28.2",
|
|
22
24
|
"core-js": "^3.18.0",
|
|
23
25
|
"del": "2.2.2",
|
|
26
|
+
"eslint": "7.32.0",
|
|
27
|
+
"eslint-plugin-import": "2.25.2",
|
|
28
|
+
"eslint-plugin-rxjs": "3.3.7",
|
|
29
|
+
"glob": "^7.2.0",
|
|
24
30
|
"gulp": "^4.0.0",
|
|
25
31
|
"gulp-add-src": "^1.0.0",
|
|
26
|
-
"gulp-tslint": "^8.0.0",
|
|
27
|
-
"gulp-typedoc": "^3.0.1",
|
|
28
32
|
"handlebars": "^4.0.5",
|
|
29
33
|
"highlight.js": "9.14.2",
|
|
30
34
|
"lodash.merge": "^4.6.0",
|
|
31
35
|
"mkdirp": "^0.5.0",
|
|
32
36
|
"source-map-loader": "^0.1.5",
|
|
33
37
|
"ts-loader": "4.1.0",
|
|
34
|
-
"tslint": "^5.0.0",
|
|
35
|
-
"tslint-defocus": "^2.0.6",
|
|
36
38
|
"typedoc": "~0.22.5"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
@@ -46,5 +48,5 @@
|
|
|
46
48
|
"publishConfig": {
|
|
47
49
|
"access": "public"
|
|
48
50
|
},
|
|
49
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "528844c54e08c19e5b8ee3bc515f2ac4d34f5bb8"
|
|
50
52
|
}
|