@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,72 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns deploy
|
|
3
|
+
position: 7
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns deploy
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Prepares, builds and deploys the project to a connected device or native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to deploy.<% } %> It will deploy the app on all connected devices targeting the selected platform.
|
|
11
|
+
|
|
12
|
+
<% if(isMacOS) { %>
|
|
13
|
+
<% 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.<% } %>
|
|
14
|
+
|
|
15
|
+
### Commands
|
|
16
|
+
|
|
17
|
+
Usage | Synopsis
|
|
18
|
+
---|---
|
|
19
|
+
Deploy on Android | `$ ns deploy android [--device <Device ID>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--aab]`
|
|
20
|
+
<% if(isMacOS) { %>Deploy on iOS | `$ ns deploy ios [--device <Device ID>] [--release]`<% } %>
|
|
21
|
+
|
|
22
|
+
### Options for iOS
|
|
23
|
+
|
|
24
|
+
* `--device` - Deploys the project on the specified connected physical or virtual device. `<Device ID>` is the index or name of the target device as listed by the `$ ns devices` command.
|
|
25
|
+
* `--release` - If set, produces a release build. Otherwise, produces a debug build.<% } %>
|
|
26
|
+
|
|
27
|
+
### Options<% if(isMacOS) { %> for Android<% } %>
|
|
28
|
+
|
|
29
|
+
* `--device` - Deploys the project on the specified connected physical or virtual device. `<Device ID>` is the index or name of the target device as listed by the `$ ns devices` command.
|
|
30
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
31
|
+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
|
|
32
|
+
* `--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.
|
|
33
|
+
* `--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.
|
|
34
|
+
* `--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.
|
|
35
|
+
* `--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.
|
|
36
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
37
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
38
|
+
* `--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).
|
|
39
|
+
* `--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.
|
|
40
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
41
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
42
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
43
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
44
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
45
|
+
* `--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`.
|
|
46
|
+
|
|
47
|
+
<% if(isHtml) { %>
|
|
48
|
+
|
|
49
|
+
### Command Limitations
|
|
50
|
+
|
|
51
|
+
* You can run `$ ns deploy ios` only on macOS systems.
|
|
52
|
+
* When the `--release` flag is set for an Android build, you must also specify all `--key-store-*` options.
|
|
53
|
+
|
|
54
|
+
### Related Commands
|
|
55
|
+
|
|
56
|
+
Command | Description
|
|
57
|
+
----------|----------
|
|
58
|
+
[appstore](../../publishing/appstore.html) | Lists applications registered in iTunes Connect.
|
|
59
|
+
[appstore upload](../../publishing/appstore-upload.html) | Uploads project to iTunes Connect.
|
|
60
|
+
[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.
|
|
61
|
+
[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.
|
|
62
|
+
[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.
|
|
63
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
64
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
65
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
66
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
67
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
68
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
69
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
70
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
71
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
72
|
+
<% } %>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
test android
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Usage | Synopsis
|
|
5
|
+
------|-------
|
|
6
|
+
Run tests on all connected devices | `$ ns test android [--watch] [--debug-brk]`
|
|
7
|
+
Run tests on a selected device | `$ ns test android --device <Device ID> [--watch] [--debug-brk]`
|
|
8
|
+
|
|
9
|
+
Runs the tests in your project on connected Android devices and running native emulators.<% if(isConsole) { %> Your project must already be configured for unit testing by running `$ ns test init`.<% } %>
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-run.
|
|
13
|
+
* `--device` - Specifies the serial number or the index of the connected device on which to run the tests. To list all connected devices, grouped by platform, run `$ ns device`
|
|
14
|
+
* `--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
|
|
15
|
+
|
|
16
|
+
### Attributes
|
|
17
|
+
* `<Device ID>` is the device index or identifier as listed by `$ ns device`
|
|
18
|
+
|
|
19
|
+
<% if(isHtml) { %>
|
|
20
|
+
### Prerequisites
|
|
21
|
+
|
|
22
|
+
* Verify that [you have configured your project for unit testing](test-init.html).
|
|
23
|
+
* Verify that [you have stored your unit tests in `app` → `tests`](http://docs.nativescript.org/testing).
|
|
24
|
+
* Verify that [you have configured your system and devices properly](http://docs.nativescript.org/testing).
|
|
25
|
+
|
|
26
|
+
### Related Commands
|
|
27
|
+
Command | Description
|
|
28
|
+
--------|------------
|
|
29
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
30
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
31
|
+
<% } %>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
test ios
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Usage | Synopsis
|
|
5
|
+
------|-------
|
|
6
|
+
Run tests on all connected devices | `$ ns test ios [--watch] [--debug-brk]`
|
|
7
|
+
Run tests on a selected device | `$ ns test ios --device <Device ID> [--watch] [--debug-brk]`
|
|
8
|
+
Run tests in the iOS Simulator | `$ ns test ios --emulator [--watch] [--debug-brk]`
|
|
9
|
+
|
|
10
|
+
Runs the tests in your project on connected iOS devices or the iOS Simulator.<% if(isConsole && isMacOS) { %> Your project must already be configured for unit testing by running `$ ns test init`.<% } %>
|
|
11
|
+
|
|
12
|
+
<% if(isConsole && (isLinux || isWindows)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ ns help test ios`<% } %>
|
|
13
|
+
|
|
14
|
+
<% if((isConsole && isMacOS) || isHtml) { %>
|
|
15
|
+
### Options
|
|
16
|
+
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-ran.
|
|
17
|
+
* `--device` - Specifies the serial number or the index of the connected device on which you want to run tests. To list all connected devices, grouped by platform, run `$ ns device`. You cannot set `--device` and `--emulator` simultaneously.
|
|
18
|
+
* `--emulator` - Runs tests on the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously.
|
|
19
|
+
* `--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
|
|
20
|
+
|
|
21
|
+
### Attributes
|
|
22
|
+
* `<Device ID>` is the device index or identifier as listed by `$ ns device`<% } %>
|
|
23
|
+
|
|
24
|
+
<% if(isHtml) { %>
|
|
25
|
+
### Prerequisites
|
|
26
|
+
|
|
27
|
+
* Verify that [you have configured your project for unit testing](test-init.html).
|
|
28
|
+
* Verify that [you have stored your unit tests in `app` → `tests`](http://docs.nativescript.org/testing).
|
|
29
|
+
* Verify that [you have configured your system and devices properly](http://docs.nativescript.org/testing).
|
|
30
|
+
|
|
31
|
+
### Related Commands
|
|
32
|
+
Command | Description
|
|
33
|
+
--------|------------
|
|
34
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
35
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
36
|
+
<% } %>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns preview
|
|
3
|
+
position: 1
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns preview
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Produces a QR code which can be used to preview the app on a device without the need to install various SDKs and tools or configure your environment for local iOS or Android development.
|
|
11
|
+
|
|
12
|
+
To scan the QR code and deploy your app on a device, you need to have the NativeScript Playground app:
|
|
13
|
+
* `App Store (iOS)`: https://itunes.apple.com/us/app/nativescript-playground/id1263543946?mt=8&ls=1
|
|
14
|
+
* `Google Play (Android)`: https://play.google.com/store/apps/details?id=org.nativescript.play
|
|
15
|
+
|
|
16
|
+
After scanning the QR code with the scanner provided in the NativeScript Playground app, your app will be launched on your device through the Preview app. Additionally, any changes made to your project will be automatically synchronized with the deployed app.
|
|
17
|
+
|
|
18
|
+
### Commands
|
|
19
|
+
|
|
20
|
+
Usage | Synopsis
|
|
21
|
+
---|---
|
|
22
|
+
Generates a QR code that can be scanned by the NativeScript PlayGround app | `ns preview`
|
|
23
|
+
|
|
24
|
+
### Options
|
|
25
|
+
|
|
26
|
+
* `--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.
|
|
27
|
+
* `--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`.
|
|
28
|
+
|
|
29
|
+
<% if(isHtml) { %>
|
|
30
|
+
|
|
31
|
+
### Command Limitations
|
|
32
|
+
|
|
33
|
+
* The Preview app comes with a predefined set of NativeScript plugins. If your app utilizes a plugin that is not present in the Preview app, you will see a warning message and your app might not work as expected.
|
|
34
|
+
|
|
35
|
+
<% } %>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns run android
|
|
3
|
+
position: 10
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns run android
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs your project on a connected Android device or Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
|
|
11
|
+
|
|
12
|
+
<% if(isHtml) { %>
|
|
13
|
+
When running this command without passing `--release` flag, the HMR (Hot Module Replacement) is enabled by default. In case you want to disable HMR, you can pass `--no-hmr` flag. When `--release` is passed, CLI disables HMR.
|
|
14
|
+
<% } %>
|
|
15
|
+
|
|
16
|
+
### Commands
|
|
17
|
+
|
|
18
|
+
Usage | Synopsis
|
|
19
|
+
---|---
|
|
20
|
+
Run on all connected devices and running emulators | `$ ns run android [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] [--env.*]] [--aab]`
|
|
21
|
+
Run on a selected connected device or running emulator. Will start emulator with specified `Device Identifier`, if not already running. | `$ ns run android --device <Device ID> [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] [--env.*]] [--aab]`
|
|
22
|
+
Start a default emulator if none are running, or run application on all connected emulators. | `$ ns run android --emulator [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch] [--env.*]] [--aab]`
|
|
23
|
+
|
|
24
|
+
### Options
|
|
25
|
+
|
|
26
|
+
* `--device` - Specifies a connected device or 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 android --available-devices` command.
|
|
27
|
+
* `--emulator` - If set, runs the app in all available and configured Android emulators. It will start an emulator if none are already running.
|
|
28
|
+
* `--justlaunch` - If set, does not print the application output in the console.
|
|
29
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
30
|
+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
|
|
31
|
+
* `--release` - If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
|
|
32
|
+
* `--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.
|
|
33
|
+
* `--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.
|
|
34
|
+
* `--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.
|
|
35
|
+
* `--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.
|
|
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
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times.
|
|
38
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
39
|
+
* `--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).
|
|
40
|
+
* `--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.
|
|
41
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
42
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
43
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
44
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
45
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
46
|
+
* `--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`.
|
|
47
|
+
|
|
48
|
+
<% if(isHtml) { %>
|
|
49
|
+
|
|
50
|
+
### Prerequisites
|
|
51
|
+
|
|
52
|
+
Before running your app in the Android emulator from the Android SDK, verify that your system meets the following requirements.
|
|
53
|
+
* Verify that you have installed the Android SDK.
|
|
54
|
+
* Verify that you have added the following Android SDK directories to the `PATH` environment variable:
|
|
55
|
+
* `platform-tools`
|
|
56
|
+
* `tools`
|
|
57
|
+
|
|
58
|
+
### Command Limitations
|
|
59
|
+
|
|
60
|
+
* You cannot use the `--device` and `--emulator` options simultaneously.
|
|
61
|
+
* When the `--release` flag is set, you must also specify all `--key-store-*` options.
|
|
62
|
+
|
|
63
|
+
### Related Commands
|
|
64
|
+
|
|
65
|
+
Command | Description
|
|
66
|
+
----------|----------
|
|
67
|
+
[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.
|
|
68
|
+
[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.
|
|
69
|
+
[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.
|
|
70
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
71
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
72
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
73
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
74
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
75
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
76
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
77
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
78
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
79
|
+
<% } %>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns run ios
|
|
3
|
+
position: 11
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns run ios
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs your project on a connected iOS device or in the iOS Simulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
|
|
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 run 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
|
+
<% if(isHtml) { %>
|
|
17
|
+
When running this command without passing `--release` flag, the HMR (Hot Module Replacement) is enabled by default. In case you want to disable HMR, you can pass `--no-hmr` flag. When `--release` is passed, CLI disables HMR.
|
|
18
|
+
<% } %>
|
|
19
|
+
|
|
20
|
+
### Commands
|
|
21
|
+
|
|
22
|
+
Usage | Synopsis
|
|
23
|
+
---|---
|
|
24
|
+
Run on all connected devices | `$ ns run ios [--release] [--justlaunch] [--env.*]]`
|
|
25
|
+
Run on a selected connected device. Will start simulator with specified `Device Identifier`, if not already running. | `$ ns run ios [--device <Device ID>] [--release] [--justlaunch] [--env.*]]`
|
|
26
|
+
Start an emulator and run the app inside it | `$ ns run ios --emulator [--release] [--env.*]]`
|
|
27
|
+
Start an emulator with specified device name and sdk | `$ ns run ios [--device <Device Name>] [--sdk <sdk>]`
|
|
28
|
+
Start an emulator with specified device identifier and sdk | `$ ns run ios [--device <Device Identifier>] [--sdk <sdk>]`
|
|
29
|
+
|
|
30
|
+
### Options
|
|
31
|
+
|
|
32
|
+
* `--device` - Specifies a connected device/simulator to start and run the app. `<Device ID>` is the index or `Device Identifier` of the target device as listed by the `$ ns device ios --available-devices` command.
|
|
33
|
+
* `--emulator` - If set, runs the app in all available and configured ios simulators. It will start a simulator if none are already running.
|
|
34
|
+
* `--sdk` - Specifies the target simulator's sdk.
|
|
35
|
+
* `--justlaunch` - If set, does not print the application output in the console.
|
|
36
|
+
* `--clean` - If set, forces the complete rebuild of the native application.
|
|
37
|
+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
|
|
38
|
+
* `--release` - If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.
|
|
39
|
+
* `--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.
|
|
40
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times.
|
|
41
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
42
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
43
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
44
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
45
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
46
|
+
* `--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`.
|
|
47
|
+
|
|
48
|
+
### Environment Variables
|
|
49
|
+
|
|
50
|
+
* `IOS_SIMULATOR_RUN_ARGS` - specifies extra command line arguments to pass to the application when running on the iOS Simulator. E.g. `$ IOS_SIMULATOR_RUN_ARGS=-FIRDebugEnabled ns device run ios`.
|
|
51
|
+
|
|
52
|
+
<% } %>
|
|
53
|
+
<% if(isHtml) { %>
|
|
54
|
+
|
|
55
|
+
### Prerequisites
|
|
56
|
+
|
|
57
|
+
Before running the iOS Simulator, verify that your system meets the following requirements.
|
|
58
|
+
* You have installed a version of Xcode which is compatible with the ios-sim-portable npm package on which the NativeScript CLI depends. For more information, visit [https://www.npmjs.org/package/ios-sim-portable](https://www.npmjs.org/package/ios-sim-portable).
|
|
59
|
+
|
|
60
|
+
### Command Limitations
|
|
61
|
+
|
|
62
|
+
* You can run `$ ns run ios` only on macOS systems.
|
|
63
|
+
* You cannot use `--device` and `--emulator` simultaneously.
|
|
64
|
+
|
|
65
|
+
### Related Commands
|
|
66
|
+
|
|
67
|
+
Command | Description
|
|
68
|
+
----------|----------
|
|
69
|
+
[appstore](../../publishing/appstore.html) | Lists applications registered in iTunes Connect.
|
|
70
|
+
[appstore upload](../../publishing/appstore-upload.html) | Uploads project to iTunes Connect.
|
|
71
|
+
[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.
|
|
72
|
+
[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.
|
|
73
|
+
[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.
|
|
74
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
75
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
76
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
77
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
78
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
79
|
+
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
|
|
80
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
81
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
82
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
83
|
+
<% } %>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns run
|
|
3
|
+
position: 12
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns run
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs your project on all connected devices or in native emulators for the selected platform.<% if(isConsole && (isLinux || isWindows)) { %>The command will work with all currently running Android devices and emulators.<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes all selected devices.
|
|
11
|
+
|
|
12
|
+
<% if(isHtml) { %>
|
|
13
|
+
When running this command without passing `--release` flag, the HMR (Hot Module Replacement) is enabled by default. In case you want to disable HMR, you can pass `--no-hmr` flag. When `--release` is passed, CLI disables HMR.
|
|
14
|
+
|
|
15
|
+
#### How file changes are handled
|
|
16
|
+
With HMR (Hot Module Replacement):
|
|
17
|
+
* Changes in `.js`, `.ts`, `.less`, `.sass` and other file types that are accepted will cause a refresh of the application.
|
|
18
|
+
* Changes in `App_Resources` will cause a rebuild of the application.
|
|
19
|
+
* Changes in any `package.json` file inside the project will cause a rebuild of the application.
|
|
20
|
+
* Changes in `node_modules/somePlugin` if accepted will cause a refresh of the application.
|
|
21
|
+
* Changes in `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
22
|
+
* Changes in `node_modules/somePlugin/package.json` file will cause a rebuild of the application.
|
|
23
|
+
* Changes that are not accepted and HMR fails will cause a restart of the native application.
|
|
24
|
+
|
|
25
|
+
With **no** HMR:
|
|
26
|
+
* Changes in `.js`, `.ts`, `.less`, `.sass` and other file types will cause a restart of the native application.
|
|
27
|
+
* Changes in `App_Resources` will cause a rebuild of the application.
|
|
28
|
+
* Changes in any `package.json` file inside the project will cause a rebuild of the application.
|
|
29
|
+
* Changes in `node_modules/somePlugin` will cause a restart of the native application.
|
|
30
|
+
* Changes in `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
31
|
+
* Changes in `node_modules/somePlugin/package.json` file will cause a rebuild of the application.
|
|
32
|
+
<% } %>
|
|
33
|
+
|
|
34
|
+
### Commands
|
|
35
|
+
|
|
36
|
+
Usage | Synopsis
|
|
37
|
+
---|---
|
|
38
|
+
Run on all connected devices | `$ ns run [--release] [--justlaunch]`
|
|
39
|
+
Run on a selected connected device or running emulator. Will start emulator with specified `Device Identifier`, if not already running. | `$ ns run --device <Device ID> [--release] [--justlaunch]`
|
|
40
|
+
<% if((isConsole && isMacOS) || isHtml) { %>Run on all connected devices of the specified `Platform` | `$ ns run <Platform> [--release] [--justlaunch]`<% } %>
|
|
41
|
+
|
|
42
|
+
### Options
|
|
43
|
+
|
|
44
|
+
* `--justlaunch` - If set, does not print the application output in the console.
|
|
45
|
+
* `--release` - If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.
|
|
46
|
+
* `--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.
|
|
47
|
+
* `--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.
|
|
48
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
49
|
+
* `--env.aot` - creates Ahead-Of-Time build (Angular only).
|
|
50
|
+
* `--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).
|
|
51
|
+
* `--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.
|
|
52
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
53
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
54
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
55
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
56
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
57
|
+
* `--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`.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<% if((isConsole && isMacOS) || isHtml) { %>### Arguments
|
|
61
|
+
`<Platform>` is the target mobile platform for which you want to run your project. You can set the following target platforms:
|
|
62
|
+
* `android` - Run your project on all Android devices and emulators.
|
|
63
|
+
* `ios` - Run your project on all iOS devices and simulators.
|
|
64
|
+
|
|
65
|
+
<% } %>
|
|
66
|
+
|
|
67
|
+
<% if(isHtml) { %>
|
|
68
|
+
|
|
69
|
+
### Command Limitations
|
|
70
|
+
|
|
71
|
+
* The command will work with all connected devices and running emulators on macOS. On Windows and Linux the command will work with Android devices only.
|
|
72
|
+
* In case a platform is not specified and there's no running devices and emulators, the command will fail.
|
|
73
|
+
|
|
74
|
+
### Related Commands
|
|
75
|
+
|
|
76
|
+
Command | Description
|
|
77
|
+
----------|----------
|
|
78
|
+
[appstore](../../publishing/appstore.html) | Lists applications registered in iTunes Connect.
|
|
79
|
+
[appstore upload](../../publishing/appstore-upload.html) | Uploads project to iTunes Connect.
|
|
80
|
+
[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.
|
|
81
|
+
[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.
|
|
82
|
+
[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.
|
|
83
|
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
|
|
84
|
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
|
|
85
|
+
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
|
|
86
|
+
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
|
|
87
|
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
|
|
88
|
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
|
|
89
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
90
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
91
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
92
|
+
<% } %>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns test android
|
|
3
|
+
position: 20
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns test android
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs the tests in your project on connected Android devices and Android emulators.<% if(isConsole) { %> Your project must already be configured for unit testing by running `$ ns test init`.<% } %>
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
------|-------
|
|
16
|
+
Run tests on all connected devices | `$ ns test android [--watch] [--debug-brk] [--aab]`
|
|
17
|
+
Run tests on a selected device | `$ ns test android --device <Device ID> [--watch] [--debug-brk] [--aab]`
|
|
18
|
+
|
|
19
|
+
### Options
|
|
20
|
+
|
|
21
|
+
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-run.
|
|
22
|
+
* `--device` - Specifies the serial number or the index of the connected device on which to run the tests. To list all connected devices, grouped by platform, run `$ ns device`. `<Device ID>` is the device index or identifier as listed by the `$ ns device` command.
|
|
23
|
+
* `--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
|
|
24
|
+
* `--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
|
|
25
|
+
* `--env.uglify` - provides basic obfuscation and smaller app size.
|
|
26
|
+
* `--env.report` - creates a Webpack report inside a `report` folder in the root folder.
|
|
27
|
+
* `--env.sourceMap` - creates inline source maps.
|
|
28
|
+
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
29
|
+
* `--aab` - Specifies that the command will produce and deploy an Android App Bundle.
|
|
30
|
+
* `--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`.
|
|
31
|
+
|
|
32
|
+
<% if(isHtml) { %>
|
|
33
|
+
|
|
34
|
+
### Prerequisites
|
|
35
|
+
|
|
36
|
+
* Verify that [you have configured your project for unit testing](test-init.html).
|
|
37
|
+
* Verify that [you have stored your unit tests in `app` → `tests`](http://docs.nativescript.org/testing).
|
|
38
|
+
* Verify that [you have configured your system and devices properly](http://docs.nativescript.org/testing).
|
|
39
|
+
|
|
40
|
+
### Related Commands
|
|
41
|
+
|
|
42
|
+
Command | Description
|
|
43
|
+
--------|------------
|
|
44
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
45
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
46
|
+
<% } %>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns test init
|
|
3
|
+
position: 21
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns test init
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Configures your project for unit testing with a selected framework. This operation installs the @nativescript/unit-test-runner npm module and its dependencies and creates a `tests` folder in the `app` directory.
|
|
11
|
+
|
|
12
|
+
### Commands
|
|
13
|
+
|
|
14
|
+
Usage | Synopsis
|
|
15
|
+
------|-------
|
|
16
|
+
General | `$ ns test init [--framework <Framework>]`
|
|
17
|
+
|
|
18
|
+
### Options
|
|
19
|
+
|
|
20
|
+
* `--framework <Framework>` - Sets the unit testing framework to install. The following frameworks are available: mocha, jasmine and qunit.
|
|
21
|
+
|
|
22
|
+
<% if(isHtml) { %>
|
|
23
|
+
|
|
24
|
+
### Command Limitations
|
|
25
|
+
|
|
26
|
+
* You can configure only one unit testing framework per project.
|
|
27
|
+
|
|
28
|
+
### Related Commands
|
|
29
|
+
|
|
30
|
+
Command | Description
|
|
31
|
+
--------|------------
|
|
32
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
33
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
34
|
+
<% } %>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns test ios
|
|
3
|
+
position: 22
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns test ios
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs the tests in your project on connected iOS devices or the iOS Simulator.<% if(isConsole && isMacOS) { %> Your project must already be configured for unit testing by running `$ ns test init`.<% } %>
|
|
11
|
+
|
|
12
|
+
<% if(isConsole && (isLinux || isWindows)) { %>WARNING: You can run this command only on macOS systems. To view the complete help for this command, run `$ ns help test ios`<% } %>
|
|
13
|
+
|
|
14
|
+
### Commands
|
|
15
|
+
|
|
16
|
+
Usage | Synopsis
|
|
17
|
+
------|-------
|
|
18
|
+
Run tests on all connected devices | `$ ns test ios [--watch] [--debug-brk]`
|
|
19
|
+
Run tests on a selected device | `$ ns test ios --device <Device ID> [--watch] [--debug-brk]`
|
|
20
|
+
Run tests in the iOS Simulator | `$ ns test ios --emulator [--watch] [--debug-brk]`
|
|
21
|
+
|
|
22
|
+
<% if((isConsole && isMacOS) || isHtml) { %>
|
|
23
|
+
|
|
24
|
+
### Options
|
|
25
|
+
|
|
26
|
+
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-ran.
|
|
27
|
+
* `--device` - Specifies the serial number or the index of the connected device on which you want to run tests. To list all connected devices, grouped by platform, run `$ ns device`. You cannot set `--device` and `--emulator` simultaneously. `<Device ID>` is the device index or identifier as listed by the `$ ns device` command.
|
|
28
|
+
* `--emulator` - Runs tests on the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously.
|
|
29
|
+
* `--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
|
|
30
|
+
* `--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`.
|
|
31
|
+
|
|
32
|
+
<% } %>
|
|
33
|
+
|
|
34
|
+
<% if(isHtml) { %>
|
|
35
|
+
|
|
36
|
+
### Prerequisites
|
|
37
|
+
|
|
38
|
+
* Verify that [you have configured your project for unit testing](test-init.html).
|
|
39
|
+
* Verify that [you have stored your unit tests in `app` → `tests`](http://docs.nativescript.org/testing).
|
|
40
|
+
* Verify that [you have configured your system and devices properly](http://docs.nativescript.org/testing).
|
|
41
|
+
|
|
42
|
+
### Related Commands
|
|
43
|
+
|
|
44
|
+
Command | Description
|
|
45
|
+
--------|------------
|
|
46
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
47
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
48
|
+
<% } %>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<% if (isJekyll) { %>---
|
|
2
|
+
title: ns test
|
|
3
|
+
position: 23
|
|
4
|
+
---<% } %>
|
|
5
|
+
|
|
6
|
+
# ns test
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
|
|
10
|
+
Runs unit tests on the selected mobile platform.<% if(isConsole) { %> Your project must already be configured for unit testing by running `$ ns test init`.<% } %>
|
|
11
|
+
|
|
12
|
+
<% if(isHtml) { %>
|
|
13
|
+
#### How file changes are handled
|
|
14
|
+
* Changes in `.js`, `.ts`, `.less`, `.sass` and other file types will cause a restart of the native application.
|
|
15
|
+
* Changes in `App_Resources` will cause a rebuild of the application.
|
|
16
|
+
* Changes in any `package.json` file inside the project will cause a rebuild of the application.
|
|
17
|
+
* Changes in `node_modules/somePlugin` will cause a restart of the native application.
|
|
18
|
+
* Changes in `node_modules/somePlugin/platforms` will cause a rebuild of the application.
|
|
19
|
+
* Changes in `node_modules/somePlugin/package.json` file will cause a rebuild of the application.
|
|
20
|
+
<% } %>
|
|
21
|
+
|
|
22
|
+
### Commands
|
|
23
|
+
|
|
24
|
+
Usage | Synopsis
|
|
25
|
+
------|-------
|
|
26
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns test <Platform>`<% } %><% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns test android`<% } %>
|
|
27
|
+
|
|
28
|
+
<% if((isConsole && isMacOS) || isHtml) { %>### Arguments
|
|
29
|
+
`<Platform>` is the target mobile platform on which you want to run the tests. You can set the following target platforms.
|
|
30
|
+
* `android` - Runs the tests in your project on connected Android devices or Android emulators.
|
|
31
|
+
* `ios` - Runs the tests in your project on connected iOS devices.<% } %>
|
|
32
|
+
|
|
33
|
+
<% if(isHtml) { %>
|
|
34
|
+
|
|
35
|
+
### Prerequisites
|
|
36
|
+
|
|
37
|
+
* Verify that [you have configured your project for unit testing](test-init.html).
|
|
38
|
+
* Verify that [you have stored your unit tests in `app/tests`](http://docs.nativescript.org/testing).
|
|
39
|
+
* Verify that [you have configured your system and devices properly](http://docs.nativescript.org/testing).
|
|
40
|
+
|
|
41
|
+
### Related Commands
|
|
42
|
+
|
|
43
|
+
Command | Description
|
|
44
|
+
--------|------------
|
|
45
|
+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
|
|
46
|
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
|
|
47
|
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
|
|
48
|
+
<% } %>
|