@servicetitan/startup 26.0.0 → 26.0.2-canary.0
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/dist/__mocks__/create-package.js +14 -5
- package/dist/__mocks__/index.js +31 -18
- package/dist/cli/commands/build.js +83 -34
- package/dist/cli/commands/bundle-package.js +91 -39
- package/dist/cli/commands/eslint.js +74 -31
- package/dist/cli/commands/get-command.js +16 -16
- package/dist/cli/commands/get-user-commands.js +9 -9
- package/dist/cli/commands/index.js +45 -32
- package/dist/cli/commands/init.js +93 -42
- package/dist/cli/commands/install.js +77 -32
- package/dist/cli/commands/kendo-ui-license.js +86 -39
- package/dist/cli/commands/mfe-publish.js +176 -79
- package/dist/cli/commands/prepare-package.js +84 -35
- package/dist/cli/commands/start.js +107 -58
- package/dist/cli/commands/styles-check.js +63 -35
- package/dist/cli/commands/tests.js +77 -32
- package/dist/cli/commands/types.d.ts +1 -1
- package/dist/cli/commands/types.js +3 -3
- package/dist/cli/index.js +23 -18
- package/dist/cli/utils/assets-copy.js +52 -23
- package/dist/cli/utils/bundle.js +130 -56
- package/dist/cli/utils/cli-git.js +4 -4
- package/dist/cli/utils/cli-npm.js +73 -27
- package/dist/cli/utils/cli-os.js +14 -15
- package/dist/cli/utils/compile-less.d.ts +1 -1
- package/dist/cli/utils/compile-less.js +42 -18
- package/dist/cli/utils/compile-sass.d.ts +1 -1
- package/dist/cli/utils/compile-sass.js +41 -17
- package/dist/cli/utils/eslint.js +70 -34
- package/dist/cli/utils/get-module-type.js +17 -11
- package/dist/cli/utils/index.js +42 -29
- package/dist/cli/utils/is-module-installed.d.ts +1 -1
- package/dist/cli/utils/is-module-installed.js +4 -5
- package/dist/cli/utils/lerna-exec.js +52 -20
- package/dist/cli/utils/maybe-create-git-folder.d.ts +1 -1
- package/dist/cli/utils/maybe-create-git-folder.js +9 -7
- package/dist/cli/utils/publish.d.ts +1 -1
- package/dist/cli/utils/publish.js +3 -3
- package/dist/cli/utils/set-node-options.js +28 -12
- package/dist/cli/utils/styles-copy.js +52 -23
- package/dist/cli/utils/tcm.js +60 -34
- package/dist/cli/utils/tsc.js +46 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jest/index.js +4 -4
- package/dist/utils/debug.d.ts +1 -1
- package/dist/utils/debug.js +9 -7
- package/dist/utils/find-packages.d.ts +1 -1
- package/dist/utils/find-packages.js +37 -20
- package/dist/utils/get-destination-folders.js +27 -22
- package/dist/utils/get-folders.js +15 -9
- package/dist/utils/get-jest-config.js +78 -36
- package/dist/utils/get-package-data.d.ts +5 -2
- package/dist/utils/get-package-data.js +14 -8
- package/dist/utils/get-package-name.d.ts +1 -1
- package/dist/utils/get-package-name.js +10 -8
- package/dist/utils/get-packages.js +37 -19
- package/dist/utils/get-startup-version.d.ts +1 -1
- package/dist/utils/get-startup-version.js +16 -9
- package/dist/utils/get-tsconfig.d.ts +1 -1
- package/dist/utils/get-tsconfig.js +13 -9
- package/dist/utils/index.js +44 -31
- package/dist/utils/load-shared-dependencies.d.ts +5 -2
- package/dist/utils/load-shared-dependencies.js +12 -6
- package/dist/utils/log.d.ts +5 -2
- package/dist/utils/log.js +13 -12
- package/dist/utils/read-json.d.ts +1 -1
- package/dist/utils/read-json.js +10 -9
- package/dist/utils/to-array.d.ts +1 -1
- package/dist/utils/to-array.js +3 -3
- package/dist/webpack/__mocks__/file-rules.d.ts +1 -1
- package/dist/webpack/__mocks__/file-rules.js +3 -3
- package/dist/webpack/__mocks__/index.d.ts +1 -1
- package/dist/webpack/__mocks__/index.js +32 -19
- package/dist/webpack/configs/amd-config.js +3 -3
- package/dist/webpack/configs/cache-config.js +5 -5
- package/dist/webpack/configs/dev-server-config.js +38 -20
- package/dist/webpack/configs/dev-server-config.js.map +1 -1
- package/dist/webpack/configs/devtool-config.js +4 -5
- package/dist/webpack/configs/entry.config.js +4 -4
- package/dist/webpack/configs/externals-config.js +9 -7
- package/dist/webpack/configs/index.js +43 -30
- package/dist/webpack/configs/loaders/css-loader.js +15 -9
- package/dist/webpack/configs/loaders/index.js +34 -21
- package/dist/webpack/configs/loaders/less-loader.d.ts +1 -1
- package/dist/webpack/configs/loaders/less-loader.js +3 -3
- package/dist/webpack/configs/loaders/style-loader.js +11 -8
- package/dist/webpack/configs/loaders/types.d.ts +1 -1
- package/dist/webpack/configs/loaders/types.js +3 -3
- package/dist/webpack/configs/module-config.js +4 -4
- package/dist/webpack/configs/optimization-config.js +3 -3
- package/dist/webpack/configs/output-config.js +20 -9
- package/dist/webpack/configs/plugins/assets-manifest-plugin.js +15 -10
- package/dist/webpack/configs/plugins/bundle-analyser-plugin.js +10 -8
- package/dist/webpack/configs/plugins/define-exposed-dependencies-plugin.js +21 -14
- package/dist/webpack/configs/plugins/define-web-component-name-plugin.js +4 -4
- package/dist/webpack/configs/plugins/filter-warnings-plugin.js +3 -3
- package/dist/webpack/configs/plugins/html-plugin.js +43 -22
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.d.ts +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.js +5 -6
- package/dist/webpack/configs/plugins/ignore-plugin/ignore-plugin.js +5 -5
- package/dist/webpack/configs/plugins/ignore-plugin/index.js +31 -18
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.d.ts +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.js +6 -4
- package/dist/webpack/configs/plugins/index.js +42 -29
- package/dist/webpack/configs/plugins/mini-css-extract-plugin.js +20 -11
- package/dist/webpack/configs/plugins/moment-locales-plugin.js +9 -7
- package/dist/webpack/configs/plugins/provide-react-plugin.js +4 -4
- package/dist/webpack/configs/plugins/ts-checker-plugin.js +31 -23
- package/dist/webpack/configs/plugins/virtual-modules-plugin.js +14 -10
- package/dist/webpack/configs/plugins-config.js +4 -4
- package/dist/webpack/configs/resolve-config.js +3 -3
- package/dist/webpack/configs/rules/css-rules.js +25 -16
- package/dist/webpack/configs/rules/font-rules.js +3 -3
- package/dist/webpack/configs/rules/image-rules.js +3 -3
- package/dist/webpack/configs/rules/index.js +38 -25
- package/dist/webpack/configs/rules/js-rules.js +3 -3
- package/dist/webpack/configs/rules/less-rules.js +9 -5
- package/dist/webpack/configs/rules/scss-rules.js +9 -5
- package/dist/webpack/configs/rules/svg-rules.js +3 -3
- package/dist/webpack/configs/rules/tsx-rules.js +3 -3
- package/dist/webpack/configs/rules-config.js +8 -6
- package/dist/webpack/configs/stats-config.js +3 -3
- package/dist/webpack/configs/types.js +3 -3
- package/dist/webpack/configs/utils/generate-metadata.js +21 -14
- package/dist/webpack/configs/utils/get-web-components-version.js +16 -9
- package/dist/webpack/configs/utils/index.js +31 -18
- package/dist/webpack/create-webpack-config.js +70 -30
- package/dist/webpack/index.js +32 -19
- package/dist/webpack/loaders/expose-loader/index.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/index.js +11 -5
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.js +3 -4
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.js +23 -21
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.js +18 -9
- package/dist/webpack/loaders/expose-loader/utils/index.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/index.js +33 -20
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.js +23 -19
- package/dist/webpack/types.d.ts +1 -1
- package/dist/webpack/types.js +3 -3
- package/dist/webpack/utils/bundle.d.ts +1 -1
- package/dist/webpack/utils/bundle.js +3 -3
- package/dist/webpack/utils/feature-cohort.js +6 -6
- package/dist/webpack/utils/get-caller-filename.d.ts +1 -1
- package/dist/webpack/utils/get-caller-filename.js +4 -5
- package/dist/webpack/utils/hash-mod.d.ts +1 -1
- package/dist/webpack/utils/hash-mod.js +3 -3
- package/dist/webpack/utils/index.js +34 -21
- package/dist/webpack/utils/split-by-entry.d.ts +6 -2
- package/dist/webpack/utils/split-by-entry.js +4 -5
- package/dist/webpack/utils/testing/compile.d.ts +1 -1
- package/dist/webpack/utils/testing/compile.js +3 -3
- package/dist/webpack/utils/testing/execute.d.ts +11 -5
- package/dist/webpack/utils/testing/execute.js +17 -10
- package/dist/webpack/utils/testing/get-compiler.d.ts +4 -2
- package/dist/webpack/utils/testing/get-compiler.js +37 -30
- package/dist/webpack/utils/testing/get-errors.d.ts +1 -1
- package/dist/webpack/utils/testing/get-errors.js +4 -4
- package/dist/webpack/utils/testing/get-module-source.d.ts +1 -1
- package/dist/webpack/utils/testing/get-module-source.js +9 -4
- package/dist/webpack/utils/testing/get-warnings.d.ts +1 -1
- package/dist/webpack/utils/testing/get-warnings.js +4 -4
- package/dist/webpack/utils/testing/index.d.ts +16 -6
- package/dist/webpack/utils/testing/index.js +12 -12
- package/dist/webpack/utils/testing/normalize-errors.d.ts +1 -1
- package/dist/webpack/utils/testing/normalize-errors.js +3 -3
- package/dist/webpack/utils/testing/read-asset.d.ts +1 -1
- package/dist/webpack/utils/testing/read-asset.js +12 -10
- package/dist/webpack/utils/testing/read-assets.d.ts +1 -1
- package/dist/webpack/utils/testing/read-assets.js +4 -4
- package/package.json +7 -8
- package/src/index.ts +1 -0
- package/src/webpack/__tests__/create-webpack-config.test.ts +4 -0
- package/src/webpack/configs/dev-server-config.ts +6 -1
|
@@ -1,32 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
__exportStar
|
|
23
|
-
__exportStar
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
__exportStar(require(
|
|
31
|
-
__exportStar(require(
|
|
32
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return m[k];
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}
|
|
18
|
+
: function (o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
});
|
|
22
|
+
var __exportStar =
|
|
23
|
+
(this && this.__exportStar) ||
|
|
24
|
+
function (m, exports) {
|
|
25
|
+
for (var p in m)
|
|
26
|
+
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
27
|
+
__createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
|
+
__exportStar(require('./build'), exports);
|
|
31
|
+
__exportStar(require('./bundle-package'), exports);
|
|
32
|
+
__exportStar(require('./eslint'), exports);
|
|
33
|
+
__exportStar(require('./get-command'), exports);
|
|
34
|
+
__exportStar(require('./get-user-commands'), exports);
|
|
35
|
+
__exportStar(require('./init'), exports);
|
|
36
|
+
__exportStar(require('./install'), exports);
|
|
37
|
+
__exportStar(require('./kendo-ui-license'), exports);
|
|
38
|
+
__exportStar(require('./lint'), exports);
|
|
39
|
+
__exportStar(require('./prepare-package'), exports);
|
|
40
|
+
__exportStar(require('./start'), exports);
|
|
41
|
+
__exportStar(require('./tests'), exports);
|
|
42
|
+
__exportStar(require('./styles-check'), exports);
|
|
43
|
+
__exportStar(require('./mfe-publish'), exports);
|
|
44
|
+
__exportStar(require('./types'), exports);
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,39 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r =
|
|
7
|
+
c < 3
|
|
8
|
+
? target
|
|
9
|
+
: desc === null
|
|
10
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
11
|
+
: desc,
|
|
12
|
+
d;
|
|
13
|
+
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
|
|
14
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
else
|
|
16
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
17
|
+
if ((d = decorators[i]))
|
|
18
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
var __metadata =
|
|
22
|
+
(this && this.__metadata) ||
|
|
23
|
+
function (k, v) {
|
|
24
|
+
if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
|
|
25
|
+
return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
var __awaiter =
|
|
28
|
+
(this && this.__awaiter) ||
|
|
29
|
+
function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) {
|
|
31
|
+
return value instanceof P
|
|
32
|
+
? value
|
|
33
|
+
: new P(function (resolve) {
|
|
34
|
+
resolve(value);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) {
|
|
39
|
+
try {
|
|
40
|
+
step(generator.next(value));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
reject(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function rejected(value) {
|
|
46
|
+
try {
|
|
47
|
+
step(generator['throw'](value));
|
|
48
|
+
} catch (e) {
|
|
49
|
+
reject(e);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function step(result) {
|
|
53
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
54
|
+
}
|
|
55
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var __importDefault =
|
|
59
|
+
(this && this.__importDefault) ||
|
|
60
|
+
function (mod) {
|
|
61
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
24
64
|
exports.Init = void 0;
|
|
25
|
-
const fs_1 = __importDefault(require(
|
|
26
|
-
const cpx_1 = __importDefault(require(
|
|
27
|
-
const util_1 = __importDefault(require(
|
|
28
|
-
const path_1 = __importDefault(require(
|
|
29
|
-
const utils_1 = require(
|
|
65
|
+
const fs_1 = __importDefault(require('fs'));
|
|
66
|
+
const cpx_1 = __importDefault(require('cpx'));
|
|
67
|
+
const util_1 = __importDefault(require('util'));
|
|
68
|
+
const path_1 = __importDefault(require('path'));
|
|
69
|
+
const utils_1 = require('../../utils');
|
|
30
70
|
class Init {
|
|
31
71
|
constructor(args) {
|
|
32
|
-
Object.defineProperty(this,
|
|
72
|
+
Object.defineProperty(this, 'args', {
|
|
33
73
|
enumerable: true,
|
|
34
74
|
configurable: true,
|
|
35
75
|
writable: true,
|
|
36
|
-
value: args
|
|
76
|
+
value: args,
|
|
37
77
|
});
|
|
38
78
|
}
|
|
39
79
|
description() {
|
|
@@ -42,31 +82,42 @@ class Init {
|
|
|
42
82
|
execute() {
|
|
43
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
84
|
var _a;
|
|
45
|
-
const destination = path_1.default.resolve(
|
|
85
|
+
const destination = path_1.default.resolve(
|
|
86
|
+
(_a = this.args.output) !== null && _a !== void 0 ? _a : '.'
|
|
87
|
+
);
|
|
46
88
|
if (!fs_1.default.existsSync(destination)) {
|
|
47
89
|
fs_1.default.mkdirSync(destination, { recursive: true });
|
|
48
|
-
}
|
|
49
|
-
else if (!fs_1.default.lstatSync(destination).isDirectory()) {
|
|
90
|
+
} else if (!fs_1.default.lstatSync(destination).isDirectory()) {
|
|
50
91
|
throw new Error(`${destination} is not a directory`);
|
|
51
92
|
}
|
|
52
93
|
yield copyFiles('template', destination);
|
|
53
94
|
if (!this.args.react17) {
|
|
54
95
|
yield copyFiles('template-react18', destination);
|
|
55
96
|
}
|
|
56
|
-
utils_1.log.info(
|
|
97
|
+
utils_1.log.info(
|
|
98
|
+
`copied${this.args.react17 ? ' React 17' : ''} template to ${destination}`
|
|
99
|
+
);
|
|
57
100
|
});
|
|
58
101
|
}
|
|
59
102
|
}
|
|
60
103
|
exports.Init = Init;
|
|
61
|
-
__decorate(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
104
|
+
__decorate(
|
|
105
|
+
[
|
|
106
|
+
utils_1.logErrors,
|
|
107
|
+
__metadata('design:type', Function),
|
|
108
|
+
__metadata('design:paramtypes', []),
|
|
109
|
+
__metadata('design:returntype', Promise),
|
|
110
|
+
],
|
|
111
|
+
Init.prototype,
|
|
112
|
+
'execute',
|
|
113
|
+
null
|
|
114
|
+
);
|
|
67
115
|
function copyFiles(from, to) {
|
|
68
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
yield util_1.default.promisify(cpx_1.default.copy)(
|
|
117
|
+
yield util_1.default.promisify(cpx_1.default.copy)(
|
|
118
|
+
path_1.default.resolve(__dirname, `../../../${from}/**/{.*,*,.*/*}`),
|
|
119
|
+
to
|
|
120
|
+
);
|
|
70
121
|
});
|
|
71
122
|
}
|
|
72
|
-
//# sourceMappingURL=init.js.map
|
|
123
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -1,29 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r =
|
|
7
|
+
c < 3
|
|
8
|
+
? target
|
|
9
|
+
: desc === null
|
|
10
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
11
|
+
: desc,
|
|
12
|
+
d;
|
|
13
|
+
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
|
|
14
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
else
|
|
16
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
17
|
+
if ((d = decorators[i]))
|
|
18
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
var __metadata =
|
|
22
|
+
(this && this.__metadata) ||
|
|
23
|
+
function (k, v) {
|
|
24
|
+
if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
|
|
25
|
+
return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
var __awaiter =
|
|
28
|
+
(this && this.__awaiter) ||
|
|
29
|
+
function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) {
|
|
31
|
+
return value instanceof P
|
|
32
|
+
? value
|
|
33
|
+
: new P(function (resolve) {
|
|
34
|
+
resolve(value);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) {
|
|
39
|
+
try {
|
|
40
|
+
step(generator.next(value));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
reject(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function rejected(value) {
|
|
46
|
+
try {
|
|
47
|
+
step(generator['throw'](value));
|
|
48
|
+
} catch (e) {
|
|
49
|
+
reject(e);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function step(result) {
|
|
53
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
54
|
+
}
|
|
55
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var __importDefault =
|
|
59
|
+
(this && this.__importDefault) ||
|
|
60
|
+
function (mod) {
|
|
61
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
24
64
|
exports.Install = void 0;
|
|
25
|
-
const execa_1 = __importDefault(require(
|
|
26
|
-
const utils_1 = require(
|
|
65
|
+
const execa_1 = __importDefault(require('execa'));
|
|
66
|
+
const utils_1 = require('../../utils');
|
|
27
67
|
class Install {
|
|
28
68
|
description() {
|
|
29
69
|
return 'install project dependencies';
|
|
@@ -39,10 +79,15 @@ class Install {
|
|
|
39
79
|
}
|
|
40
80
|
}
|
|
41
81
|
exports.Install = Install;
|
|
42
|
-
__decorate(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
82
|
+
__decorate(
|
|
83
|
+
[
|
|
84
|
+
utils_1.logErrors,
|
|
85
|
+
__metadata('design:type', Function),
|
|
86
|
+
__metadata('design:paramtypes', []),
|
|
87
|
+
__metadata('design:returntype', Promise),
|
|
88
|
+
],
|
|
89
|
+
Install.prototype,
|
|
90
|
+
'execute',
|
|
91
|
+
null
|
|
92
|
+
);
|
|
93
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -1,30 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r =
|
|
7
|
+
c < 3
|
|
8
|
+
? target
|
|
9
|
+
: desc === null
|
|
10
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
11
|
+
: desc,
|
|
12
|
+
d;
|
|
13
|
+
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
|
|
14
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
else
|
|
16
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
17
|
+
if ((d = decorators[i]))
|
|
18
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
var __metadata =
|
|
22
|
+
(this && this.__metadata) ||
|
|
23
|
+
function (k, v) {
|
|
24
|
+
if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
|
|
25
|
+
return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
var __awaiter =
|
|
28
|
+
(this && this.__awaiter) ||
|
|
29
|
+
function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) {
|
|
31
|
+
return value instanceof P
|
|
32
|
+
? value
|
|
33
|
+
: new P(function (resolve) {
|
|
34
|
+
resolve(value);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) {
|
|
39
|
+
try {
|
|
40
|
+
step(generator.next(value));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
reject(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function rejected(value) {
|
|
46
|
+
try {
|
|
47
|
+
step(generator['throw'](value));
|
|
48
|
+
} catch (e) {
|
|
49
|
+
reject(e);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function step(result) {
|
|
53
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
54
|
+
}
|
|
55
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var __importDefault =
|
|
59
|
+
(this && this.__importDefault) ||
|
|
60
|
+
function (mod) {
|
|
61
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
24
64
|
exports.kendoUILicense = exports.KendoUILicense = void 0;
|
|
25
|
-
const execa_1 = __importDefault(require(
|
|
26
|
-
const utils_1 = require(
|
|
27
|
-
const utils_2 = require(
|
|
65
|
+
const execa_1 = __importDefault(require('execa'));
|
|
66
|
+
const utils_1 = require('../../utils');
|
|
67
|
+
const utils_2 = require('../utils');
|
|
28
68
|
const ENCODED_LICENSE = `
|
|
29
69
|
ZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1Y0NJNklreEpReUo5LmV5SndjbTlrZFdOMGN5STZXM3Np
|
|
30
70
|
ZEhKcFlXd2lPbVpoYkhObExDSmpiMlJsSWpvaVMwVk9SRTlWU1ZKRlFVTlVJaXdpYkdsalpXNXpa
|
|
@@ -66,32 +106,39 @@ class KendoUILicense {
|
|
|
66
106
|
const env = !process.env[ENVIRONMENT_VARIABLE]
|
|
67
107
|
? { [ENVIRONMENT_VARIABLE]: LICENSE }
|
|
68
108
|
: undefined;
|
|
69
|
-
utils_1.log.info(
|
|
70
|
-
|
|
71
|
-
|
|
109
|
+
utils_1.log.info(
|
|
110
|
+
env
|
|
111
|
+
? 'Activating Kendo UI with embedded license...'
|
|
112
|
+
: `Activating Kendo UI with license from environment...`
|
|
113
|
+
);
|
|
72
114
|
try {
|
|
73
|
-
yield (0,
|
|
115
|
+
yield (0,
|
|
116
|
+
execa_1.default)('npx', ['kendo-ui-license', 'activate', '--no-install'], {
|
|
74
117
|
env,
|
|
75
118
|
stdio: 'inherit',
|
|
76
119
|
});
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
120
|
+
} catch (error) {
|
|
79
121
|
throw new Error(`command failed with exit code ${error.exitCode}`);
|
|
80
122
|
}
|
|
81
123
|
});
|
|
82
124
|
}
|
|
83
125
|
}
|
|
84
126
|
exports.KendoUILicense = KendoUILicense;
|
|
85
|
-
__decorate(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
127
|
+
__decorate(
|
|
128
|
+
[
|
|
129
|
+
utils_1.logErrors,
|
|
130
|
+
__metadata('design:type', Function),
|
|
131
|
+
__metadata('design:paramtypes', []),
|
|
132
|
+
__metadata('design:returntype', Promise),
|
|
133
|
+
],
|
|
134
|
+
KendoUILicense.prototype,
|
|
135
|
+
'activateLicense',
|
|
136
|
+
null
|
|
137
|
+
);
|
|
91
138
|
function kendoUILicense() {
|
|
92
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
140
|
return new KendoUILicense().execute();
|
|
94
141
|
});
|
|
95
142
|
}
|
|
96
143
|
exports.kendoUILicense = kendoUILicense;
|
|
97
|
-
//# sourceMappingURL=kendo-ui-license.js.map
|
|
144
|
+
//# sourceMappingURL=kendo-ui-license.js.map
|