@progress/kendo-common-tasks 7.9.5-dev.3 → 7.9.5-dev.8
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/docs-server.js +4 -5
- package/index.js +3 -3
- package/lint-slugs.js +2 -2
- package/package.json +3 -4
- package/tasks/package-metadata.js +1 -1
- package/umd-externals/index.js +5 -4
- package/verify-modules.js +2 -2
package/docs-server.js
CHANGED
|
@@ -46,7 +46,7 @@ module.exports = (libraryName, onServerStart, done) => {
|
|
|
46
46
|
(key) => `data-${key}='${opts[key]}'`
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
-
if (
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(opts, 'height')) {
|
|
50
50
|
attr.push(`style='height: ${Number(opts['height']) + 50}px'`);
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -71,10 +71,9 @@ module.exports = (libraryName, onServerStart, done) => {
|
|
|
71
71
|
return hash;
|
|
72
72
|
}, {});
|
|
73
73
|
|
|
74
|
-
return ``
|
|
74
|
+
return String(``
|
|
75
75
|
+ `<div>`
|
|
76
|
-
+ `<h4> Vartiant: ${opts.title}</h4>`
|
|
77
|
-
+ ``;
|
|
76
|
+
+ `<h4> Vartiant: ${opts.title}</h4>`);
|
|
78
77
|
|
|
79
78
|
};
|
|
80
79
|
const embedFile = (_, options) => {
|
|
@@ -96,7 +95,7 @@ module.exports = (libraryName, onServerStart, done) => {
|
|
|
96
95
|
<code class='language-${language}-multiple${preview ? "-preview" : "" }'>${content}</code>
|
|
97
96
|
</pre>`;
|
|
98
97
|
};
|
|
99
|
-
const platformContent = (_, platformCapture, contentCapture) =>
|
|
98
|
+
const platformContent = (_, platformCapture, contentCapture) =>
|
|
100
99
|
(platformCapture === platform ? contentCapture : '');
|
|
101
100
|
|
|
102
101
|
const processPlugins = (content, plugins) => {
|
package/index.js
CHANGED
|
@@ -191,9 +191,9 @@ exports.addTasks = (gulp, libraryName, srcGlob, webpackConfig, dtsGlob, options
|
|
|
191
191
|
}));
|
|
192
192
|
|
|
193
193
|
const dtsStream = gulp.src(_.compact(_.concat([], dtsGlob)))
|
|
194
|
-
.pipe($.rename((thePath) =>
|
|
195
|
-
thePath.dirname = path.join('js', thePath.dirname)
|
|
196
|
-
));
|
|
194
|
+
.pipe($.rename((thePath) => {
|
|
195
|
+
thePath.dirname = path.join('js', thePath.dirname);
|
|
196
|
+
}));
|
|
197
197
|
|
|
198
198
|
return merge(srcStream, dtsStream).pipe(gulp.dest('dist/npm'));
|
|
199
199
|
});
|
package/lint-slugs.js
CHANGED
|
@@ -3,7 +3,7 @@ const gutil = require('gulp-util');
|
|
|
3
3
|
|
|
4
4
|
module.exports = (gulp, packageName) => {
|
|
5
5
|
const reportError = message => (string, file, cb) => {
|
|
6
|
-
const filename = /[
|
|
6
|
+
const filename = /[/\\](docs.*)$/.exec(file.path)[1];
|
|
7
7
|
const error = `
|
|
8
8
|
${message.replace(/FILE/, filename)}
|
|
9
9
|
I can't tell you exactly where due to technical limitations, sorry.
|
|
@@ -18,7 +18,7 @@ module.exports = (gulp, packageName) => {
|
|
|
18
18
|
onFound: reportError("Unknown Liquid tags found in 'FILE'.")
|
|
19
19
|
}))
|
|
20
20
|
.pipe(contains({
|
|
21
|
-
search: /{%\s*slug\s+(?!([a-zA-Z0-9_
|
|
21
|
+
search: /{%\s*slug\s+(?!([a-zA-Z0-9_-])+\s*%})/,
|
|
22
22
|
onFound: reportError("Slugs with invalid characters found in 'FILE'.")
|
|
23
23
|
}))
|
|
24
24
|
);
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
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.
|
|
4
|
+
"version": "7.9.5-dev.8+28182b5",
|
|
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
|
-
"
|
|
12
|
-
"test": "npm run lint && ./node_modules/.bin/jest"
|
|
11
|
+
"test": "./node_modules/.bin/jest"
|
|
13
12
|
},
|
|
14
13
|
"bin": {
|
|
15
14
|
"ci-utils": "./bin/ci-utils",
|
|
@@ -90,5 +89,5 @@
|
|
|
90
89
|
"publishConfig": {
|
|
91
90
|
"access": "public"
|
|
92
91
|
},
|
|
93
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "28182b56d4b5969becc7e346d5fc13ac995b0426"
|
|
94
93
|
}
|
|
@@ -11,7 +11,7 @@ const metadataPath = packagePath =>
|
|
|
11
11
|
path.join(packagePath, 'src', 'package-metadata.ts');
|
|
12
12
|
|
|
13
13
|
const template = data =>
|
|
14
|
-
`import { PackageMetadata } from '@progress/kendo-licensing';
|
|
14
|
+
`import { PackageMetadata } from '@progress/kendo-licensing';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
package/umd-externals/index.js
CHANGED
|
@@ -38,21 +38,22 @@ function toWebpackExternal(module) {
|
|
|
38
38
|
root: externalName.split('.'),
|
|
39
39
|
commonjs: module,
|
|
40
40
|
commonjs2: module
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
|
|
43
43
|
return result;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
function umdExternals(
|
|
46
|
+
function umdExternals(packageDependencies) {
|
|
47
47
|
const externals = {};
|
|
48
|
+
let dependencies = [ ...packageDependencies ];
|
|
48
49
|
|
|
49
50
|
// Sub-packages are not listed in the package dependencies,
|
|
50
51
|
// but we need to mark them as external.
|
|
51
52
|
if (dependencies.includes('@angular/common')) {
|
|
52
|
-
dependencies
|
|
53
|
+
dependencies.push('@angular/common/http');
|
|
53
54
|
}
|
|
54
55
|
if (dependencies.includes('rxjs')) {
|
|
55
|
-
dependencies
|
|
56
|
+
dependencies.push('rxjs/operators');
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
dependencies.forEach(module => {
|
package/verify-modules.js
CHANGED
|
@@ -11,8 +11,8 @@ const debugCycles = (cycles) => cycles.map(printCycle).join('\n\n');
|
|
|
11
11
|
|
|
12
12
|
function verifyModules(index, done) {
|
|
13
13
|
const externalModuleRegexp = process.platform === 'win32' ?
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/^(\.|\w:)/ :
|
|
15
|
+
/^[/.]/;
|
|
16
16
|
|
|
17
17
|
const g = new graphlib.Graph({ directed: true });
|
|
18
18
|
const md = mdeps({
|