nativescript 9.1.0-alpha.14 → 9.1.0-alpha.16
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/build-jekyll-md.sh +1 -1
- package/docs/man_pages/config/config-set.md +2 -0
- package/lib/android-tools-info.js +0 -12
- package/lib/base-package-manager.js +0 -7
- package/lib/bootstrap.js +1 -5
- package/lib/bun-package-manager.js +1 -14
- package/lib/color.js +0 -4
- package/lib/commands/add-platform.js +0 -1
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.js +0 -3
- package/lib/commands/build.js +3 -3
- package/lib/commands/clean.js +1 -22
- package/lib/commands/command-base.js +0 -1
- package/lib/commands/config.js +0 -5
- package/lib/commands/create-project.js +0 -6
- package/lib/commands/debug.js +2 -6
- package/lib/commands/deploy.js +3 -3
- package/lib/commands/embedding/embed.js +0 -7
- package/lib/commands/extensibility/install-extension.js +0 -1
- package/lib/commands/extensibility/list-extensions.js +0 -1
- package/lib/commands/extensibility/uninstall-extension.js +0 -1
- package/lib/commands/fonts.js +0 -1
- package/lib/commands/generate-assets.js +0 -1
- package/lib/commands/generate-help.js +0 -1
- package/lib/commands/generate.js +1 -48
- package/lib/commands/hooks/common.js +1 -2
- package/lib/commands/hooks/hooks-lock.js +0 -1
- package/lib/commands/hooks/hooks.js +0 -1
- package/lib/commands/info.js +0 -1
- package/lib/commands/install.js +0 -1
- package/lib/commands/list-platforms.js +0 -1
- package/lib/commands/migrate.js +0 -1
- package/lib/commands/native-add.js +0 -5
- package/lib/commands/platform-clean.js +0 -1
- package/lib/commands/plugin/add-plugin.js +0 -1
- package/lib/commands/plugin/build-plugin.js +0 -1
- package/lib/commands/plugin/create-plugin.js +0 -5
- package/lib/commands/plugin/list-plugins.js +0 -1
- package/lib/commands/plugin/remove-plugin.js +0 -2
- package/lib/commands/plugin/update-plugin.js +0 -1
- package/lib/commands/post-install.js +0 -6
- package/lib/commands/prepare.js +5 -5
- package/lib/commands/preview.js +0 -2
- package/lib/commands/remove-platform.js +0 -1
- package/lib/commands/resources/resources-update.js +0 -2
- package/lib/commands/run.js +0 -1
- package/lib/commands/setup.js +0 -1
- package/lib/commands/start.js +0 -1
- package/lib/commands/test-init.js +0 -4
- package/lib/commands/test.js +3 -9
- package/lib/commands/typings.js +1 -2
- package/lib/commands/update-platform.js +0 -5
- package/lib/commands/update.js +0 -2
- package/lib/commands/widget.js +0 -18
- package/lib/common/bootstrap.js +0 -1
- package/lib/common/child-process.js +0 -3
- package/lib/common/codeGeneration/code-entity.js +0 -1
- package/lib/common/codeGeneration/code-printer.js +0 -1
- package/lib/common/command-params.js +0 -1
- package/lib/common/commands/analytics.js +0 -3
- package/lib/common/commands/autocompletion.js +0 -3
- package/lib/common/commands/device/device-log-stream.js +0 -1
- package/lib/common/commands/device/get-file.js +0 -2
- package/lib/common/commands/device/list-applications.js +0 -1
- package/lib/common/commands/device/list-devices.js +0 -3
- package/lib/common/commands/device/list-files.js +0 -2
- package/lib/common/commands/device/put-file.js +0 -2
- package/lib/common/commands/device/run-application.js +0 -1
- package/lib/common/commands/device/stop-application.js +0 -1
- package/lib/common/commands/device/uninstall-application.js +0 -1
- package/lib/common/commands/doctor.js +3 -3
- package/lib/common/commands/generate-messages.js +0 -1
- package/lib/common/commands/help.js +0 -1
- package/lib/common/commands/package-manager-get.js +0 -1
- package/lib/common/commands/package-manager-set.js +0 -1
- package/lib/common/commands/post-install.js +0 -1
- package/lib/common/commands/preuninstall.js +2 -11
- package/lib/common/commands/proxy/proxy-base.js +0 -4
- package/lib/common/commands/proxy/proxy-clear.js +0 -1
- package/lib/common/commands/proxy/proxy-get.js +0 -1
- package/lib/common/commands/proxy/proxy-set.js +0 -1
- package/lib/common/common-lib.js +0 -1
- package/lib/common/constants.js +14 -12
- package/lib/common/declarations.d.ts +37 -117
- package/lib/common/decorators.js +0 -48
- package/lib/common/definitions/key-commands.js +8 -0
- package/lib/common/dispatchers.js +1 -10
- package/lib/common/enums.js +42 -0
- package/lib/common/errors.js +4 -13
- package/lib/common/file-system.js +2 -13
- package/lib/common/header.js +0 -3
- package/lib/common/helpers.js +3 -89
- package/lib/common/host-info.js +0 -4
- package/lib/common/http-client.js +0 -20
- package/lib/common/logger/appenders/cli-appender.js +0 -4
- package/lib/common/logger/appenders/emit-appender.js +0 -4
- package/lib/common/logger/layouts/cli-layout.js +0 -1
- package/lib/common/logger/logger.js +0 -5
- package/lib/common/messages/messages.js +0 -6
- package/lib/common/mobile/android/android-application-manager.js +1 -20
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
- package/lib/common/mobile/android/android-debug-bridge.js +0 -6
- package/lib/common/mobile/android/android-device-file-system.js +0 -4
- package/lib/common/mobile/android/android-device-hash-service.js +0 -3
- package/lib/common/mobile/android/android-device.js +0 -8
- package/lib/common/mobile/android/android-emulator-services.js +1 -2
- package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
- package/lib/common/mobile/android/android-log-filter.js +0 -4
- package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
- package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
- package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.js +0 -13
- package/lib/common/mobile/application-manager-base.js +0 -6
- package/lib/common/mobile/device-emitter.js +0 -4
- package/lib/common/mobile/device-log-emitter.js +0 -1
- package/lib/common/mobile/device-log-provider-base.js +0 -1
- package/lib/common/mobile/device-log-provider.js +0 -23
- package/lib/common/mobile/device-platforms-constants.js +0 -1
- package/lib/common/mobile/emulator-helper.js +0 -3
- package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
- package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
- package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
- package/lib/common/mobile/ios/device/ios-device.js +0 -4
- package/lib/common/mobile/ios/ios-device-base.js +0 -1
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
- package/lib/common/mobile/ios/ios-log-filter.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
- package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
- package/lib/common/mobile/log-filter.js +0 -2
- package/lib/common/mobile/logging-levels.js +0 -1
- package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
- package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
- package/lib/common/mobile/mobile-core/devices-service.js +0 -69
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-helper.js +0 -1
- package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
- package/lib/common/opener.js +0 -1
- package/lib/common/os-info.js +0 -1
- package/lib/common/plist-parser.js +0 -1
- package/lib/common/project-helper.js +0 -1
- package/lib/common/prompter.js +1 -9
- package/lib/common/queue.js +0 -1
- package/lib/common/resource-loader.js +0 -1
- package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.js +2 -2
- package/lib/common/services/commands-service.js +8 -17
- package/lib/common/services/help-service.js +4 -11
- package/lib/common/services/hooks-service.js +0 -13
- package/lib/common/services/ios-notification-service.js +0 -1
- package/lib/common/services/json-file-settings-service.js +0 -6
- package/lib/common/services/lock-service.js +0 -6
- package/lib/common/services/message-contract-generator.js +0 -1
- package/lib/common/services/messages-service.js +0 -1
- package/lib/common/services/micro-templating-service.js +0 -6
- package/lib/common/services/net-service.js +0 -3
- package/lib/common/services/project-files-manager.js +0 -5
- package/lib/common/services/project-files-provider-base.js +0 -1
- package/lib/common/services/proxy-service.js +0 -1
- package/lib/common/services/qr.js +0 -1
- package/lib/common/services/settings-service.js +0 -1
- package/lib/common/services/xcode-select-service.js +0 -1
- package/lib/common/utils.js +0 -1
- package/lib/common/validators/project-name-validator.js +0 -1
- package/lib/common/validators/validation-result.js +0 -1
- package/lib/common/verify-node-version.js +2 -8
- package/lib/common/yok.js +12 -32
- package/lib/config.js +1 -22
- package/lib/constants-provider.js +0 -1
- package/lib/constants.js +54 -58
- package/lib/controllers/build-controller.js +3 -4
- package/lib/controllers/debug-controller.js +3 -8
- package/lib/controllers/deploy-controller.js +0 -1
- package/lib/controllers/migrate-controller.js +4 -90
- package/lib/controllers/platform-controller.js +2 -9
- package/lib/controllers/prepare-controller.js +8 -24
- package/lib/controllers/run-controller.js +1 -81
- package/lib/controllers/update-controller-base.js +0 -1
- package/lib/controllers/update-controller.js +0 -11
- package/lib/data/build-data.js +0 -1
- package/lib/data/controller-data-base.js +0 -1
- package/lib/data/debug-data.js +0 -1
- package/lib/data/platform-data.js +0 -1
- package/lib/data/prepare-data.js +0 -1
- package/lib/data/run-data.js +0 -1
- package/lib/definitions/project.d.ts +1 -6
- package/lib/definitions/system-warnings.js +8 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
- package/lib/detached-processes/cleanup-process.js +15 -18
- package/lib/detached-processes/detached-process-enums.js +24 -0
- package/lib/detached-processes/file-log-service.js +2 -2
- package/lib/device-path-provider.js +0 -1
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
- package/lib/device-sockets/ios/notification.js +0 -3
- package/lib/device-sockets/ios/socket-request-executor.js +0 -3
- package/lib/helpers/android-bundle-validator-helper.js +1 -2
- package/lib/helpers/deploy-command-helper.js +0 -1
- package/lib/helpers/key-command-helper.js +3 -4
- package/lib/helpers/livesync-command-helper.js +2 -4
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.js +4 -3
- package/lib/helpers/package-path-helper.js +0 -1
- package/lib/helpers/platform-command-helper.js +2 -7
- package/lib/helpers/version-validator-helper.js +0 -1
- package/lib/key-commands/bootstrap.js +3 -3
- package/lib/key-commands/index.js +5 -5
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.js +2 -11
- package/lib/node/pbxproj-dom-xcode.js +0 -1
- package/lib/node/xcode.js +0 -1
- package/lib/node-package-manager.js +1 -11
- package/lib/options.js +121 -145
- package/lib/package-installation-manager.js +1 -8
- package/lib/package-manager.js +0 -2
- package/lib/platform-command-param.js +0 -1
- package/lib/pnpm-package-manager.js +1 -4
- package/lib/project-data.js +0 -12
- package/lib/providers/project-files-provider.js +0 -1
- package/lib/resolvers/livesync-service-resolver.js +0 -1
- package/lib/services/analytics/analytics-broker-process.js +8 -10
- package/lib/services/analytics/analytics-broker.js +2 -2
- package/lib/services/analytics/analytics-service.js +29 -29
- package/lib/services/analytics/google-analytics-provider.js +16 -13
- package/lib/services/analytics-settings-service.js +0 -5
- package/lib/services/android/android-bundle-tool-service.js +0 -1
- package/lib/services/android/gradle-build-args-service.js +0 -3
- package/lib/services/android/gradle-build-service.js +0 -1
- package/lib/services/android/gradle-command-service.js +0 -1
- package/lib/services/android-device-debug-service.js +0 -6
- package/lib/services/android-plugin-build-service.js +2 -31
- package/lib/services/android-project-service.js +4 -71
- package/lib/services/android-resources-migration-service.js +0 -7
- package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
- package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
- package/lib/services/assets-generation/assets-generation-service.js +13 -11
- package/lib/services/build-artifacts-service.js +1 -2
- package/lib/services/build-data-service.js +0 -1
- package/lib/services/build-info-file-service.js +0 -1
- package/lib/services/bundler/bundler-compiler-service.js +26 -157
- package/lib/services/bundler/bundler.js +0 -1
- package/lib/services/cleanup-service.js +10 -13
- package/lib/services/cocoapods-platform-manager.js +0 -9
- package/lib/services/cocoapods-service.js +1 -21
- package/lib/services/debug-data-service.js +0 -1
- package/lib/services/debug-service-base.js +0 -7
- package/lib/services/device/device-install-app-service.js +1 -2
- package/lib/services/doctor-service.js +6 -21
- package/lib/services/extensibility-service.js +0 -8
- package/lib/services/files-hash-service.js +0 -1
- package/lib/services/hmr-status-service.js +0 -2
- package/lib/services/info-service.js +0 -1
- package/lib/services/initialize-service.js +2 -5
- package/lib/services/ios/export-options-plist-service.js +0 -4
- package/lib/services/ios/ios-signing-service.js +0 -4
- package/lib/services/ios/spm-service.js +10 -120
- package/lib/services/ios/xcodebuild-args-service.js +0 -29
- package/lib/services/ios/xcodebuild-command-service.js +0 -3
- package/lib/services/ios/xcodebuild-service.js +1 -2
- package/lib/services/ios-debugger-port-service.js +0 -1
- package/lib/services/ios-device-debug-service.js +0 -1
- package/lib/services/ios-entitlements-service.js +0 -1
- package/lib/services/ios-extensions-service.js +0 -1
- package/lib/services/ios-log-filter.js +0 -20
- package/lib/services/ios-native-target-service.js +5 -6
- package/lib/services/ios-project-service.js +7 -133
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.js +10 -60
- package/lib/services/ip-service.js +0 -2
- package/lib/services/itmstransporter-service.js +0 -1
- package/lib/services/karma-execution.js +0 -2
- package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
- package/lib/services/livesync/android-device-livesync-service.js +0 -2
- package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
- package/lib/services/livesync/android-livesync-service.js +0 -1
- package/lib/services/livesync/android-livesync-tool.js +0 -4
- package/lib/services/livesync/device-livesync-service-base.js +0 -2
- package/lib/services/livesync/ios-device-livesync-service.js +0 -7
- package/lib/services/livesync/ios-livesync-service.js +0 -55
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.js +0 -5
- package/lib/services/livesync-process-data-service.js +0 -1
- package/lib/services/log-parser-service.js +0 -1
- package/lib/services/log-source-map-service.js +0 -15
- package/lib/services/marking-mode-service.js +10 -8
- package/lib/services/metadata-filtering-service.js +0 -1
- package/lib/services/npm-config-service.js +0 -4
- package/lib/services/pacote-service.js +0 -7
- package/lib/services/performance-service.js +2 -3
- package/lib/services/platform/add-platform-service.js +2 -49
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.js +3 -5
- package/lib/services/platform-environment-requirements.js +4 -8
- package/lib/services/platform-project-service-base.js +0 -1
- package/lib/services/platforms-data-service.js +0 -1
- package/lib/services/plugins-service.js +2 -20
- package/lib/services/prepare-data-service.js +0 -1
- package/lib/services/project-backup-service.js +0 -4
- package/lib/services/project-changes-service.js +3 -14
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.js +2 -21
- package/lib/services/project-data-service.js +7 -36
- package/lib/services/project-name-service.js +0 -1
- package/lib/services/project-service.js +0 -10
- package/lib/services/project-templates-service.js +2 -3
- package/lib/services/qr-code-terminal-service.js +0 -1
- package/lib/services/require-service.js +0 -1
- package/lib/services/start-service.js +0 -1
- package/lib/services/temp-service.js +0 -3
- package/lib/services/terminal-spinner-service.js +0 -2
- package/lib/services/test-execution-service.js +3 -9
- package/lib/services/test-initialization-service.js +0 -4
- package/lib/services/timeline-profiler-service.js +0 -1
- package/lib/services/user-settings-service.js +0 -1
- package/lib/services/versions-service.js +5 -6
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/xcconfig-service.js +45 -12
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.js +2 -2
- package/lib/tools/config-manipulation/config-transformer.js +0 -12
- package/lib/tools/node-modules/node-modules-builder.js +0 -1
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
- package/lib/yarn-package-manager.js +0 -1
- package/lib/yarn2-package-manager.js +0 -3
- package/package.json +9 -20
- package/lib/.d.ts +0 -504
- package/lib/common/definitions/key-commands.d.ts +0 -62
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +0 -16
- package/lib/definitions/system-warnings.d.ts +0 -4
- package/lib/detached-processes/detached-process-enums.d.ts +0 -70
- package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
|
@@ -64,15 +64,11 @@ class ProjectService {
|
|
|
64
64
|
appId: appId,
|
|
65
65
|
projectName,
|
|
66
66
|
});
|
|
67
|
-
// can pass --no-git to skip creating a git repo
|
|
68
|
-
// useful in monorepos where we're creating
|
|
69
|
-
// sub projects in an existing git repo.
|
|
70
67
|
if (this.$options.git) {
|
|
71
68
|
try {
|
|
72
69
|
if (!this.$options.force) {
|
|
73
70
|
const git = (0, simple_git_1.default)(projectDir);
|
|
74
71
|
if (await git.checkIsRepo()) {
|
|
75
|
-
// throwing here since we're catching below.
|
|
76
72
|
throw new Error("Already part of a git repository.");
|
|
77
73
|
}
|
|
78
74
|
}
|
|
@@ -112,7 +108,6 @@ class ProjectService {
|
|
|
112
108
|
this.alterPackageJsonData(projectCreationSettings);
|
|
113
109
|
this.$projectConfigService.writeDefaultConfig(projectDir, appId);
|
|
114
110
|
await this.ensureAppResourcesExist(projectDir);
|
|
115
|
-
// Install devDependencies and execute all scripts:
|
|
116
111
|
await this.$packageManager.install(projectDir, projectDir, {
|
|
117
112
|
disableNpmInstall: false,
|
|
118
113
|
frameworkPath: null,
|
|
@@ -142,7 +137,6 @@ class ProjectService {
|
|
|
142
137
|
this.$logger.trace("Project does not have App_Resources - fetching from default template.");
|
|
143
138
|
this.$fs.createDirectory(appResourcesDestinationPath);
|
|
144
139
|
const tempDir = await this.$tempService.mkdirSync("ns-default-template");
|
|
145
|
-
// the template installed doesn't have App_Resources -> get from a default template
|
|
146
140
|
await this.$pacoteService.extractPackage(constants.RESERVED_TEMPLATE_NAMES["default"], tempDir);
|
|
147
141
|
const templateProjectData = this.$projectDataService.getProjectData(tempDir);
|
|
148
142
|
const templateAppResourcesDir = templateProjectData.getAppResourcesDirectoryPath(tempDir);
|
|
@@ -153,14 +147,12 @@ class ProjectService {
|
|
|
153
147
|
const { projectDir, projectName } = projectCreationSettings;
|
|
154
148
|
const projectFilePath = path.join(projectDir, this.$staticConfig.PROJECT_FILE_NAME);
|
|
155
149
|
let packageJsonData = this.$fs.readJson(projectFilePath);
|
|
156
|
-
// clean up keys from the template package.json that we don't care about.
|
|
157
150
|
Object.keys(packageJsonData).forEach((key) => {
|
|
158
151
|
if (key.startsWith("_") ||
|
|
159
152
|
constants.TemplatesV2PackageJsonKeysToRemove.includes(key)) {
|
|
160
153
|
delete packageJsonData[key];
|
|
161
154
|
}
|
|
162
155
|
});
|
|
163
|
-
// this is used to ensure the order of keys is consistent, the blanks are filled in from the template
|
|
164
156
|
const packageJsonSchema = {
|
|
165
157
|
name: projectName,
|
|
166
158
|
main: "",
|
|
@@ -168,7 +160,6 @@ class ProjectService {
|
|
|
168
160
|
private: true,
|
|
169
161
|
dependencies: {},
|
|
170
162
|
devDependencies: {},
|
|
171
|
-
// anythign else would go below
|
|
172
163
|
};
|
|
173
164
|
packageJsonData = Object.assign(packageJsonSchema, packageJsonData);
|
|
174
165
|
this.$fs.writeJson(projectFilePath, packageJsonData);
|
|
@@ -192,4 +183,3 @@ __decorate([
|
|
|
192
183
|
(0, decorators_2.performanceLog)()
|
|
193
184
|
], ProjectService.prototype, "alterPackageJsonData", null);
|
|
194
185
|
yok_1.injector.register("projectService", ProjectService);
|
|
195
|
-
//# sourceMappingURL=project-service.js.map
|
|
@@ -40,12 +40,12 @@ class ProjectTemplatesService {
|
|
|
40
40
|
const templateNameToBeTracked = this.getTemplateNameToBeTracked(templateValue, templatePackageJsonContent);
|
|
41
41
|
if (templateNameToBeTracked) {
|
|
42
42
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
43
|
-
action:
|
|
43
|
+
action: constants.TrackActionNames.CreateProject,
|
|
44
44
|
isForDevice: null,
|
|
45
45
|
additionalData: templateNameToBeTracked,
|
|
46
46
|
});
|
|
47
47
|
await this.$analyticsService.trackEventActionInGoogleAnalytics({
|
|
48
|
-
action:
|
|
48
|
+
action: constants.TrackActionNames.UsingTemplate,
|
|
49
49
|
additionalData: templateNameToBeTracked,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -97,4 +97,3 @@ __decorate([
|
|
|
97
97
|
(0, decorators_1.performanceLog)()
|
|
98
98
|
], ProjectTemplatesService.prototype, "prepareTemplate", null);
|
|
99
99
|
yok_1.injector.register("projectTemplatesService", ProjectTemplatesService);
|
|
100
|
-
//# sourceMappingURL=project-templates-service.js.map
|
|
@@ -8,14 +8,12 @@ const yok_1 = require("../common/yok");
|
|
|
8
8
|
class TempService {
|
|
9
9
|
constructor($cleanupService) {
|
|
10
10
|
this.$cleanupService = $cleanupService;
|
|
11
|
-
// no-op
|
|
12
11
|
}
|
|
13
12
|
async mkdirSync(affixes) {
|
|
14
13
|
var _a;
|
|
15
14
|
const opts = typeof affixes === "string" ? { prefix: affixes } : affixes;
|
|
16
15
|
const baseDir = (opts === null || opts === void 0 ? void 0 : opts.dir) ? opts.dir : (0, os_1.tmpdir)();
|
|
17
16
|
const prefix = ((_a = opts === null || opts === void 0 ? void 0 : opts.prefix) !== null && _a !== void 0 ? _a : "ns-").replace(/\s+/g, "-");
|
|
18
|
-
// fs.mkdtempSync requires the full path prefix
|
|
19
17
|
const pathToDir = fs.mkdtempSync(path.join(baseDir, prefix));
|
|
20
18
|
await this.$cleanupService.addCleanupDeleteAction(pathToDir);
|
|
21
19
|
return pathToDir;
|
|
@@ -35,4 +33,3 @@ class TempService {
|
|
|
35
33
|
}
|
|
36
34
|
exports.TempService = TempService;
|
|
37
35
|
yok_1.injector.register("tempService", TempService);
|
|
38
|
-
//# sourceMappingURL=temp-service.js.map
|
|
@@ -5,7 +5,6 @@ const ora = require("ora");
|
|
|
5
5
|
const yok_1 = require("../common/yok");
|
|
6
6
|
class TerminalSpinnerService {
|
|
7
7
|
createSpinner(spinnerOptions = {}) {
|
|
8
|
-
// @ts-expect-error - options are readonly, however we still want to override them before passing them on...
|
|
9
8
|
spinnerOptions.stream = spinnerOptions.stream || process.stdout;
|
|
10
9
|
return ora(spinnerOptions);
|
|
11
10
|
}
|
|
@@ -26,4 +25,3 @@ class TerminalSpinnerService {
|
|
|
26
25
|
}
|
|
27
26
|
exports.TerminalSpinnerService = TerminalSpinnerService;
|
|
28
27
|
yok_1.injector.register("terminalSpinnerService", TerminalSpinnerService);
|
|
29
|
-
//# sourceMappingURL=terminal-spinner-service.js.map
|
|
@@ -4,6 +4,7 @@ exports.TestExecutionService = void 0;
|
|
|
4
4
|
const constants = require("../constants");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const os = require("os");
|
|
7
|
+
const enums_1 = require("../common/enums");
|
|
7
8
|
const _ = require("lodash");
|
|
8
9
|
const yok_1 = require("../common/yok");
|
|
9
10
|
const package_path_helper_1 = require("../helpers/package-path-helper");
|
|
@@ -24,10 +25,8 @@ class TestExecutionService {
|
|
|
24
25
|
platform = platform.toLowerCase();
|
|
25
26
|
this.platform = platform;
|
|
26
27
|
const projectData = this.$projectDataService.getProjectData(liveSyncInfo.projectDir);
|
|
27
|
-
// We need the dependencies installed here, so we can start the Karma server.
|
|
28
28
|
await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
|
|
29
29
|
const karmaConfig = this.getKarmaConfiguration(platform, projectData);
|
|
30
|
-
// In case you want to debug the unit test runner, add "--inspect-brk=<port>" as a first element in the array of args.
|
|
31
30
|
const karmaRunner = this.$childProcess.spawn(process.execPath, [path.join(__dirname, "karma-execution.js")], { stdio: ["inherit", "inherit", "inherit", "ipc"] });
|
|
32
31
|
const launchKarmaTests = async (karmaData) => {
|
|
33
32
|
this.$logger.trace("## Unit-testing: Parent process received message", karmaData);
|
|
@@ -44,8 +43,6 @@ class TestExecutionService {
|
|
|
44
43
|
const configJs = this.generateConfig(port, configOptions);
|
|
45
44
|
this.$fs.writeFile(path.join(liveSyncInfo.projectDir, TestExecutionService.CONFIG_FILE_NAME), configJs);
|
|
46
45
|
}
|
|
47
|
-
// Prepare the project AFTER the TestExecutionService.CONFIG_FILE_NAME file is created in node_modules
|
|
48
|
-
// so it will be sent to device.
|
|
49
46
|
await this.$runController.run({
|
|
50
47
|
liveSyncInfo,
|
|
51
48
|
deviceDescriptors,
|
|
@@ -58,13 +55,12 @@ class TestExecutionService {
|
|
|
58
55
|
}
|
|
59
56
|
launchKarmaTests(karmaData).catch((result) => {
|
|
60
57
|
this.$logger.error(result);
|
|
61
|
-
process.exit(
|
|
58
|
+
process.exit(enums_1.ErrorCodes.KARMA_FAIL);
|
|
62
59
|
});
|
|
63
60
|
});
|
|
64
61
|
return new Promise((resolve, reject) => {
|
|
65
62
|
karmaRunner.on("exit", (exitCode) => {
|
|
66
63
|
if (exitCode !== 0) {
|
|
67
|
-
//End our process with a non-zero exit code
|
|
68
64
|
const testError = new Error("Test run failed.");
|
|
69
65
|
reject(testError);
|
|
70
66
|
}
|
|
@@ -77,7 +73,7 @@ class TestExecutionService {
|
|
|
77
73
|
}
|
|
78
74
|
async canStartKarmaServer(projectData) {
|
|
79
75
|
let canStartKarmaServer = true;
|
|
80
|
-
const requiredDependencies = ["@nativescript/unit-test-runner"];
|
|
76
|
+
const requiredDependencies = ["@nativescript/unit-test-runner"];
|
|
81
77
|
_.each(requiredDependencies, (dep) => {
|
|
82
78
|
if (!projectData.dependencies[dep] && !projectData.devDependencies[dep]) {
|
|
83
79
|
canStartKarmaServer = false;
|
|
@@ -126,7 +122,6 @@ class TestExecutionService {
|
|
|
126
122
|
karmaConfig.logLevel = "DEBUG";
|
|
127
123
|
}
|
|
128
124
|
if (!this.$options.watch) {
|
|
129
|
-
// Setting singleRun to true will automatically start the tests when new browser (device in our case) is registered in karma.
|
|
130
125
|
karmaConfig.singleRun = true;
|
|
131
126
|
}
|
|
132
127
|
if (this.$options.debugBrk) {
|
|
@@ -145,4 +140,3 @@ exports.TestExecutionService = TestExecutionService;
|
|
|
145
140
|
TestExecutionService.CONFIG_FILE_NAME = `node_modules/${constants.TEST_RUNNER_NAME}/config.js`;
|
|
146
141
|
TestExecutionService.SOCKETIO_JS_FILE_NAME = `node_modules/${constants.TEST_RUNNER_NAME}/socket.io.js`;
|
|
147
142
|
yok_1.injector.register("testExecutionService", TestExecutionService);
|
|
148
|
-
//# sourceMappingURL=test-execution-service.js.map
|
|
@@ -34,9 +34,6 @@ class TestInitializationService {
|
|
|
34
34
|
});
|
|
35
35
|
return targetFrameworkDependencies;
|
|
36
36
|
}
|
|
37
|
-
/**
|
|
38
|
-
* This method is used from test-init.md file so it is not allowed to use "this" inside the method's body.
|
|
39
|
-
*/
|
|
40
37
|
getFrameworkNames() {
|
|
41
38
|
const configsPath = path.join(__dirname, "..", "..", "config");
|
|
42
39
|
const dependenciesPath = path.join(configsPath, "test-dependencies.json");
|
|
@@ -55,4 +52,3 @@ __decorate([
|
|
|
55
52
|
(0, decorators_1.cache)()
|
|
56
53
|
], TestInitializationService.prototype, "getFrameworkNames", null);
|
|
57
54
|
yok_1.injector.register("testInitializationService", TestInitializationService);
|
|
58
|
-
//# sourceMappingURL=test-initialization-service.js.map
|
|
@@ -7,6 +7,7 @@ const semver = require("semver");
|
|
|
7
7
|
const path = require("path");
|
|
8
8
|
const _ = require("lodash");
|
|
9
9
|
const yok_1 = require("../common/yok");
|
|
10
|
+
const constants_1 = require("../constants");
|
|
10
11
|
var VersionInformationType;
|
|
11
12
|
(function (VersionInformationType) {
|
|
12
13
|
VersionInformationType["UpToDate"] = "UpToDate";
|
|
@@ -47,7 +48,6 @@ class VersionsService {
|
|
|
47
48
|
const tnsCoreModulesPath = path.join(nodeModulesPath, constants.TNS_CORE_MODULES_NAME);
|
|
48
49
|
const dependsOnNonScopedPackage = !!this.projectData.dependencies[constants.TNS_CORE_MODULES_NAME];
|
|
49
50
|
const dependsOnScopedPackage = !!this.projectData.dependencies[constants.SCOPED_TNS_CORE_MODULES];
|
|
50
|
-
// ensure the dependencies are installed, so we can get their actual versions from node_modules
|
|
51
51
|
if (!this.$fs.exists(nodeModulesPath) ||
|
|
52
52
|
(dependsOnNonScopedPackage && !this.$fs.exists(tnsCoreModulesPath)) ||
|
|
53
53
|
(dependsOnScopedPackage && !this.$fs.exists(scopedPackagePath))) {
|
|
@@ -74,16 +74,16 @@ class VersionsService {
|
|
|
74
74
|
return versionInformations;
|
|
75
75
|
}
|
|
76
76
|
async getRuntimesVersions(platform) {
|
|
77
|
-
const iosRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir,
|
|
78
|
-
const androidRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir,
|
|
77
|
+
const iosRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, constants.PlatformTypes.ios);
|
|
78
|
+
const androidRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, constants.PlatformTypes.android);
|
|
79
79
|
let runtimes = [];
|
|
80
80
|
if (!platform) {
|
|
81
81
|
runtimes = [iosRuntime, androidRuntime];
|
|
82
82
|
}
|
|
83
|
-
else if (platform ===
|
|
83
|
+
else if (platform === constants_1.PlatformTypes.ios) {
|
|
84
84
|
runtimes.push(iosRuntime);
|
|
85
85
|
}
|
|
86
|
-
else if (platform ===
|
|
86
|
+
else if (platform === constants_1.PlatformTypes.android) {
|
|
87
87
|
runtimes.push(androidRuntime);
|
|
88
88
|
}
|
|
89
89
|
const runtimesVersions = await Promise.all(runtimes.map(async (runtime) => {
|
|
@@ -176,4 +176,3 @@ VersionsService.UP_TO_DATE_MESSAGE = "up to date";
|
|
|
176
176
|
VersionsService.UPDATE_AVAILABLE_MESSAGE = "Update available";
|
|
177
177
|
VersionsService.NOT_INSTALLED_MESSAGE = "not installed";
|
|
178
178
|
yok_1.injector.register("versionsService", VersionsService);
|
|
179
|
-
//# sourceMappingURL=versions-service.js.map
|
|
@@ -5,9 +5,10 @@ const path = require("path");
|
|
|
5
5
|
const constants_1 = require("../common/constants");
|
|
6
6
|
const yok_1 = require("../common/yok");
|
|
7
7
|
class XcconfigService {
|
|
8
|
-
constructor($childProcess, $fs) {
|
|
8
|
+
constructor($childProcess, $fs, $logger) {
|
|
9
9
|
this.$childProcess = $childProcess;
|
|
10
10
|
this.$fs = $fs;
|
|
11
|
+
this.$logger = $logger;
|
|
11
12
|
}
|
|
12
13
|
getPluginsXcconfigFilePaths(projectRoot) {
|
|
13
14
|
return {
|
|
@@ -25,16 +26,49 @@ class XcconfigService {
|
|
|
25
26
|
if (!this.$fs.exists(destinationFile)) {
|
|
26
27
|
this.$fs.writeFile(destinationFile, "");
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
userConfig = Xcodeproj::Config.new(
|
|
32
|
-
existingConfig = Xcodeproj::Config.new(
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
const mergeScript = `require 'xcodeproj'
|
|
30
|
+
require 'json'
|
|
31
|
+
destination, source = ARGV
|
|
32
|
+
userConfig = Xcodeproj::Config.new(destination)
|
|
33
|
+
existingConfig = Xcodeproj::Config.new(source)
|
|
34
|
+
conflicts = []
|
|
35
|
+
userConfig.attributes.each do |key, kept|
|
|
36
|
+
if existingConfig.attributes.key?(key)
|
|
37
|
+
ignored = existingConfig.attributes[key]
|
|
38
|
+
conflicts << { 'key' => key, 'kept' => kept.to_s, 'ignored' => ignored.to_s } if ignored.to_s != kept.to_s
|
|
39
|
+
existingConfig.attributes.delete(key)
|
|
40
|
+
end
|
|
35
41
|
end
|
|
36
|
-
userConfig.merge(existingConfig).save_as(Pathname.new(
|
|
37
|
-
|
|
42
|
+
userConfig.merge(existingConfig).save_as(Pathname.new(destination))
|
|
43
|
+
print '${XcconfigService.CONFLICT_MARKER}' + JSON.generate(conflicts)`;
|
|
44
|
+
const output = await this.$childProcess.execFile("ruby", [
|
|
45
|
+
"-e",
|
|
46
|
+
mergeScript,
|
|
47
|
+
destinationFile,
|
|
48
|
+
sourceFile,
|
|
49
|
+
]);
|
|
50
|
+
this.warnAboutConflicts(sourceFile, output);
|
|
51
|
+
}
|
|
52
|
+
warnAboutConflicts(sourceFile, output) {
|
|
53
|
+
const text = output === null || output === undefined ? "" : `${output}`;
|
|
54
|
+
const markerIndex = text.lastIndexOf(XcconfigService.CONFLICT_MARKER);
|
|
55
|
+
if (markerIndex === -1) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
let conflicts;
|
|
59
|
+
try {
|
|
60
|
+
conflicts = JSON.parse(text.substring(markerIndex + XcconfigService.CONFLICT_MARKER.length));
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
this.$logger.trace(`Unable to read xcconfig conflicts for ${sourceFile}: ${err}`);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
for (const conflict of conflicts || []) {
|
|
67
|
+
this.$logger.warn(`Ignoring ${conflict.key} = ${conflict.ignored} from ${sourceFile}: ` +
|
|
68
|
+
`already set to ${conflict.kept} by a higher precedence xcconfig. ` +
|
|
69
|
+
`The app's App_Resources xcconfig is applied first, then each ` +
|
|
70
|
+
`plugin's in dependency order.`);
|
|
71
|
+
}
|
|
38
72
|
}
|
|
39
73
|
readPropertyValue(xcconfigFilePath, propertyName) {
|
|
40
74
|
if (this.$fs.exists(xcconfigFilePath)) {
|
|
@@ -55,7 +89,6 @@ class XcconfigService {
|
|
|
55
89
|
}
|
|
56
90
|
});
|
|
57
91
|
if (isPropertyParsed) {
|
|
58
|
-
// property can be an empty string, so we don't check for that.
|
|
59
92
|
return property;
|
|
60
93
|
}
|
|
61
94
|
}
|
|
@@ -63,5 +96,5 @@ class XcconfigService {
|
|
|
63
96
|
}
|
|
64
97
|
}
|
|
65
98
|
exports.XcconfigService = XcconfigService;
|
|
99
|
+
XcconfigService.CONFLICT_MARKER = "NS_XCCONFIG_CONFLICTS:";
|
|
66
100
|
yok_1.injector.register("xcconfigService", XcconfigService);
|
|
67
|
-
//# sourceMappingURL=xcconfig-service.js.map
|
package/lib/shared-event-bus.js
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const events_1 = require("events");
|
|
4
4
|
const yok_1 = require("./common/yok");
|
|
5
|
-
/**
|
|
6
|
-
* Event Bus used by different services to emit state changes and
|
|
7
|
-
* allow listening for these state changes without needing a reference
|
|
8
|
-
* to the emitting service.
|
|
9
|
-
*/
|
|
10
5
|
class SharedEventBus extends events_1.EventEmitter {
|
|
11
6
|
}
|
|
12
7
|
yok_1.injector.register("sharedEventBus", SharedEventBus);
|
|
13
|
-
//# sourceMappingURL=shared-event-bus.js.map
|
package/lib/sys-info.js
CHANGED
|
@@ -15,6 +15,7 @@ const verify_node_version_1 = require("./common/verify-node-version");
|
|
|
15
15
|
const decorators_1 = require("./common/decorators");
|
|
16
16
|
const semver = require("semver");
|
|
17
17
|
const yok_1 = require("./common/yok");
|
|
18
|
+
const system_warnings_1 = require("./definitions/system-warnings");
|
|
18
19
|
class SysInfo {
|
|
19
20
|
constructor($fs, $hostInfo) {
|
|
20
21
|
this.$fs = $fs;
|
|
@@ -79,7 +80,7 @@ class SysInfo {
|
|
|
79
80
|
if (macOSVersion && macOSVersion < constants_1.MacOSVersions.HighSierra) {
|
|
80
81
|
return {
|
|
81
82
|
message: (0, util_1.format)(constants_1.MacOSDeprecationStringFormat, macOSVersion),
|
|
82
|
-
severity:
|
|
83
|
+
severity: system_warnings_1.SystemWarningsSeverity.high,
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
return null;
|
|
@@ -101,4 +102,3 @@ __decorate([
|
|
|
101
102
|
(0, decorators_1.exported)("sysInfo")
|
|
102
103
|
], SysInfo.prototype, "getSupportedNodeVersionRange", null);
|
|
103
104
|
yok_1.injector.register("sysInfo", SysInfo);
|
|
104
|
-
//# sourceMappingURL=sys-info.js.map
|
|
@@ -55,7 +55,6 @@ class ConfigTransformer {
|
|
|
55
55
|
const parts = key.split(".");
|
|
56
56
|
const name = parts.shift();
|
|
57
57
|
const property = this.getProperty(name, parent);
|
|
58
|
-
// no android key, add it to parent to root
|
|
59
58
|
if (!property) {
|
|
60
59
|
return undefined;
|
|
61
60
|
}
|
|
@@ -65,14 +64,11 @@ class ConfigTransformer {
|
|
|
65
64
|
if (!_parent) {
|
|
66
65
|
return undefined;
|
|
67
66
|
}
|
|
68
|
-
// add nonExistent.deep to android: {}
|
|
69
67
|
return this.getProperty(parts.join("."), _parent);
|
|
70
68
|
}
|
|
71
|
-
// if we have a parent, we are reading the property from it
|
|
72
69
|
if (parent) {
|
|
73
70
|
return parent.getProperty(key);
|
|
74
71
|
}
|
|
75
|
-
// otherwise we just read it from the root exports object
|
|
76
72
|
return this.getProperty(key, this.getDefaultExportValue());
|
|
77
73
|
}
|
|
78
74
|
addProperty(key, value, parent = null) {
|
|
@@ -246,22 +242,15 @@ class ConfigTransformer {
|
|
|
246
242
|
}
|
|
247
243
|
this.setInitializerValue(initializer, newValue);
|
|
248
244
|
}
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
245
|
getFullText() {
|
|
253
246
|
return this.config.getFullText();
|
|
254
247
|
}
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
248
|
getValue(key) {
|
|
259
249
|
return this.getPropertyValue(this.getProperty(key));
|
|
260
250
|
}
|
|
261
251
|
setValue(key, value) {
|
|
262
252
|
const property = this.getProperty(key);
|
|
263
253
|
if (!property) {
|
|
264
|
-
// add new property
|
|
265
254
|
this.addProperty(key, value);
|
|
266
255
|
}
|
|
267
256
|
else {
|
|
@@ -271,4 +260,3 @@ class ConfigTransformer {
|
|
|
271
260
|
}
|
|
272
261
|
}
|
|
273
262
|
exports.ConfigTransformer = ConfigTransformer;
|
|
274
|
-
//# sourceMappingURL=config-transformer.js.map
|
|
@@ -56,18 +56,14 @@ class NodeModulesDependenciesBuilder {
|
|
|
56
56
|
let modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
57
57
|
paths: [parentModulesPath],
|
|
58
58
|
});
|
|
59
|
-
// perhaps traverse up the tree here?
|
|
60
59
|
if (!modulePath) {
|
|
61
|
-
// fallback to searching in the root path
|
|
62
60
|
modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
63
61
|
paths: [rootPath],
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
|
-
// if we failed to find the module...
|
|
67
64
|
if (!modulePath) {
|
|
68
65
|
return null;
|
|
69
66
|
}
|
|
70
|
-
// if we already resolved this dependency, we return null to avoid a duplicate resolution
|
|
71
67
|
if (resolvedDependencies.some((r) => {
|
|
72
68
|
return r.name === depDescription.name && r.directory === modulePath;
|
|
73
69
|
})) {
|
|
@@ -92,7 +88,6 @@ class NodeModulesDependenciesBuilder {
|
|
|
92
88
|
const packageJsonContents = this.$fs.readJson(packageJsonPath);
|
|
93
89
|
dependency.version = packageJsonContents.version;
|
|
94
90
|
if (!!packageJsonContents.nativescript) {
|
|
95
|
-
// add `nativescript` property, necessary for resolving plugins
|
|
96
91
|
dependency.nativescript = packageJsonContents.nativescript;
|
|
97
92
|
}
|
|
98
93
|
dependency.dependencies = _.keys(packageJsonContents.dependencies);
|
|
@@ -103,4 +98,3 @@ class NodeModulesDependenciesBuilder {
|
|
|
103
98
|
}
|
|
104
99
|
exports.NodeModulesDependenciesBuilder = NodeModulesDependenciesBuilder;
|
|
105
100
|
yok_1.injector.register("nodeModulesDependenciesBuilder", NodeModulesDependenciesBuilder);
|
|
106
|
-
//# sourceMappingURL=node-modules-dependencies-builder.js.map
|
|
@@ -36,8 +36,6 @@ class Yarn2PackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
36
36
|
}
|
|
37
37
|
const packageJsonPath = path.join(pathToSave, "package.json");
|
|
38
38
|
const jsonContentBefore = this.$fs.readJson(packageJsonPath);
|
|
39
|
-
// remove unsupported flags
|
|
40
|
-
// todo: refactor all package managers to map typed flags to the actual flags
|
|
41
39
|
const cleanedConfig = _.omit(config, ["save-dev", "save-exact"]);
|
|
42
40
|
const flags = this.getFlagsString(cleanedConfig, true);
|
|
43
41
|
let params = [];
|
|
@@ -124,4 +122,3 @@ __decorate([
|
|
|
124
122
|
(0, decorators_1.exported)("yarn2")
|
|
125
123
|
], Yarn2PackageManager.prototype, "getCachePath", null);
|
|
126
124
|
yok_1.injector.register("yarn2", Yarn2PackageManager);
|
|
127
|
-
//# sourceMappingURL=yarn2-package-manager.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"main": "./lib/nativescript-cli-lib.js",
|
|
4
|
-
"version": "9.1.0-alpha.
|
|
4
|
+
"version": "9.1.0-alpha.16",
|
|
5
5
|
"author": "NativeScript <oss@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -29,15 +29,17 @@
|
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"clean": "npx rimraf node_modules package-lock.json && npm run setup",
|
|
32
|
-
"build": "
|
|
33
|
-
"build
|
|
32
|
+
"clean.build": "node scripts/clean.js",
|
|
33
|
+
"build": "npm run tsc && node scripts/generate-test-deps.js",
|
|
34
|
+
"build.all": "npm test",
|
|
34
35
|
"dev": "tsc --watch",
|
|
35
36
|
"setup": "npm i --ignore-scripts && npx husky",
|
|
36
37
|
"test": "npm run tsc && mocha --config=test/.mocharc.yml",
|
|
37
38
|
"postinstall": "node postinstall.js",
|
|
38
39
|
"preuninstall": "node preuninstall.js",
|
|
39
|
-
"prepack": "
|
|
40
|
-
"postpack": "
|
|
40
|
+
"prepack": "npm run clean.build && node scripts/generate-test-deps.js && npm test && tsc -p tsconfig.release.json && node scripts/set-ga-id.js live && node scripts/set-ga-id.js verify",
|
|
41
|
+
"postpack": "node scripts/set-ga-id.js dev",
|
|
42
|
+
"docs-jekyll": "node scripts/build-docs.js",
|
|
41
43
|
"mocha": "mocha",
|
|
42
44
|
"tsc": "tsc",
|
|
43
45
|
"test-watch": "node ./dev/tsc-to-mocha-watch.js",
|
|
@@ -60,7 +62,7 @@
|
|
|
60
62
|
"@npmcli/arborist": "9.1.8",
|
|
61
63
|
"@nstudio/trapezedev-project": "7.2.4",
|
|
62
64
|
"@rigor789/resolve-package-path": "1.0.7",
|
|
63
|
-
"axios": "1.
|
|
65
|
+
"axios": "1.18.1",
|
|
64
66
|
"byline": "5.0.0",
|
|
65
67
|
"chokidar": "^3.6.0",
|
|
66
68
|
"cli-table3": "0.6.5",
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
"qrcode-terminal": "0.12.0",
|
|
97
99
|
"semver": "7.7.3",
|
|
98
100
|
"shelljs": "0.10.0",
|
|
99
|
-
"simple-git": "3.
|
|
101
|
+
"simple-git": "3.36.0",
|
|
100
102
|
"simple-plist": "1.4.0",
|
|
101
103
|
"source-map": "0.7.6",
|
|
102
104
|
"tar": "7.5.9",
|
|
@@ -144,13 +146,6 @@
|
|
|
144
146
|
"chai-as-promised": "8.0.2",
|
|
145
147
|
"conventional-changelog-cli": "^5.0.0",
|
|
146
148
|
"fast-check": "3.23.2",
|
|
147
|
-
"grunt": "1.6.1",
|
|
148
|
-
"grunt-contrib-clean": "2.0.1",
|
|
149
|
-
"grunt-contrib-copy": "1.0.0",
|
|
150
|
-
"grunt-contrib-watch": "1.1.0",
|
|
151
|
-
"grunt-shell": "4.0.0",
|
|
152
|
-
"grunt-template": "1.0.0",
|
|
153
|
-
"grunt-ts": "6.0.0-beta.22",
|
|
154
149
|
"husky": "9.1.7",
|
|
155
150
|
"istanbul": "0.4.5",
|
|
156
151
|
"lint-staged": "~15.5.2",
|
|
@@ -174,12 +169,6 @@
|
|
|
174
169
|
"npm-watch": {
|
|
175
170
|
"nodemon": "3.0.3"
|
|
176
171
|
},
|
|
177
|
-
"grunt": {
|
|
178
|
-
"minimatch": "3.1.5"
|
|
179
|
-
},
|
|
180
|
-
"globule": {
|
|
181
|
-
"minimatch": "3.1.5"
|
|
182
|
-
},
|
|
183
172
|
"replace": {
|
|
184
173
|
"minimatch": "3.1.5"
|
|
185
174
|
}
|