@akylas/nativescript-cli 8.7.2
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/LICENSE +201 -0
- package/README.md +385 -0
- package/bin/nativescript +3 -0
- package/bin/nativescript.js +3 -0
- package/bin/ns +3 -0
- package/bin/nsc +3 -0
- package/bin/nsc.js +3 -0
- package/bin/tns +12 -0
- package/bin/tns.cmd +1 -0
- package/config/config.json +8 -0
- package/config/test-dependencies.json +58 -0
- package/config/test-deps-versions-generated.json +1 -0
- package/docs/build-jekyll-md.sh +7 -0
- package/docs/helpers/favicon.ico +0 -0
- package/docs/helpers/logo.png +0 -0
- package/docs/man_pages/cloud/cloud-setup.md +29 -0
- package/docs/man_pages/device/device-android.md +32 -0
- package/docs/man_pages/device/device-ios.md +40 -0
- package/docs/man_pages/device/device-list-applications.md +37 -0
- package/docs/man_pages/device/device-log.md +37 -0
- package/docs/man_pages/device/device-run.md +55 -0
- package/docs/man_pages/device/device.md +46 -0
- package/docs/man_pages/env-configuration/setup.md +22 -0
- package/docs/man_pages/general/autocomplete-disable.md +37 -0
- package/docs/man_pages/general/autocomplete-enable.md +37 -0
- package/docs/man_pages/general/autocomplete-status.md +35 -0
- package/docs/man_pages/general/autocomplete.md +46 -0
- package/docs/man_pages/general/clean.md +22 -0
- package/docs/man_pages/general/doctor.md +33 -0
- package/docs/man_pages/general/error-reporting.md +41 -0
- package/docs/man_pages/general/extension-install.md +45 -0
- package/docs/man_pages/general/extension-uninstall.md +41 -0
- package/docs/man_pages/general/extension.md +35 -0
- package/docs/man_pages/general/help.md +39 -0
- package/docs/man_pages/general/info.md +33 -0
- package/docs/man_pages/general/migrate.md +79 -0
- package/docs/man_pages/general/package-manager-get.md +26 -0
- package/docs/man_pages/general/package-manager-set.md +29 -0
- package/docs/man_pages/general/package-manager.md +25 -0
- package/docs/man_pages/general/proxy-clear.md +26 -0
- package/docs/man_pages/general/proxy-set.md +45 -0
- package/docs/man_pages/general/proxy.md +31 -0
- package/docs/man_pages/general/update.md +40 -0
- package/docs/man_pages/general/usage-reporting.md +41 -0
- package/docs/man_pages/index.html +3 -0
- package/docs/man_pages/lib-management/plugin-add.md +42 -0
- package/docs/man_pages/lib-management/plugin-build.md +32 -0
- package/docs/man_pages/lib-management/plugin-create.md +48 -0
- package/docs/man_pages/lib-management/plugin-install.md +42 -0
- package/docs/man_pages/lib-management/plugin-remove.md +31 -0
- package/docs/man_pages/lib-management/plugin-update.md +41 -0
- package/docs/man_pages/lib-management/plugin.md +39 -0
- package/docs/man_pages/project/configuration/generate.md +36 -0
- package/docs/man_pages/project/configuration/install.md +43 -0
- package/docs/man_pages/project/configuration/open-android.md +27 -0
- package/docs/man_pages/project/configuration/open-ios.md +31 -0
- package/docs/man_pages/project/configuration/open.md +36 -0
- package/docs/man_pages/project/configuration/platform-add.md +46 -0
- package/docs/man_pages/project/configuration/platform-clean.md +41 -0
- package/docs/man_pages/project/configuration/platform-remove.md +41 -0
- package/docs/man_pages/project/configuration/platform-update.md +45 -0
- package/docs/man_pages/project/configuration/platform.md +29 -0
- package/docs/man_pages/project/configuration/prepare.md +49 -0
- package/docs/man_pages/project/configuration/resources/resources-generate-icons.md +39 -0
- package/docs/man_pages/project/configuration/resources/resources-generate-splashes.md +39 -0
- package/docs/man_pages/project/configuration/resources/resources-update.md +35 -0
- package/docs/man_pages/project/configuration/resources/resources.md +14 -0
- package/docs/man_pages/project/creation/create.md +64 -0
- package/docs/man_pages/project/testing/build-android.md +62 -0
- package/docs/man_pages/project/testing/build-ios.md +65 -0
- package/docs/man_pages/project/testing/build.md +66 -0
- package/docs/man_pages/project/testing/debug-android.md +64 -0
- package/docs/man_pages/project/testing/debug-ios.md +65 -0
- package/docs/man_pages/project/testing/debug.md +67 -0
- package/docs/man_pages/project/testing/deploy.md +72 -0
- package/docs/man_pages/project/testing/dev-test-android.md +31 -0
- package/docs/man_pages/project/testing/dev-test-ios.md +36 -0
- package/docs/man_pages/project/testing/preview.md +35 -0
- package/docs/man_pages/project/testing/run-android.md +79 -0
- package/docs/man_pages/project/testing/run-ios.md +83 -0
- package/docs/man_pages/project/testing/run.md +92 -0
- package/docs/man_pages/project/testing/test-android.md +46 -0
- package/docs/man_pages/project/testing/test-init.md +34 -0
- package/docs/man_pages/project/testing/test-ios.md +48 -0
- package/docs/man_pages/project/testing/test.md +48 -0
- package/docs/man_pages/project/testing/typings.md +52 -0
- package/docs/man_pages/publishing/apple-login.md +35 -0
- package/docs/man_pages/publishing/appstore-upload.md +52 -0
- package/docs/man_pages/publishing/appstore.md +42 -0
- package/docs/man_pages/publishing/publish-ios.md +55 -0
- package/docs/man_pages/publishing/publish.md +38 -0
- package/docs/man_pages/start.md +81 -0
- package/lib/.d.ts +494 -0
- package/lib/android-tools-info.js +135 -0
- package/lib/base-package-manager.js +129 -0
- package/lib/bash-scripts/terminateProcess.sh +12 -0
- package/lib/bootstrap.js +203 -0
- package/lib/bun-package-manager.js +135 -0
- package/lib/color.js +10 -0
- package/lib/commands/add-platform.js +49 -0
- package/lib/commands/apple-login.js +52 -0
- package/lib/commands/appstore-list.js +75 -0
- package/lib/commands/appstore-upload.js +106 -0
- package/lib/commands/build.js +161 -0
- package/lib/commands/clean.js +253 -0
- package/lib/commands/command-base.js +46 -0
- package/lib/commands/config.js +135 -0
- package/lib/commands/create-project.js +431 -0
- package/lib/commands/debug.js +191 -0
- package/lib/commands/deploy.js +78 -0
- package/lib/commands/extensibility/install-extension.js +33 -0
- package/lib/commands/extensibility/list-extensions.js +40 -0
- package/lib/commands/extensibility/uninstall-extension.js +32 -0
- package/lib/commands/fonts.js +64 -0
- package/lib/commands/generate-assets.js +71 -0
- package/lib/commands/generate-help.js +26 -0
- package/lib/commands/generate.js +78 -0
- package/lib/commands/info.js +26 -0
- package/lib/commands/install.js +80 -0
- package/lib/commands/list-platforms.js +45 -0
- package/lib/commands/migrate.js +44 -0
- package/lib/commands/platform-clean.js +54 -0
- package/lib/commands/plugin/add-plugin.js +43 -0
- package/lib/commands/plugin/build-plugin.js +70 -0
- package/lib/commands/plugin/create-plugin.js +175 -0
- package/lib/commands/plugin/list-plugins.js +54 -0
- package/lib/commands/plugin/remove-plugin.js +52 -0
- package/lib/commands/plugin/update-plugin.js +52 -0
- package/lib/commands/post-install.js +57 -0
- package/lib/commands/prepare.js +63 -0
- package/lib/commands/preview.js +93 -0
- package/lib/commands/remove-platform.js +40 -0
- package/lib/commands/resources/resources-update.js +45 -0
- package/lib/commands/run.js +177 -0
- package/lib/commands/setup.js +15 -0
- package/lib/commands/start.js +33 -0
- package/lib/commands/test-init.js +167 -0
- package/lib/commands/test.js +146 -0
- package/lib/commands/typings.js +180 -0
- package/lib/commands/update-platform.js +57 -0
- package/lib/commands/update.js +70 -0
- package/lib/common/LICENSE +201 -0
- package/lib/common/README.md +1084 -0
- package/lib/common/bin/common-lib.js +5 -0
- package/lib/common/bootstrap.js +97 -0
- package/lib/common/child-process.js +217 -0
- package/lib/common/codeGeneration/code-entity.js +47 -0
- package/lib/common/codeGeneration/code-generation.d.ts +47 -0
- package/lib/common/codeGeneration/code-printer.js +48 -0
- package/lib/common/command-params.js +45 -0
- package/lib/common/commands/analytics.js +81 -0
- package/lib/common/commands/autocompletion.js +110 -0
- package/lib/common/commands/device/device-log-stream.js +44 -0
- package/lib/common/commands/device/get-file.js +54 -0
- package/lib/common/commands/device/list-applications.js +42 -0
- package/lib/common/commands/device/list-devices.js +150 -0
- package/lib/common/commands/device/list-files.js +55 -0
- package/lib/common/commands/device/put-file.js +55 -0
- package/lib/common/commands/device/run-application.js +46 -0
- package/lib/common/commands/device/stop-application.js +42 -0
- package/lib/common/commands/device/uninstall-application.js +33 -0
- package/lib/common/commands/doctor.js +54 -0
- package/lib/common/commands/generate-messages.js +45 -0
- package/lib/common/commands/help.js +51 -0
- package/lib/common/commands/package-manager-get.js +32 -0
- package/lib/common/commands/package-manager-set.js +37 -0
- package/lib/common/commands/post-install.js +27 -0
- package/lib/common/commands/preuninstall.js +61 -0
- package/lib/common/commands/proxy/proxy-base.js +34 -0
- package/lib/common/commands/proxy/proxy-clear.js +32 -0
- package/lib/common/commands/proxy/proxy-get.js +31 -0
- package/lib/common/commands/proxy/proxy-set.js +150 -0
- package/lib/common/common-lib.js +5 -0
- package/lib/common/constants.js +122 -0
- package/lib/common/declarations.d.ts +1713 -0
- package/lib/common/decorators.js +201 -0
- package/lib/common/definitions/cli-global.d.ts +22 -0
- package/lib/common/definitions/commands-service.d.ts +27 -0
- package/lib/common/definitions/commands.d.ts +51 -0
- package/lib/common/definitions/config.d.ts +33 -0
- package/lib/common/definitions/extensibility.d.ts +147 -0
- package/lib/common/definitions/google-analytics.d.ts +109 -0
- package/lib/common/definitions/json-file-settings-service.d.ts +24 -0
- package/lib/common/definitions/key-commands.d.ts +62 -0
- package/lib/common/definitions/logger.d.ts +41 -0
- package/lib/common/definitions/mobile.d.ts +1499 -0
- package/lib/common/definitions/validator.d.ts +8 -0
- package/lib/common/definitions/yok.d.ts +56 -0
- package/lib/common/dispatchers.js +151 -0
- package/lib/common/docs/helpers/basic-extensions-page.html +15 -0
- package/lib/common/docs/helpers/basic-page.html +14 -0
- package/lib/common/docs/helpers/styles.css +365 -0
- package/lib/common/doctor.d.ts +6 -0
- package/lib/common/errors.js +206 -0
- package/lib/common/file-system.js +441 -0
- package/lib/common/header.js +30 -0
- package/lib/common/helpers.js +658 -0
- package/lib/common/host-info.js +133 -0
- package/lib/common/http-client.js +173 -0
- package/lib/common/logger/appenders/cli-appender.js +24 -0
- package/lib/common/logger/appenders/emit-appender.js +30 -0
- package/lib/common/logger/layouts/cli-layout.js +33 -0
- package/lib/common/logger/logger.js +199 -0
- package/lib/common/messages/messages.interface.d.ts +10 -0
- package/lib/common/messages/messages.js +15 -0
- package/lib/common/mobile/android/android-application-manager.js +228 -0
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +332 -0
- package/lib/common/mobile/android/android-debug-bridge.js +167 -0
- package/lib/common/mobile/android/android-device-file-system.js +176 -0
- package/lib/common/mobile/android/android-device-hash-service.js +133 -0
- package/lib/common/mobile/android/android-device.js +164 -0
- package/lib/common/mobile/android/android-emulator-services.js +205 -0
- package/lib/common/mobile/android/android-ini-file-parser.js +77 -0
- package/lib/common/mobile/android/android-log-filter.js +42 -0
- package/lib/common/mobile/android/android-virtual-device-service.js +360 -0
- package/lib/common/mobile/android/device-android-debug-bridge.js +48 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.js +211 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +121 -0
- package/lib/common/mobile/android/logcat-helper.js +165 -0
- package/lib/common/mobile/application-manager-base.js +136 -0
- package/lib/common/mobile/device-emitter.js +61 -0
- package/lib/common/mobile/device-log-emitter.js +40 -0
- package/lib/common/mobile/device-log-provider-base.js +76 -0
- package/lib/common/mobile/device-log-provider.js +126 -0
- package/lib/common/mobile/device-platforms-constants.js +22 -0
- package/lib/common/mobile/emulator-helper.js +84 -0
- package/lib/common/mobile/ios/device/ios-application-manager.js +159 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.js +133 -0
- package/lib/common/mobile/ios/device/ios-device-operations.js +234 -0
- package/lib/common/mobile/ios/device/ios-device.js +153 -0
- package/lib/common/mobile/ios/ios-device-base.js +108 -0
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +65 -0
- package/lib/common/mobile/ios/ios-log-filter.js +24 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +139 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +23 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +147 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +106 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +81 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +69 -0
- package/lib/common/mobile/local-to-device-path-data-factory.js +37 -0
- package/lib/common/mobile/log-filter.js +51 -0
- package/lib/common/mobile/logging-levels.js +12 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.js +91 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +65 -0
- package/lib/common/mobile/mobile-core/android-process-service.js +259 -0
- package/lib/common/mobile/mobile-core/device-discovery.js +64 -0
- package/lib/common/mobile/mobile-core/devices-service.js +854 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +63 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +109 -0
- package/lib/common/mobile/mobile-helper.js +102 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.js +82 -0
- package/lib/common/old.npmignore +12 -0
- package/lib/common/opener.js +16 -0
- package/lib/common/os-info.js +21 -0
- package/lib/common/plist-parser.js +24 -0
- package/lib/common/project-helper.js +70 -0
- package/lib/common/prompter.js +191 -0
- package/lib/common/queue.js +37 -0
- package/lib/common/resource-loader.js +25 -0
- package/lib/common/resources/messages/errorMessages.json +7 -0
- package/lib/common/resources/platform-tools/android/darwin/NOTICE.txt +3407 -0
- package/lib/common/resources/platform-tools/android/darwin/adb +0 -0
- package/lib/common/resources/platform-tools/android/linux/NOTICE.txt +4451 -0
- package/lib/common/resources/platform-tools/android/linux/adb +0 -0
- package/lib/common/resources/platform-tools/android/win32/AdbWinApi.dll +0 -0
- package/lib/common/resources/platform-tools/android/win32/AdbWinUsbApi.dll +0 -0
- package/lib/common/resources/platform-tools/android/win32/NOTICE.txt +4451 -0
- package/lib/common/resources/platform-tools/android/win32/adb.exe +0 -0
- package/lib/common/resources/platform-tools/android/win32/fastboot.exe +0 -0
- package/lib/common/resources/platform-tools/unzip/win32/unzip.exe +0 -0
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +16 -0
- package/lib/common/services/auto-completion-service.js +265 -0
- package/lib/common/services/cancellation.js +67 -0
- package/lib/common/services/commands-service.js +268 -0
- package/lib/common/services/help-service.js +252 -0
- package/lib/common/services/hooks-service.js +318 -0
- package/lib/common/services/ios-notification-service.js +49 -0
- package/lib/common/services/json-file-settings-service.js +133 -0
- package/lib/common/services/lock-service.js +129 -0
- package/lib/common/services/message-contract-generator.js +83 -0
- package/lib/common/services/messages-service.js +77 -0
- package/lib/common/services/micro-templating-service.js +49 -0
- package/lib/common/services/net-service.js +137 -0
- package/lib/common/services/project-files-manager.js +100 -0
- package/lib/common/services/project-files-provider-base.js +54 -0
- package/lib/common/services/proxy-service.js +64 -0
- package/lib/common/services/qr.js +39 -0
- package/lib/common/services/settings-service.js +42 -0
- package/lib/common/services/xcode-select-service.js +62 -0
- package/lib/common/utils.js +31 -0
- package/lib/common/validators/project-name-validator.js +88 -0
- package/lib/common/validators/validation-result.js +16 -0
- package/lib/common/vendor/License.txt +4 -0
- package/lib/common/vendor/jaro-winkler_distance.js +111 -0
- package/lib/common/verify-node-version.js +78 -0
- package/lib/common/yok.js +426 -0
- package/lib/config.js +137 -0
- package/lib/constants-provider.js +12 -0
- package/lib/constants.js +350 -0
- package/lib/controllers/build-controller.js +133 -0
- package/lib/controllers/debug-controller.js +235 -0
- package/lib/controllers/deploy-controller.js +38 -0
- package/lib/controllers/migrate-controller.js +1114 -0
- package/lib/controllers/platform-controller.js +127 -0
- package/lib/controllers/prepare-controller.js +353 -0
- package/lib/controllers/run-controller.js +525 -0
- package/lib/controllers/update-controller-base.js +84 -0
- package/lib/controllers/update-controller.js +188 -0
- package/lib/data/build-data.js +44 -0
- package/lib/data/controller-data-base.js +11 -0
- package/lib/data/debug-data.js +6 -0
- package/lib/data/platform-data.js +13 -0
- package/lib/data/prepare-data.js +46 -0
- package/lib/data/run-data.js +11 -0
- package/lib/declarations.d.ts +1256 -0
- package/lib/definitions/android-bundle-tool-service.d.ts +17 -0
- package/lib/definitions/android-plugin-migrator.d.ts +52 -0
- package/lib/definitions/build.d.ts +92 -0
- package/lib/definitions/cleanup-service.d.ts +79 -0
- package/lib/definitions/data.d.ts +7 -0
- package/lib/definitions/debug.d.ts +166 -0
- package/lib/definitions/deploy.d.ts +3 -0
- package/lib/definitions/file-log-service.d.ts +19 -0
- package/lib/definitions/files-hash-service.d.ts +35 -0
- package/lib/definitions/gradle.d.ts +33 -0
- package/lib/definitions/hmr-status-service.d.ts +5 -0
- package/lib/definitions/initialize-service.d.ts +11 -0
- package/lib/definitions/ios-debugger-port-service.d.ts +29 -0
- package/lib/definitions/ios.d.ts +97 -0
- package/lib/definitions/ip-service.d.ts +10 -0
- package/lib/definitions/livesync-global.d.ts +7 -0
- package/lib/definitions/livesync.d.ts +601 -0
- package/lib/definitions/lock-service.d.ts +43 -0
- package/lib/definitions/log-parser-service.d.ts +14 -0
- package/lib/definitions/marking-mode-service.d.ts +11 -0
- package/lib/definitions/metadata-filtering-service.d.ts +48 -0
- package/lib/definitions/migrate.d.ts +46 -0
- package/lib/definitions/nativescript-dev-xcode.d.ts +87 -0
- package/lib/definitions/pacote-service.d.ts +50 -0
- package/lib/definitions/platform.d.ts +146 -0
- package/lib/definitions/plugins.d.ts +75 -0
- package/lib/definitions/prepare.d.ts +51 -0
- package/lib/definitions/project-changes.d.ts +34 -0
- package/lib/definitions/project.d.ts +858 -0
- package/lib/definitions/prompter.d.ts +27 -0
- package/lib/definitions/qr-code.d.ts +3 -0
- package/lib/definitions/require.d.ts +11 -0
- package/lib/definitions/run.d.ts +45 -0
- package/lib/definitions/start-service.d.ts +15 -0
- package/lib/definitions/subscription-service.d.ts +11 -0
- package/lib/definitions/system-warnings.d.ts +4 -0
- package/lib/definitions/temp-service.d.ts +9 -0
- package/lib/definitions/terminal-spinner-service.d.ts +12 -0
- package/lib/definitions/update.d.ts +16 -0
- package/lib/definitions/xcode.d.ts +12 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +62 -0
- package/lib/detached-processes/cleanup-process-definitions.d.ts +70 -0
- package/lib/detached-processes/cleanup-process.js +281 -0
- package/lib/detached-processes/detached-process-enums.d.ts +70 -0
- package/lib/detached-processes/file-log-service.js +20 -0
- package/lib/device-path-provider.js +60 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +217 -0
- package/lib/device-sockets/ios/notification.js +30 -0
- package/lib/device-sockets/ios/socket-request-executor.js +56 -0
- package/lib/helpers/android-bundle-validator-helper.js +52 -0
- package/lib/helpers/deploy-command-helper.js +70 -0
- package/lib/helpers/key-command-helper.js +124 -0
- package/lib/helpers/livesync-command-helper.js +220 -0
- package/lib/helpers/network-connectivity-validator.js +47 -0
- package/lib/helpers/options-track-helper.js +88 -0
- package/lib/helpers/package-path-helper.js +6 -0
- package/lib/helpers/platform-command-helper.js +192 -0
- package/lib/helpers/version-validator-helper.js +25 -0
- package/lib/key-commands/bootstrap.js +21 -0
- package/lib/key-commands/index.js +456 -0
- package/lib/nativescript-cli-lib-bootstrap.js +8 -0
- package/lib/nativescript-cli-lib.js +5 -0
- package/lib/nativescript-cli.js +55 -0
- package/lib/node/pbxproj-dom-xcode.js +5 -0
- package/lib/node/xcode.js +7 -0
- package/lib/node-package-manager.js +156 -0
- package/lib/options.js +393 -0
- package/lib/package-installation-manager.js +221 -0
- package/lib/package-manager.js +184 -0
- package/lib/platform-command-param.js +29 -0
- package/lib/pnpm-package-manager.js +136 -0
- package/lib/project-data.js +237 -0
- package/lib/providers/project-files-provider.js +46 -0
- package/lib/resolvers/livesync-service-resolver.js +22 -0
- package/lib/services/analytics/analytics-broker-process.js +77 -0
- package/lib/services/analytics/analytics-broker.js +53 -0
- package/lib/services/analytics/analytics-service.js +366 -0
- package/lib/services/analytics/analytics.d.ts +55 -0
- package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +6 -0
- package/lib/services/analytics/google-analytics-provider.js +152 -0
- package/lib/services/analytics-settings-service.js +104 -0
- package/lib/services/android/android-bundle-tool-service.js +81 -0
- package/lib/services/android/gradle-build-args-service.js +87 -0
- package/lib/services/android/gradle-build-service.js +68 -0
- package/lib/services/android/gradle-command-service.js +49 -0
- package/lib/services/android-device-debug-service.js +173 -0
- package/lib/services/android-plugin-build-service.js +527 -0
- package/lib/services/android-project-service.js +600 -0
- package/lib/services/android-resources-migration-service.js +104 -0
- package/lib/services/apple-portal/apple-portal-application-service.js +82 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.js +53 -0
- package/lib/services/apple-portal/apple-portal-session-service.js +277 -0
- package/lib/services/apple-portal/definitions.d.ts +87 -0
- package/lib/services/assets-generation/assets-generation-service.js +178 -0
- package/lib/services/build-artifacts-service.js +113 -0
- package/lib/services/build-data-service.js +20 -0
- package/lib/services/build-info-file-service.js +79 -0
- package/lib/services/cleanup-service.js +194 -0
- package/lib/services/cocoapods-platform-manager.js +137 -0
- package/lib/services/cocoapods-service.js +354 -0
- package/lib/services/debug-data-service.js +21 -0
- package/lib/services/debug-service-base.js +44 -0
- package/lib/services/device/device-install-app-service.js +118 -0
- package/lib/services/doctor-service.js +294 -0
- package/lib/services/extensibility-service.js +220 -0
- package/lib/services/files-hash-service.js +79 -0
- package/lib/services/hmr-status-service.js +128 -0
- package/lib/services/info-service.js +14 -0
- package/lib/services/initialize-service.js +70 -0
- package/lib/services/ios/export-options-plist-service.js +131 -0
- package/lib/services/ios/ios-signing-service.js +265 -0
- package/lib/services/ios/spm-service.js +78 -0
- package/lib/services/ios/xcodebuild-args-service.js +163 -0
- package/lib/services/ios/xcodebuild-command-service.js +40 -0
- package/lib/services/ios/xcodebuild-service.js +93 -0
- package/lib/services/ios-debugger-port-service.js +140 -0
- package/lib/services/ios-device-debug-service.js +167 -0
- package/lib/services/ios-entitlements-service.js +78 -0
- package/lib/services/ios-extensions-service.js +63 -0
- package/lib/services/ios-log-filter.js +70 -0
- package/lib/services/ios-native-target-service.js +108 -0
- package/lib/services/ios-project-service.js +851 -0
- package/lib/services/ios-provision-service.js +173 -0
- package/lib/services/ios-watch-app-service.js +76 -0
- package/lib/services/ip-service.js +78 -0
- package/lib/services/itmstransporter-service.js +216 -0
- package/lib/services/karma-execution.js +16 -0
- package/lib/services/livesync/android-device-livesync-service-base.js +68 -0
- package/lib/services/livesync/android-device-livesync-service.js +203 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.js +198 -0
- package/lib/services/livesync/android-livesync-service.js +76 -0
- package/lib/services/livesync/android-livesync-tool.js +427 -0
- package/lib/services/livesync/android-livesync-tool.md +211 -0
- package/lib/services/livesync/device-livesync-service-base.js +69 -0
- package/lib/services/livesync/ios-device-livesync-service.js +218 -0
- package/lib/services/livesync/ios-livesync-service.js +95 -0
- package/lib/services/livesync/livesync-socket.js +14 -0
- package/lib/services/livesync/platform-livesync-service-base.js +180 -0
- package/lib/services/livesync-process-data-service.js +43 -0
- package/lib/services/log-parser-service.js +52 -0
- package/lib/services/log-source-map-service.js +235 -0
- package/lib/services/marking-mode-service.js +56 -0
- package/lib/services/metadata-filtering-service.js +105 -0
- package/lib/services/npm-config-service.js +39 -0
- package/lib/services/pacote-service.js +109 -0
- package/lib/services/performance-service.js +92 -0
- package/lib/services/platform/add-platform-service.js +119 -0
- package/lib/services/platform/platform-validation-service.js +85 -0
- package/lib/services/platform/prepare-native-platform-service.js +87 -0
- package/lib/services/platform-environment-requirements.js +87 -0
- package/lib/services/platform-project-service-base.js +32 -0
- package/lib/services/platforms-data-service.js +31 -0
- package/lib/services/plugins-service.js +477 -0
- package/lib/services/prepare-data-service.js +21 -0
- package/lib/services/project-backup-service.js +114 -0
- package/lib/services/project-changes-service.js +274 -0
- package/lib/services/project-cleanup-service.js +102 -0
- package/lib/services/project-config-service.js +335 -0
- package/lib/services/project-data-service.js +478 -0
- package/lib/services/project-name-service.js +67 -0
- package/lib/services/project-service.js +204 -0
- package/lib/services/project-templates-service.js +114 -0
- package/lib/services/qr-code-terminal-service.js +20 -0
- package/lib/services/require-service.js +11 -0
- package/lib/services/start-service.js +116 -0
- package/lib/services/temp-service.js +36 -0
- package/lib/services/terminal-spinner-service.js +38 -0
- package/lib/services/test-execution-service.js +154 -0
- package/lib/services/test-initialization-service.js +54 -0
- package/lib/services/timeline-profiler-service.js +108 -0
- package/lib/services/user-settings-service.js +34 -0
- package/lib/services/versions-service.js +196 -0
- package/lib/services/watch-ignore-list-service.js +20 -0
- package/lib/services/webpack/webpack-compiler-service.js +405 -0
- package/lib/services/webpack/webpack.d.ts +227 -0
- package/lib/services/xcconfig-service.js +76 -0
- package/lib/services/xcproj-service.js +11 -0
- package/lib/shared-event-bus.js +7 -0
- package/lib/sys-info.js +120 -0
- package/lib/tools/config-manipulation/config-transformer.js +201 -0
- package/lib/tools/node-modules/node-modules-builder.js +42 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +100 -0
- package/lib/yarn-package-manager.js +134 -0
- package/lib/yarn2-package-manager.js +143 -0
- package/package.json +192 -0
- package/postinstall.js +10 -0
- package/preuninstall.js +14 -0
- package/resources/assets/image-definitions.json +655 -0
- package/resources/test/example.jasmine.js +6 -0
- package/resources/test/example.jasmine.ts +6 -0
- package/resources/test/example.mocha.js +9 -0
- package/resources/test/example.mocha.ts +9 -0
- package/resources/test/example.qunit.js +7 -0
- package/resources/test/example.qunit.ts +7 -0
- package/resources/test/karma.conf.js +93 -0
- package/resources/test/test-main.js +9 -0
- package/resources/test/test-main.ts +11 -0
- package/resources/test/tsconfig.spec.json +9 -0
- package/setup/mac-startup-shell-script.sh +2 -0
- package/vendor/aab-tool/LICENSE +202 -0
- package/vendor/aab-tool/README.txt +1 -0
- package/vendor/aab-tool/bundletool.jar +0 -0
- package/vendor/gradle-app/app/build.gradle +1054 -0
- package/vendor/gradle-app/app/gradle-helpers/AnalyticsCollector.gradle +48 -0
- package/vendor/gradle-app/app/gradle-helpers/BuildToolTask.gradle +50 -0
- package/vendor/gradle-app/app/gradle-helpers/CustomExecutionLogger.gradle +52 -0
- package/vendor/gradle-app/build.gradle +170 -0
- package/vendor/gradle-app/settings.gradle +78 -0
- package/vendor/gradle-plugin/LICENSE +995 -0
- package/vendor/gradle-plugin/build.gradle +363 -0
- package/vendor/gradle-plugin/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/vendor/gradle-plugin/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/vendor/gradle-plugin/gradle.properties +6 -0
- package/vendor/gradle-plugin/gradlew +172 -0
- package/vendor/gradle-plugin/gradlew.bat +84 -0
- package/vendor/gradle-plugin/settings.gradle +45 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns resources generate icons
|
|
3
|
+
position: 11
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns resources generate icons
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Generates all icons for Android and iOS platforms and places the generated images in the correct directories under `App_Resources/<platform>` directory.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
------|-------
|
|
16
|
+
`$ ns resources generate icons <Path to image>` | Generate all icons for Android and iOS based on the specified image.
|
|
17
|
+
|
|
18
|
+
### Options
|
|
19
|
+
|
|
20
|
+
* `--background` Sets the background color of the icon. When no color is specified, a default value of `transparent` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$ ns resources generate icons ../myImage.png --background "#FF00FF"`.
|
|
21
|
+
|
|
22
|
+
### Arguments
|
|
23
|
+
|
|
24
|
+
* `<Path to image>` is a valid path to an image that will be used to generate all icons.
|
|
25
|
+
|
|
26
|
+
<% if(isHtml) { %>
|
|
27
|
+
|
|
28
|
+
### Related Commands
|
|
29
|
+
|
|
30
|
+
Command | Description
|
|
31
|
+
----------|----------
|
|
32
|
+
[install](../install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
|
|
33
|
+
[platform add](../platform-add.html) | Configures the current project to target the selected platform.
|
|
34
|
+
[platform remove](../platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
|
|
35
|
+
[platform](../platform.html) | Lists all platforms that the project currently targets.
|
|
36
|
+
[prepare](../prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.
|
|
37
|
+
[resources update](resources-update.md) | Updates the `App_Resources/Android` internal folder structure to conform to that of an Android Studio project.
|
|
38
|
+
[resources generate splashes](resources-generate-splashes.md) | Generates splashscreens for Android and iOS.
|
|
39
|
+
<% } %>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns resources generate splashes
|
|
3
|
+
position: 12
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns resources generate splashes
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Generates all splashscreens for Android and iOS platforms and places the generated images in the correct directories under `App_Resources/<platform>` directory.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
------|-------
|
|
16
|
+
`$ ns resources generate splashes <Path to image> [--background <Color>]` | Generate all splashscreens for Android and iOS based on the specified image.
|
|
17
|
+
|
|
18
|
+
### Options
|
|
19
|
+
|
|
20
|
+
* `--background` Sets the background color of the splashscreen. When no color is specified, a default value of `white` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$ ns resources generate splashes ../myImage.png --background "#FF00FF"`.
|
|
21
|
+
|
|
22
|
+
### Arguments
|
|
23
|
+
|
|
24
|
+
* `<Path to image>` is a valid path to an image that will be used to generate all splashscreens.
|
|
25
|
+
|
|
26
|
+
<% if(isHtml) { %>
|
|
27
|
+
|
|
28
|
+
### Related Commands
|
|
29
|
+
|
|
30
|
+
Command | Description
|
|
31
|
+
----------|----------
|
|
32
|
+
[install](../install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
|
|
33
|
+
[platform add](../platform-add.html) | Configures the current project to target the selected platform.
|
|
34
|
+
[platform remove](../platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
|
|
35
|
+
[platform](../platform.html) | Lists all platforms that the project currently targets.
|
|
36
|
+
[prepare](../prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.
|
|
37
|
+
[resources update](resources-update.md) | Updates the `App_Resources/Android` internal folder structure to conform to that of an Android Studio project.
|
|
38
|
+
[resources generate icons](resources-generate-icons.md) | Generates icons for Android and iOS.
|
|
39
|
+
<% } %>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns resources update
|
|
3
|
+
position: 10
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns resources update
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Updates the App_Resources/<platform>'s internal folder structure to conform to that of an Android Studio project. Android resource files and directories will be located at the following paths:
|
|
11
|
+
- `drawable-*`, `values`, `raw`, etc. can be found at `App_Resources/Android/src/main/res`
|
|
12
|
+
- `AndroidManifest.xml` can be found at `App_Resources/Android/src/main/AndroidManifest.xml`
|
|
13
|
+
- Java source files can be dropped in at `App_Resources/Android/src/main/java` after creating the proper package subdirectory structure
|
|
14
|
+
- Additional arbitrary assets can be dropped in at `App_Resources/Android/src/main/assets`
|
|
15
|
+
|
|
16
|
+
### Commands
|
|
17
|
+
|
|
18
|
+
Usage | Synopsis
|
|
19
|
+
------|-------
|
|
20
|
+
`$ ns resources update` | Defaults to executing `$ ns resources update android`. Updates the App_Resources/Android's folder structure.
|
|
21
|
+
`$ ns resources update android` | Updates the App_Resources/Android's folder structure.
|
|
22
|
+
|
|
23
|
+
### Command Limitations
|
|
24
|
+
|
|
25
|
+
* The command works only for the directory structure under `App_Resources/Android`. Running `$ ns resources-update ios` will have no effect.
|
|
26
|
+
|
|
27
|
+
### Related Commands
|
|
28
|
+
|
|
29
|
+
Command | Description
|
|
30
|
+
----------|----------
|
|
31
|
+
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
|
|
32
|
+
[platform add](platform-add.html) | Configures the current project to target the selected platform.
|
|
33
|
+
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
|
|
34
|
+
[platform](platform.html) | Lists all platforms that the project currently targets.
|
|
35
|
+
[prepare](prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns resources
|
|
3
|
+
position: 9
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns resources
|
|
7
|
+
|
|
8
|
+
### Available commands
|
|
9
|
+
|
|
10
|
+
Command | Description
|
|
11
|
+
------|-------
|
|
12
|
+
resources update | Updates the App_Resources/<platform>'s internal folder structure to conform to that of an Android Studio project.
|
|
13
|
+
resources generate splashes | Generates all splashscreens for Android and iOS platforms and places the generated images in the correct directories under App_Resources/<platform> directory.
|
|
14
|
+
resources generate icons | Generates all icons for Android and iOS platforms and places the generated images in the correct directories under App_Resources/<platform> directory.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns create
|
|
3
|
+
position: 1
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns create
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Interactively creates a new NativeScript app based on a predefined template.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Template | Synopsis
|
|
15
|
+
---------|---------
|
|
16
|
+
JavaScript based | `$ ns create [<App Name>] [--js] [--path <Directory>] [--appid <App ID>]`
|
|
17
|
+
TypeScript based | `$ ns create [<App Name>] --ts [--path <Directory>] [--appid <App ID>]`
|
|
18
|
+
Angular based | `$ ns create [<App Name>] --ng [--path <Directory>] [--appid <App ID>]`
|
|
19
|
+
Vue.js based | `$ ns create [<App Name>] --vue [--path <Directory>] [--appid <App ID>]`
|
|
20
|
+
Custom template | `$ ns create [<App Name>] [--path <Directory>] [--appid <App ID>] --template <Template>`
|
|
21
|
+
|
|
22
|
+
### Options
|
|
23
|
+
|
|
24
|
+
* `--path` - Specifies the directory where you want to create the project, if different from the current directory. `<Directory>` is the absolute path to an empty directory in which you want to create the project.
|
|
25
|
+
* `--appid` - Sets the application identifier of your project. `<App ID>` is the value of the application identifier and it must meet the specific requirements of each platform that you want to target. If not specified, the application identifier is set to `org.nativescript.<App name>`.<% if(isConsole) { %> For more information about the `<App ID>` requirements, run `$ ns help create`.<% } %><% if(isHtml) { %> The application identifier must be a domain name in reverse. For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores in the strings of the reversed domain name, separated by a dot. Strings must be separated by a dot and must start with a letter. For example: `com.nativescript.My_Andro1d_App`. For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens in the strings of the reversed domain name. Strings must be separated by a dot. For example: `com.nativescript.My-i0s-App`.
|
|
26
|
+
* `--template` - Specifies a valid npm package which you want to use as a base to create your project. If `--template` is not set, the NativeScript CLI will ask you to pick one from a predefined list afterwards.<% if(isHtml) { %> If one or more application assets are missing from the `App_Resources` directory in the package, the CLI adds them using the assets available in the default hello-world template.<% } %> `<Template>` can be the name of a package in the npm registry, a local path or a GitHub URL to a directory, or a `.tar.gz` archive containing a `package.json` file. The contents of the package will be copied to the `app` directory of your project.<% } %>
|
|
27
|
+
* `--js`, `--javascript` - Sets the template for your project to the JavaScript template.
|
|
28
|
+
* `--ts`, `--tsc`, `--typescript` - Sets the template for your project to the TypeScript template.
|
|
29
|
+
* `--ng`, `--angular` - Sets the template for your project to the Angular template.
|
|
30
|
+
* `--vue`, `--vuejs` - Sets the template for your project to the Vue.js template.
|
|
31
|
+
|
|
32
|
+
### Arguments
|
|
33
|
+
|
|
34
|
+
`<App Name>` is the name of project and must meet the requirements of each platform that you want to target. If not specified in the initial command, the NativeScript CLI will ask you for it afterwards.<% if(isConsole) { %> For more information about the `<App Name>` requirements, run `$ ns help create`.<% } %><% if(isHtml) { %> For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter. For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.
|
|
35
|
+
<% } %>
|
|
36
|
+
|
|
37
|
+
<% if(isHtml) { %>
|
|
38
|
+
|
|
39
|
+
### Application Templates
|
|
40
|
+
|
|
41
|
+
Below you can see a list of the recommended NativeScript starting templates and the commands you should use to generate them.
|
|
42
|
+
|
|
43
|
+
Template | Command
|
|
44
|
+
---------|----------
|
|
45
|
+
`JavaScript - Hello World`, `--js`, `--javascript` | ns create --template @nativescript/template-hello-world
|
|
46
|
+
`JavaScript - SideDrawer` | ns create --template @nativescript/template-drawer-navigation
|
|
47
|
+
`JavaScript - Tabs` | ns create --template @nativescript/template-tab-navigation
|
|
48
|
+
`TypeScript - Hello World`, `--ts`, `--tsc`, `--typescript` | ns create --template @nativescript/template-hello-world-ts
|
|
49
|
+
`TypeScript - SideDrawer` | ns create --template @nativescript/template-drawer-navigation-ts
|
|
50
|
+
`TypeScript - Tabs` | ns create --template @nativescript/template-tab-navigation-ts
|
|
51
|
+
`Angular - Hello World`, `--ng`, `--angular` | ns create --template @nativescript/template-hello-world-ng
|
|
52
|
+
`Angular - SideDrawer` | ns create --template @nativescript/template-drawer-navigation-ng
|
|
53
|
+
`Angular - Tabs` | ns create --template @nativescript/template-tab-navigation-ng
|
|
54
|
+
`React - Hello World`, `--react`, `--reactjs` | ns create --template @nativescript/template-blank-react
|
|
55
|
+
`Vue.js - Blank`, `--vue`, `--vuejs` | ns create --template @nativescript/template-blank-vue
|
|
56
|
+
`Vue.js - SideDrawer`, | ns create --template @nativescript/template-drawer-navigation-vue
|
|
57
|
+
`Vue.js - Tabs` | ns create --template @nativescript/template-tab-navigation-vue
|
|
58
|
+
|
|
59
|
+
### Related Commands
|
|
60
|
+
|
|
61
|
+
Command | Description
|
|
62
|
+
----------|----------
|
|
63
|
+
[install](/lib-management/install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
|
|
64
|
+
<% } %>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns build android
|
|
3
|
+
position: 1
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns build android
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Builds the project for Android and produces an APK that you can manually deploy on an Android device or Android emulator.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
---|---
|
|
16
|
+
General | `$ ns build android [--compileSdk <API Level>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--static-bindings] [--copy-to <File Path>] [--env.*]] [--aab]`
|
|
17
|
+
|
|
18
|
+
### Options
|
|
19
|
+
|
|
20
|
+
* `--compileSdk` - Sets the Android SDK that will be used to build the project. `<API Level>` is a valid Android API level. For example: 28, 29. The minimum supported SDK is 28. <% if(isHtml) { %> For a complete list of the Android API levels and their corresponding Android versions, click [here](http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#platform).<% } %>
|
|
21
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
22
|
+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
|
|
23
|
+
* `--key-store-path` - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
|
|
24
|
+
* `--key-store-password` - Provides the password for the keystore file specified with `--key-store-path`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
|
|
25
|
+
* `--key-store-alias` - Provides the alias for the keystore file specified with `--key-store-path`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
|
|
26
|
+
* `--key-store-alias-password` - Provides the password for the alias specified with `--key-store-alias-password`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
|
|
27
|
+
* `--copy-to` - Specifies the file path where the built `.apk` will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used.
|
|
28
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
29
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
30
|
+
* `--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
|
|
31
|
+
* `--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
|
|
32
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
33
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
34
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
35
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
36
|
+
* `--aab` - Specifies that the build will produce an Android App Bundle(`.aab`) file.
|
|
37
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
38
|
+
* `--path <Directory>` - Specifies the directory that contains the project. If not set, the project is searched for in the current directory and all directories above it.
|
|
39
|
+
|
|
40
|
+
<% if(isHtml) { %>
|
|
41
|
+
|
|
42
|
+
### Command Limitations
|
|
43
|
+
|
|
44
|
+
* When the `--release` flag is set, you must also specify all `--key-store-*` options.
|
|
45
|
+
|
|
46
|
+
### Related Commands
|
|
47
|
+
|
|
48
|
+
Command | Description
|
|
49
|
+
----------|----------
|
|
50
|
+
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
|
|
51
|
+
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
|
|
52
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
53
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
54
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
55
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
56
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
57
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
58
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
59
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
60
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
61
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
62
|
+
<% } %>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns build ios
|
|
3
|
+
position: 2
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns build ios
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Builds the project for iOS and produces an `APP` or `IPA` that you can manually deploy in the iOS Simulator or on a device.
|
|
11
|
+
|
|
12
|
+
<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can run this command only on macOS systems. To view the complete help for this command, run `$ ns help build ios`<% } %>
|
|
13
|
+
<% if((isConsole && isMacOS) || isHtml) { %>
|
|
14
|
+
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your macOS system. <% if(isHtml) { %>For more information, see the [Code Signing](https://developer.apple.com/support/code-signing/) and [Maintain Signing Assets](https://help.apple.com/xcode/mac/current/#/dev3a05256b8) sections from the Apple Developer documentation.<% } %>
|
|
15
|
+
|
|
16
|
+
### Commands
|
|
17
|
+
|
|
18
|
+
Usage | Synopsis
|
|
19
|
+
---|---
|
|
20
|
+
General | `$ ns build ios [--for-device] [--release] [--copy-to <File Path>] [--provision [<UUID/name>]] [--env.*]]`
|
|
21
|
+
|
|
22
|
+
### Options
|
|
23
|
+
|
|
24
|
+
* `--release` - If set, produces a release build. Otherwise, produces a debug build.
|
|
25
|
+
* `--for-device` - If set, produces an application package that you can deploy on device. Otherwise, produces a build that you can run only in the native iOS Simulator.
|
|
26
|
+
* `--i-cloud-container-environment` - If set, adds the passed `iCloudContainerEnvironment` when exporting an application package with the `--for-device` option.
|
|
27
|
+
* `--copy-to` - Specifies the file path where the built `.ipa` will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used.
|
|
28
|
+
* `--team-id` - If used without parameter, lists all team names and ids. If used with team name or id, it will switch to automatic signing mode and configure the .xcodeproj file of your app. In this case .xcconfig should not contain any provisioning/team id flags. This team id will be further used for codesigning the app. For Xcode 9.0+, xcodebuild will be allowed to update and modify automatically managed provisioning profiles.
|
|
29
|
+
* `--provision` - If used without parameter, lists all eligible provisioning profiles. If used with UUID or name of your provisioning profile, it will switch to manual signing mode and configure the .xcodeproj file of your app. In this case xcconfig should not contain any provisioning/team id flags. This provisioning profile will be further used for codesigning the app.
|
|
30
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
31
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
32
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
33
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
34
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
35
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
36
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
37
|
+
* `--path <Directory>` - Specifies the directory that contains the project. If not set, the project is searched for in the current directory and all directories above it.
|
|
38
|
+
|
|
39
|
+
<% } %>
|
|
40
|
+
|
|
41
|
+
<% if(isHtml) { %>
|
|
42
|
+
|
|
43
|
+
### Command Limitations
|
|
44
|
+
|
|
45
|
+
* You can run the `$ ns build ios` command only on macOS systems.
|
|
46
|
+
|
|
47
|
+
### Related Commands
|
|
48
|
+
|
|
49
|
+
Command | Description
|
|
50
|
+
----------|----------
|
|
51
|
+
[appstore](../../publishing/appstore.html) | Lists applications registered in iTunes Connect.
|
|
52
|
+
[appstore upload](../../publishing/appstore-upload.html) | Uploads project to iTunes Connect.
|
|
53
|
+
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
|
|
54
|
+
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
|
|
55
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
56
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
57
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
58
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
59
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
60
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
61
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
62
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
63
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
64
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
65
|
+
<% } %>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns build
|
|
3
|
+
position: 3
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns build
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Builds the project for Android <% if(isMacOS) { %>or iOS <% } %>and produces an application package that you can manually deploy on a device or native emulator. <% if(isMacOS) { %>You must specify the target platform for which you want to build your project.<% } %>
|
|
11
|
+
|
|
12
|
+
When running this command the HMR (Hot Module Replacement) is not enabled by default. In case you want to enable HMR, you can pass `--hmr` flag.
|
|
13
|
+
|
|
14
|
+
<% if(isHtml) { %>
|
|
15
|
+
> NOTE: When passing `--release` CLI will disable HMR.
|
|
16
|
+
<% } %>
|
|
17
|
+
|
|
18
|
+
### Commands
|
|
19
|
+
|
|
20
|
+
Usage | Synopsis
|
|
21
|
+
---|---
|
|
22
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns build <Platform>`<% } %><% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns build android`<% } %>
|
|
23
|
+
|
|
24
|
+
<% if((isConsole && isMacOS) || isHtml) { %>### Arguments
|
|
25
|
+
`<Platform>` is the target mobile platform for which you want to build your project. You can set the following target platforms.
|
|
26
|
+
* `android` - Build the project for Android and produces an `APK` that you can manually deploy on a device or in the native emulator.
|
|
27
|
+
* `ios` - Build the project for iOS and produces an `APP` or `IPA` that you can manually deploy in the iOS Simulator or on a device.<% } %>
|
|
28
|
+
|
|
29
|
+
### Options
|
|
30
|
+
|
|
31
|
+
* `--justlaunch` - If set, does not print the application output in the console.
|
|
32
|
+
* `--release` -If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.
|
|
33
|
+
* `--device` - Specifies a connected device/emulator to start and run the app. `<Device ID>` is the index or `Device Identifier` of the target device as listed by the `$ ns device <Platform> --available-devices` command.
|
|
34
|
+
* `--hmr` - Enables the hot module replacement (HMR) feature.
|
|
35
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
36
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
37
|
+
* `--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
|
|
38
|
+
* `--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
|
|
39
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
40
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
41
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
42
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
43
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
44
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
45
|
+
|
|
46
|
+
<% if(isHtml) { %>
|
|
47
|
+
|
|
48
|
+
### Related Commands
|
|
49
|
+
|
|
50
|
+
Command | Description
|
|
51
|
+
----------|----------
|
|
52
|
+
[appstore](../../publishing/appstore.html) | Lists applications registered in iTunes Connect.
|
|
53
|
+
[appstore upload](../../publishing/appstore-upload.html) | Uploads project to iTunes Connect.
|
|
54
|
+
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
|
|
55
|
+
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
|
|
56
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
57
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
58
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
59
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
60
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
61
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
62
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
63
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
64
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
65
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
66
|
+
<% } %>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns debug android
|
|
3
|
+
position: 4
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns debug android
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Initiates a debugging session for your project on a connected Android device or Android emulator. When necessary, the command will prepare, build, deploy and launch the app before starting the debug session. While debugging, the output from the application is printed in the console and any changes made to your code are synchronizes with the deployed app.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
---|---
|
|
16
|
+
Deploy on device/emulator, run the app and generate a Chrome DevTools link for debugging | `$ ns debug android [--device <Device ID>] [--timeout <timeout>] [--aab]`
|
|
17
|
+
Deploy on device/emulator, run the app and stop at the first code statement | `$ ns debug android --debug-brk [--device <Device ID>] [--timeout <timeout>] [--aab]`
|
|
18
|
+
Deploy in the native emulator, run the app and stop at the first code statement | `$ ns debug android --debug-brk --emulator [--timeout <timeout>] [--aab]`
|
|
19
|
+
Attach the debug tools to a running app on device/emulator | `$ ns debug android --start [--device <Device ID>] [--timeout <timeout>] [--aab]`
|
|
20
|
+
Attach the debug tools to a running app in the native emulator | `$ ns debug android --start --emulator [--timeout <timeout>] [--aab]`
|
|
21
|
+
|
|
22
|
+
### Options
|
|
23
|
+
|
|
24
|
+
* `--device` - Specifies a connected device/emulator on which to debug the app. `<Device ID>` is the device identifier or name of the target device as listed by the `$ ns device android` command.
|
|
25
|
+
* `--emulator` - Specifies that you want to debug the app in the native Android emulator.
|
|
26
|
+
* `--debug-brk` - Prepares, builds and deploys the application package on a device/emulator, generates a link for Chrome Developer Tools and stops at the first code statement.
|
|
27
|
+
* `--start` - Attaches the debug tools to a deployed and running app.
|
|
28
|
+
* `--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the emulator/device to boot. If not set, the default timeout is 90 seconds.
|
|
29
|
+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
|
|
30
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
31
|
+
* `--no-hmr` - Disables Hot Module Replacement (HMR). In this case, when a change in the code is applied, CLI will transfer the modified files and restart the application.
|
|
32
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
33
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
34
|
+
* `--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
|
|
35
|
+
* `--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
|
|
36
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
37
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
38
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
39
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
40
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
41
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
42
|
+
|
|
43
|
+
<% if(isHtml) { %>
|
|
44
|
+
|
|
45
|
+
### Command Limitations
|
|
46
|
+
|
|
47
|
+
* You must have Google Chrome installed on your machine.
|
|
48
|
+
|
|
49
|
+
### Related Commands
|
|
50
|
+
|
|
51
|
+
Command | Description
|
|
52
|
+
----------|----------
|
|
53
|
+
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
|
|
54
|
+
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
|
|
55
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
56
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
57
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
58
|
+
[device](../../device/device.html) | Lists all connected devices/emulators.
|
|
59
|
+
[device android](../../device/device-android.html) | Lists all connected devices/emulators for android.
|
|
60
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
61
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
62
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
63
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
64
|
+
<% } %>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns debug ios
|
|
3
|
+
position: 5
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns debug ios
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Initiates a debugging session for your project on a connected iOS device or in the iOS simulator. When necessary, the command will prepare, build, deploy and launch the app before starting the debug session. While debugging, the output from the application is printed in the console and any changes made to your code are synchronizes with the deployed app. <% if(isHtml) { %>Any debugging traffic is forwarded to port 8080 (or the next available one) from the device to the local machine.<% } %>
|
|
11
|
+
|
|
12
|
+
<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can run this command only on macOS systems. To view the complete help for this command, run `$ ns help debug ios`<% } %>
|
|
13
|
+
<% if((isConsole && isMacOS) || isHtml) { %>
|
|
14
|
+
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your macOS system. <% if(isHtml) { %>For more information, see the [Code Signing](https://developer.apple.com/support/code-signing/) and [Maintain Signing Assets](https://help.apple.com/xcode/mac/current/#/dev3a05256b8) sections from the Apple Developer documentation.<% } %>
|
|
15
|
+
|
|
16
|
+
### Commands
|
|
17
|
+
|
|
18
|
+
Usage | Synopsis
|
|
19
|
+
---|---
|
|
20
|
+
Deploy on device/emulator, run the app, attach a debugger and generate a Chrome DevTools link for debugging | `$ ns debug ios`
|
|
21
|
+
Deploy on device/simulator, run the app and stop at the first code statement | `$ ns debug ios --debug-brk [--device <Device ID>] [--no-client]`
|
|
22
|
+
Deploy in the iOS simulator, run the app and stop at the first code statement | `$ ns debug ios --debug-brk --emulator [--no-client]`
|
|
23
|
+
Attach the debug tools to a running app on specified device or simulator| `$ ns debug ios --start [--device <Device ID>] [--no-client]`
|
|
24
|
+
Attach the debug tools to a running app in the iOS simulator | `$ ns debug ios --start --emulator [--no-client]`
|
|
25
|
+
|
|
26
|
+
### Options
|
|
27
|
+
|
|
28
|
+
* `--device` - Specifies a connected device or iOS simulator on which to run the app. `<Device ID>` is the device identifier of the target device as listed by the `$ ns device ios` command.
|
|
29
|
+
* `--emulator` - Indicates that you want to debug your app in the iOS simulator.
|
|
30
|
+
* `--debug-brk` - Prepares, builds and deploys the application package on a device or in a simulator, runs the app, launches the developer tools of your Safari browser and stops at the first code statement.
|
|
31
|
+
* `--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
|
|
32
|
+
* `--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari. Could be used on already started Safari Web Inspector.
|
|
33
|
+
* `--timeout` - Sets the number of seconds that NativeScript CLI will wait to find the inspector socket port from device's logs. If not set, the default timeout is 10 seconds.
|
|
34
|
+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
|
|
35
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
36
|
+
* `--no-hmr` - Disables Hot Module Replacement (HMR). In this case, when a change in the code is applied, CLI will transfer the modified files and restart the application.
|
|
37
|
+
* `--chrome` - Deprecated - default behavior uses '--chrome' implicitly. Allows debugging in Chrome Developer Tools. If set, Safari Web Inspector is not started and debugging is attached to Chrome Developer Tools.
|
|
38
|
+
* `--inspector` - If set, the developer tools in the Safari Web Inspector are used for debugging the application.
|
|
39
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
40
|
+
|
|
41
|
+
<% } %>
|
|
42
|
+
<% if(isHtml) { %>
|
|
43
|
+
|
|
44
|
+
### Command Limitations
|
|
45
|
+
|
|
46
|
+
* You can run `$ ns debug ios` only on macOS systems.
|
|
47
|
+
* You must have Google Chrome installed on your machine.
|
|
48
|
+
* If you want to debug in the iOS simulator, you must have the latest versions of Xcode installed on your machine.
|
|
49
|
+
|
|
50
|
+
### Related Commands
|
|
51
|
+
|
|
52
|
+
Command | Description
|
|
53
|
+
----------|----------
|
|
54
|
+
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
|
|
55
|
+
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS simulator or on device, respectively.
|
|
56
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
57
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
58
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
59
|
+
[device](../../device/device.html) | Lists all connected devices/emulators.
|
|
60
|
+
[device ios](../../device/device-ios.html) | Lists all connected devices/simulators for iOS.
|
|
61
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
62
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS simulator, if configured.
|
|
63
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
64
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS simulator.
|
|
65
|
+
<% } %>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns debug
|
|
3
|
+
position: 6
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns debug
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Initiates a debugging session for your project on a connected device or native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to debug.<% } %> When necessary, the command will prepare, build, deploy and launch the app before starting the debug session. While debugging, the output from the application is printed in the console and any changes made to your code are synchronized on all connected devices or running emulators.
|
|
11
|
+
|
|
12
|
+
<% if(isHtml) { %>
|
|
13
|
+
#### How file changes are handled
|
|
14
|
+
With HMR (Hot Module Replacement):
|
|
15
|
+
* Changes in `.js`, `.ts`, `.less`, `.sass` and other file types that are accepted will cause a refresh of the application.
|
|
16
|
+
* Changes in `App_Resources` will cause a rebuild of the application.
|
|
17
|
+
* Changes in any `package.json` file inside the project will cause a rebuild of the application.
|
|
18
|
+
* Changes in `node_modules/somePlugin` if accepted will cause a refresh of the application.
|
|
19
|
+
* Changes in `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
20
|
+
* Changes in `node_modules/somePlugin/package.json` file will cause a rebuild of the application.
|
|
21
|
+
* Changes that are not accepted and HMR fails will cause a restart of the native application.
|
|
22
|
+
|
|
23
|
+
With **no** HMR:
|
|
24
|
+
* Changes in `.js`, `.ts`, `.less`, `.sass` and other file types will cause a restart of the native application.
|
|
25
|
+
* Changes in `App_Resources` will cause a rebuild of the application.
|
|
26
|
+
* Changes in any `package.json` file inside the project will cause a rebuild of the application.
|
|
27
|
+
* Changes in `node_modules/somePlugin` will cause a restart of the native application.
|
|
28
|
+
* Changes in `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
29
|
+
* Changes in `node_modules/somePlugin/package.json` file will cause a rebuild of the application.
|
|
30
|
+
|
|
31
|
+
When running this command with `--debug-brk` any file change will cause a restart of the native application (HMR is disabled). Changes in `App_Resources` and `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
32
|
+
<% } %>
|
|
33
|
+
|
|
34
|
+
### Commands
|
|
35
|
+
|
|
36
|
+
Usage | Synopsis
|
|
37
|
+
---|---
|
|
38
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns debug <Platform>`<% } %><% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns debug android`<% } %>
|
|
39
|
+
|
|
40
|
+
<% if((isConsole && isMacOS) || isHtml) { %>### Arguments
|
|
41
|
+
`<Platform>` is the target mobile platform for which you want to debug your project. You can set the following target platforms:
|
|
42
|
+
* `android` - Start a debugging session for your project on a connected Android device or Android emulator.
|
|
43
|
+
* `ios` - Start a debugging session for your project on a connected iOS device or in the native iOS simulator.<% } %>
|
|
44
|
+
|
|
45
|
+
<% if(isHtml) { %>
|
|
46
|
+
|
|
47
|
+
### Command Limitations
|
|
48
|
+
|
|
49
|
+
* You can run `$ ns debug ios` only on macOS systems.
|
|
50
|
+
|
|
51
|
+
### Related Commands
|
|
52
|
+
|
|
53
|
+
Command | Description
|
|
54
|
+
----------|----------
|
|
55
|
+
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
|
|
56
|
+
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
|
|
57
|
+
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
|
|
58
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
59
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
60
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
61
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
62
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
63
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
64
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
65
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
66
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
67
|
+
<% } %>
|