nativescript 9.0.0-alpha.0 → 9.0.0-alpha.10
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/config/test-deps-versions-generated.json +16 -1
- package/lib/.d.ts +3 -3
- package/lib/bootstrap.js +1 -1
- package/lib/color.js +38 -7
- package/lib/commands/clean.js +1 -2
- package/lib/commands/embedding/embed.js +1 -1
- package/lib/commands/post-install.js +2 -2
- package/lib/commands/typings.js +12 -12
- package/lib/common/header.js +3 -3
- package/lib/common/logger/layouts/cli-layout.js +1 -1
- package/lib/common/logger/logger.js +2 -2
- package/lib/common/mobile/android/android-emulator-services.js +9 -7
- package/lib/common/mobile/device-log-provider.js +3 -4
- package/lib/common/mobile/emulator-helper.js +1 -0
- package/lib/common/services/hooks-service.js +23 -6
- package/lib/common/verify-node-version.js +1 -1
- package/lib/constants.js +6 -4
- package/lib/controllers/migrate-controller.js +3 -4
- package/lib/controllers/prepare-controller.js +9 -9
- package/lib/definitions/project.d.ts +19 -1
- package/lib/definitions/temp-service.d.ts +6 -2
- package/lib/helpers/key-command-helper.js +2 -1
- package/lib/project-data.js +10 -4
- package/lib/services/analytics-settings-service.js +2 -1
- package/lib/services/bundler/bundler-compiler-service.js +641 -0
- package/lib/services/bundler/bundler.js +2 -0
- package/lib/services/ios/spm-service.js +1 -1
- package/lib/services/livesync/android-livesync-tool.js +3 -1
- package/lib/services/temp-service.js +16 -4
- package/package.json +28 -33
- package/vendor/gradle-plugin/build.gradle +3 -3
- package/lib/services/webpack/webpack-compiler-service.js +0 -396
- package/lib/services/webpack/webpack.d.ts +0 -226
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const color_1 = require("../color");
|
|
4
|
+
const node_util_1 = require("node:util");
|
|
4
5
|
const yok_1 = require("../common/yok");
|
|
5
6
|
class KeyCommandHelper {
|
|
6
7
|
constructor() {
|
|
@@ -33,7 +34,7 @@ class KeyCommandHelper {
|
|
|
33
34
|
}
|
|
34
35
|
if (keyCommand.key !== "\u0003") {
|
|
35
36
|
const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
|
|
36
|
-
const lineLength = (0,
|
|
37
|
+
const lineLength = (0, node_util_1.stripVTControlCharacters)(line).length - 1;
|
|
37
38
|
console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
|
|
38
39
|
console.log(line + color_1.color.dim(" │"));
|
|
39
40
|
console.log(color_1.color.dim(` └${"─".repeat(lineLength)}┘`));
|
package/lib/project-data.js
CHANGED
|
@@ -56,6 +56,7 @@ class ProjectData {
|
|
|
56
56
|
this.errorInvalidProject(projectDir);
|
|
57
57
|
}
|
|
58
58
|
initializeProjectDataFromContent(packageJsonContent, projectDir) {
|
|
59
|
+
var _a, _b;
|
|
59
60
|
projectDir = projectDir || this.$projectHelper.projectDir || "";
|
|
60
61
|
this.projectDir = projectDir;
|
|
61
62
|
const projectFilePath = this.getProjectFilePath(projectDir);
|
|
@@ -92,10 +93,15 @@ class ProjectData {
|
|
|
92
93
|
this.buildXcconfigPath = path.join(this.appResourcesDirectoryPath, this.$devicePlatformsConstants.iOS, constants.BUILD_XCCONFIG_FILE_NAME);
|
|
93
94
|
this.podfilePath = path.join(this.appResourcesDirectoryPath, this.$devicePlatformsConstants.iOS, constants.PODFILE_NAME);
|
|
94
95
|
this.isShared = !!(this.nsConfig && this.nsConfig.shared);
|
|
95
|
-
this.webpackConfigPath
|
|
96
|
-
this.
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
const webpackConfigPath = this.nsConfig && this.nsConfig.webpackConfigPath
|
|
97
|
+
? path.resolve(this.projectDir, this.nsConfig.webpackConfigPath)
|
|
98
|
+
: path.join(this.projectDir, "webpack.config.js");
|
|
99
|
+
this.webpackConfigPath = webpackConfigPath;
|
|
100
|
+
this.bundlerConfigPath =
|
|
101
|
+
this.nsConfig && this.nsConfig.bundlerConfigPath
|
|
102
|
+
? path.resolve(this.projectDir, this.nsConfig.bundlerConfigPath)
|
|
103
|
+
: webpackConfigPath;
|
|
104
|
+
this.bundler = (_b = (_a = this === null || this === void 0 ? void 0 : this.nsConfig) === null || _a === void 0 ? void 0 : _a.bundler) !== null && _b !== void 0 ? _b : "webpack";
|
|
99
105
|
return;
|
|
100
106
|
}
|
|
101
107
|
this.errorInvalidProject(projectDir);
|
|
@@ -29,7 +29,8 @@ class AnalyticsSettingsService {
|
|
|
29
29
|
return this.getSettingValueOrDefault(this.$staticConfig.ANALYTICS_INSTALLATION_ID_SETTING_NAME);
|
|
30
30
|
}
|
|
31
31
|
getClientName() {
|
|
32
|
-
return "" +
|
|
32
|
+
return ("" +
|
|
33
|
+
color_1.color.styleText(["cyan", "bold"], this.$staticConfig.CLIENT_NAME_ALIAS));
|
|
33
34
|
}
|
|
34
35
|
async getUserSessionsCount(projectName) {
|
|
35
36
|
const sessionsCountForProject = await this.$userSettingsService.getSettingValue(this.getSessionsProjectKey(projectName));
|