@nrwl/react-native 16.0.0-beta.0 → 16.0.0-beta.1
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/executors.json +40 -40
- package/generators.json +2 -107
- package/index.d.ts +1 -5
- package/index.js +2 -11
- package/index.js.map +1 -1
- package/package.json +7 -25
- package/plugins/jest/svg-mock.js.map +1 -1
- package/plugins/with-nx-metro.d.ts +1 -8
- package/plugins/with-nx-metro.js +2 -29
- package/plugins/with-nx-metro.js.map +1 -1
- package/.eslintrc.json +0 -19
- package/README.md +0 -63
- package/migrations.json +0 -1285
- package/plugins/metro-resolver.d.ts +0 -1
- package/plugins/metro-resolver.js +0 -135
- package/plugins/metro-resolver.js.map +0 -1
- package/project.json +0 -61
- package/src/executors/build-android/build-android.impl.d.ts +0 -6
- package/src/executors/build-android/build-android.impl.js +0 -76
- package/src/executors/build-android/build-android.impl.js.map +0 -1
- package/src/executors/build-android/build-android.impl.ts +0 -108
- package/src/executors/build-android/compat.d.ts +0 -2
- package/src/executors/build-android/compat.js +0 -6
- package/src/executors/build-android/compat.js.map +0 -1
- package/src/executors/build-android/schema.d.ts +0 -31
- package/src/executors/build-android/schema.json +0 -102
- package/src/executors/build-ios/build-ios.impl.d.ts +0 -6
- package/src/executors/build-ios/build-ios.impl.js +0 -77
- package/src/executors/build-ios/build-ios.impl.js.map +0 -1
- package/src/executors/build-ios/build-ios.impl.ts +0 -118
- package/src/executors/build-ios/compat.d.ts +0 -2
- package/src/executors/build-ios/compat.js +0 -6
- package/src/executors/build-ios/compat.js.map +0 -1
- package/src/executors/build-ios/schema.d.ts +0 -22
- package/src/executors/build-ios/schema.json +0 -106
- package/src/executors/bundle/bundle.impl.d.ts +0 -6
- package/src/executors/bundle/bundle.impl.js +0 -58
- package/src/executors/bundle/bundle.impl.js.map +0 -1
- package/src/executors/bundle/bundle.impl.ts +0 -76
- package/src/executors/bundle/compat.d.ts +0 -2
- package/src/executors/bundle/compat.js +0 -6
- package/src/executors/bundle/compat.js.map +0 -1
- package/src/executors/bundle/schema.d.ts +0 -16
- package/src/executors/bundle/schema.json +0 -92
- package/src/executors/ensure-symlink/compat.d.ts +0 -2
- package/src/executors/ensure-symlink/compat.js +0 -6
- package/src/executors/ensure-symlink/compat.js.map +0 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts +0 -5
- package/src/executors/ensure-symlink/ensure-symlink.impl.js +0 -13
- package/src/executors/ensure-symlink/ensure-symlink.impl.js.map +0 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.ts +0 -18
- package/src/executors/ensure-symlink/schema.json +0 -11
- package/src/executors/pod-install/compat.d.ts +0 -2
- package/src/executors/pod-install/compat.js +0 -6
- package/src/executors/pod-install/compat.js.map +0 -1
- package/src/executors/pod-install/pod-install.impl.d.ts +0 -6
- package/src/executors/pod-install/pod-install.impl.js +0 -15
- package/src/executors/pod-install/pod-install.impl.js.map +0 -1
- package/src/executors/pod-install/pod-install.impl.ts +0 -21
- package/src/executors/pod-install/schema.d.ts +0 -3
- package/src/executors/pod-install/schema.json +0 -18
- package/src/executors/run-android/compat.d.ts +0 -2
- package/src/executors/run-android/compat.js +0 -6
- package/src/executors/run-android/compat.js.map +0 -1
- package/src/executors/run-android/run-android.impl.d.ts +0 -6
- package/src/executors/run-android/run-android.impl.js +0 -72
- package/src/executors/run-android/run-android.impl.js.map +0 -1
- package/src/executors/run-android/run-android.impl.ts +0 -110
- package/src/executors/run-android/schema.d.ts +0 -24
- package/src/executors/run-android/schema.json +0 -121
- package/src/executors/run-ios/compat.d.ts +0 -2
- package/src/executors/run-ios/compat.js +0 -6
- package/src/executors/run-ios/compat.js.map +0 -1
- package/src/executors/run-ios/run-ios.impl.d.ts +0 -6
- package/src/executors/run-ios/run-ios.impl.js +0 -78
- package/src/executors/run-ios/run-ios.impl.js.map +0 -1
- package/src/executors/run-ios/run-ios.impl.ts +0 -120
- package/src/executors/run-ios/schema.d.ts +0 -12
- package/src/executors/run-ios/schema.json +0 -119
- package/src/executors/start/compat.d.ts +0 -2
- package/src/executors/start/compat.js +0 -6
- package/src/executors/start/compat.js.map +0 -1
- package/src/executors/start/lib/is-packager-running.d.ts +0 -1
- package/src/executors/start/lib/is-packager-running.js +0 -19
- package/src/executors/start/lib/is-packager-running.js.map +0 -1
- package/src/executors/start/schema.d.ts +0 -7
- package/src/executors/start/schema.json +0 -28
- package/src/executors/start/start.impl.d.ts +0 -8
- package/src/executors/start/start.impl.js +0 -99
- package/src/executors/start/start.impl.js.map +0 -1
- package/src/executors/start/start.impl.ts +0 -120
- package/src/executors/storybook/compat.d.ts +0 -2
- package/src/executors/storybook/compat.js +0 -6
- package/src/executors/storybook/compat.js.map +0 -1
- package/src/executors/storybook/schema.d.ts +0 -7
- package/src/executors/storybook/schema.json +0 -34
- package/src/executors/storybook/storybook.impl.d.ts +0 -5
- package/src/executors/storybook/storybook.impl.js +0 -76
- package/src/executors/storybook/storybook.impl.js.map +0 -1
- package/src/executors/storybook/storybook.impl.ts +0 -105
- package/src/executors/sync-deps/compat.d.ts +0 -2
- package/src/executors/sync-deps/compat.js +0 -6
- package/src/executors/sync-deps/compat.js.map +0 -1
- package/src/executors/sync-deps/schema.d.ts +0 -4
- package/src/executors/sync-deps/schema.json +0 -28
- package/src/executors/sync-deps/sync-deps.impl.d.ts +0 -8
- package/src/executors/sync-deps/sync-deps.impl.js +0 -62
- package/src/executors/sync-deps/sync-deps.impl.js.map +0 -1
- package/src/executors/sync-deps/sync-deps.impl.ts +0 -101
- package/src/generators/application/application.d.ts +0 -5
- package/src/generators/application/application.js +0 -40
- package/src/generators/application/application.js.map +0 -1
- package/src/generators/application/application.spec.ts +0 -214
- package/src/generators/application/files/app/.ruby-version +0 -1
- package/src/generators/application/files/app/Gemfile.template +0 -6
- package/src/generators/application/files/app/android/app/build.gradle.template +0 -184
- package/src/generators/application/files/app/android/app/debug.keystore +0 -0
- package/src/generators/application/files/app/android/app/proguard-rules.pro +0 -10
- package/src/generators/application/files/app/android/app/src/androidTest/java/com/__lowerCaseName__/DetoxTest.java.template +0 -30
- package/src/generators/application/files/app/android/app/src/debug/AndroidManifest.xml.template +0 -14
- package/src/generators/application/files/app/android/app/src/debug/java/com/__lowerCaseName__/ReactNativeFlipper.java.template +0 -75
- package/src/generators/application/files/app/android/app/src/main/AndroidManifest.xml.template +0 -26
- package/src/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainActivity.java.template +0 -35
- package/src/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainApplication.java.template +0 -63
- package/src/generators/application/files/app/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/values/strings.xml.template +0 -3
- package/src/generators/application/files/app/android/app/src/main/res/values/styles.xml +0 -9
- package/src/generators/application/files/app/android/app/src/main/res/xml/network_security_config.xml +0 -7
- package/src/generators/application/files/app/android/app/src/release/java/com/__lowerCaseName__/ReactNativeFlipper.java.template +0 -20
- package/src/generators/application/files/app/android/build.gradle.template +0 -34
- package/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/src/generators/application/files/app/android/gradle.properties +0 -44
- package/src/generators/application/files/app/android/gradlew.bat +0 -89
- package/src/generators/application/files/app/android/gradlew.template +0 -234
- package/src/generators/application/files/app/android/settings.gradle.template +0 -7
- package/src/generators/application/files/app/app.json.template +0 -4
- package/src/generators/application/files/app/babel.config.json.template +0 -3
- package/src/generators/application/files/app/ios/.xcode.env.template +0 -12
- package/src/generators/application/files/app/ios/Podfile.template +0 -60
- package/src/generators/application/files/app/ios/__className__/AppDelegate.h +0 -6
- package/src/generators/application/files/app/ios/__className__/AppDelegate.mm.template +0 -36
- package/src/generators/application/files/app/ios/__className__/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/src/generators/application/files/app/ios/__className__/Images.xcassets/Contents.json +0 -6
- package/src/generators/application/files/app/ios/__className__/Info.plist.template +0 -55
- package/src/generators/application/files/app/ios/__className__/LaunchScreen.storyboard.template +0 -47
- package/src/generators/application/files/app/ios/__className__/main.m +0 -10
- package/src/generators/application/files/app/ios/__className__.xcodeproj/project.pbxproj.template +0 -702
- package/src/generators/application/files/app/ios/__className__.xcodeproj/xcshareddata/xcschemes/__className__.xcscheme.template +0 -88
- package/src/generators/application/files/app/ios/__className__.xcworkspace/contents.xcworkspacedata +0 -10
- package/src/generators/application/files/app/ios/__className__Tests/Info.plist +0 -24
- package/src/generators/application/files/app/ios/__className__Tests/__className__Tests.m +0 -66
- package/src/generators/application/files/app/metro.config.js.template +0 -38
- package/src/generators/application/files/app/package.json.template +0 -15
- package/src/generators/application/files/app/src/app/App.spec.tsx.template +0 -9
- package/src/generators/application/files/app/src/app/App.tsx.template +0 -694
- package/src/generators/application/files/app/src/main.tsx.template +0 -4
- package/src/generators/application/files/app/test-setup.ts.template +0 -1
- package/src/generators/application/files/app/tsconfig.app.json.template +0 -9
- package/src/generators/application/files/app/tsconfig.json.template +0 -25
- package/src/generators/application/lib/add-detox.d.ts +0 -3
- package/src/generators/application/lib/add-detox.js +0 -16
- package/src/generators/application/lib/add-detox.js.map +0 -1
- package/src/generators/application/lib/add-project.d.ts +0 -3
- package/src/generators/application/lib/add-project.js +0 -83
- package/src/generators/application/lib/add-project.js.map +0 -1
- package/src/generators/application/lib/create-application-files.d.ts +0 -3
- package/src/generators/application/lib/create-application-files.js +0 -20
- package/src/generators/application/lib/create-application-files.js.map +0 -1
- package/src/generators/application/lib/nomalize-options.spec.ts +0 -138
- package/src/generators/application/lib/normalize-options.d.ts +0 -13
- package/src/generators/application/lib/normalize-options.js +0 -36
- package/src/generators/application/lib/normalize-options.js.map +0 -1
- package/src/generators/application/schema.d.ts +0 -19
- package/src/generators/application/schema.json +0 -89
- package/src/generators/component/component.d.ts +0 -5
- package/src/generators/component/component.js +0 -53
- package/src/generators/component/component.js.map +0 -1
- package/src/generators/component/component.spec.ts +0 -135
- package/src/generators/component/files/__fileName__.spec.tsx__tmpl__ +0 -11
- package/src/generators/component/files/__fileName__.tsx__tmpl__ +0 -32
- package/src/generators/component/lib/add-import.d.ts +0 -3
- package/src/generators/component/lib/add-import.js +0 -34
- package/src/generators/component/lib/add-import.js.map +0 -1
- package/src/generators/component/lib/normalize-options.d.ts +0 -8
- package/src/generators/component/lib/normalize-options.js +0 -58
- package/src/generators/component/lib/normalize-options.js.map +0 -1
- package/src/generators/component/schema.d.ts +0 -14
- package/src/generators/component/schema.json +0 -78
- package/src/generators/component-story/component-story.d.ts +0 -8
- package/src/generators/component-story/component-story.js +0 -113
- package/src/generators/component-story/component-story.js.map +0 -1
- package/src/generators/component-story/component-story.spec.ts +0 -433
- package/src/generators/component-story/files/__componentFileName__.stories.__fileExt__ +0 -24
- package/src/generators/component-story/schema.d.ts +0 -5
- package/src/generators/component-story/schema.json +0 -34
- package/src/generators/init/init.d.ts +0 -6
- package/src/generators/init/init.js +0 -58
- package/src/generators/init/init.js.map +0 -1
- package/src/generators/init/init.spec.ts +0 -81
- package/src/generators/init/lib/add-git-ignore-entry.d.ts +0 -2
- package/src/generators/init/lib/add-git-ignore-entry.js +0 -25
- package/src/generators/init/lib/add-git-ignore-entry.js.map +0 -1
- package/src/generators/init/lib/gitignore-entries.d.ts +0 -1
- package/src/generators/init/lib/gitignore-entries.js +0 -75
- package/src/generators/init/lib/gitignore-entries.js.map +0 -1
- package/src/generators/init/schema.d.ts +0 -7
- package/src/generators/init/schema.json +0 -40
- package/src/generators/library/files/lib/README.md +0 -7
- package/src/generators/library/files/lib/babel.config.json.template +0 -17
- package/src/generators/library/files/lib/package.json__tmpl__ +0 -4
- package/src/generators/library/files/lib/src/index.ts__tmpl__ +0 -0
- package/src/generators/library/files/lib/test-setup.ts.template +0 -1
- package/src/generators/library/files/lib/tsconfig.json__tmpl__ +0 -16
- package/src/generators/library/files/lib/tsconfig.lib.json__tmpl__ +0 -9
- package/src/generators/library/lib/normalize-options.d.ts +0 -13
- package/src/generators/library/lib/normalize-options.js +0 -26
- package/src/generators/library/lib/normalize-options.js.map +0 -1
- package/src/generators/library/library.d.ts +0 -5
- package/src/generators/library/library.js +0 -101
- package/src/generators/library/library.js.map +0 -1
- package/src/generators/library/library.spec.ts +0 -397
- package/src/generators/library/schema.d.ts +0 -22
- package/src/generators/library/schema.json +0 -102
- package/src/generators/stories/schema.d.ts +0 -5
- package/src/generators/stories/schema.json +0 -42
- package/src/generators/stories/stories-app.spec.ts +0 -145
- package/src/generators/stories/stories-lib.spec.ts +0 -113
- package/src/generators/stories/stories.d.ts +0 -6
- package/src/generators/stories/stories.js +0 -63
- package/src/generators/stories/stories.js.map +0 -1
- package/src/generators/storybook-configuration/configuration.d.ts +0 -5
- package/src/generators/storybook-configuration/configuration.js +0 -60
- package/src/generators/storybook-configuration/configuration.js.map +0 -1
- package/src/generators/storybook-configuration/configuration.spec.ts +0 -146
- package/src/generators/storybook-configuration/files/app/storybook.ts.template +0 -9
- package/src/generators/storybook-configuration/files/app/toggle-storybook.tsx.template +0 -114
- package/src/generators/storybook-configuration/files/root/story-loader.js.template +0 -13
- package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.d.ts +0 -6
- package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js +0 -26
- package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js.map +0 -1
- package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.spec.ts +0 -161
- package/src/generators/storybook-configuration/lib/create-storybook-files.d.ts +0 -6
- package/src/generators/storybook-configuration/lib/create-storybook-files.js +0 -45
- package/src/generators/storybook-configuration/lib/create-storybook-files.js.map +0 -1
- package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.d.ts +0 -7
- package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js +0 -30
- package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js.map +0 -1
- package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.spec.ts +0 -65
- package/src/generators/storybook-configuration/schema.d.ts +0 -11
- package/src/generators/storybook-configuration/schema.json +0 -66
- package/src/generators/upgrade-native/lib/create-native-files.d.ts +0 -3
- package/src/generators/upgrade-native/lib/create-native-files.js +0 -15
- package/src/generators/upgrade-native/lib/create-native-files.js.map +0 -1
- package/src/generators/upgrade-native/lib/normalize-options.d.ts +0 -12
- package/src/generators/upgrade-native/lib/normalize-options.js +0 -28
- package/src/generators/upgrade-native/lib/normalize-options.js.map +0 -1
- package/src/generators/upgrade-native/schema.d.ts +0 -9
- package/src/generators/upgrade-native/schema.json +0 -41
- package/src/generators/upgrade-native/upgrade-native.d.ts +0 -9
- package/src/generators/upgrade-native/upgrade-native.js +0 -33
- package/src/generators/upgrade-native/upgrade-native.js.map +0 -1
- package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.d.ts +0 -8
- package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.js +0 -63
- package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.js.map +0 -1
- package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.spec.ts +0 -79
- package/src/migrations/update-12-5-0/update-jest-for-react-native.d.ts +0 -2
- package/src/migrations/update-12-5-0/update-jest-for-react-native.js +0 -62
- package/src/migrations/update-12-5-0/update-jest-for-react-native.js.map +0 -1
- package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.d.ts +0 -2
- package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.js +0 -22
- package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.js.map +0 -1
- package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.spec.ts +0 -48
- package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.d.ts +0 -6
- package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.js +0 -41
- package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.js.map +0 -1
- package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.spec.ts +0 -61
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.d.ts +0 -6
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js +0 -33
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js.map +0 -1
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.spec.ts +0 -192
- package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.d.ts +0 -5
- package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.js +0 -39
- package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.js.map +0 -1
- package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.spec.ts +0 -84
- package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.d.ts +0 -5
- package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.js +0 -42
- package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.js.map +0 -1
- package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.spec.ts +0 -48
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.d.ts +0 -6
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.js +0 -33
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.js.map +0 -1
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.spec.ts +0 -190
- package/src/migrations/update-14-5-5/add-exclude-sync-deps.d.ts +0 -5
- package/src/migrations/update-14-5-5/add-exclude-sync-deps.js +0 -26
- package/src/migrations/update-14-5-5/add-exclude-sync-deps.js.map +0 -1
- package/src/migrations/update-14-5-5/add-exclude-sync-deps.spec.ts +0 -39
- package/src/migrations/update-14-5-8/change-searchDir-storybook.d.ts +0 -5
- package/src/migrations/update-14-5-8/change-searchDir-storybook.js +0 -26
- package/src/migrations/update-14-5-8/change-searchDir-storybook.js.map +0 -1
- package/src/migrations/update-14-5-8/change-searchDir-storybook.spec.ts +0 -39
- package/src/migrations/update-14-6-0/remove-jest-transform.d.ts +0 -5
- package/src/migrations/update-14-6-0/remove-jest-transform.js +0 -58
- package/src/migrations/update-14-6-0/remove-jest-transform.js.map +0 -1
- package/src/migrations/update-14-6-0/remove-jest-transform.spec.ts +0 -109
- package/src/migrations/update-15-0-0/add-babel-inputs.d.ts +0 -2
- package/src/migrations/update-15-0-0/add-babel-inputs.js +0 -13
- package/src/migrations/update-15-0-0/add-babel-inputs.js.map +0 -1
- package/src/migrations/update-15-0-0/add-babel-inputs.spec.ts +0 -73
- package/src/migrations/update-15-9-1/add-build-ios-target.d.ts +0 -5
- package/src/migrations/update-15-9-1/add-build-ios-target.js +0 -34
- package/src/migrations/update-15-9-1/add-build-ios-target.js.map +0 -1
- package/src/migrations/update-15-9-1/add-build-ios-target.spec.ts +0 -36
- package/src/utils/add-jest.d.ts +0 -2
- package/src/utils/add-jest.js +0 -38
- package/src/utils/add-jest.js.map +0 -1
- package/src/utils/add-linting.d.ts +0 -12
- package/src/utils/add-linting.js +0 -41
- package/src/utils/add-linting.js.map +0 -1
- package/src/utils/add-linting.spec.ts +0 -42
- package/src/utils/chmod-android-gradle-files.d.ts +0 -3
- package/src/utils/chmod-android-gradle-files.js +0 -24
- package/src/utils/chmod-android-gradle-files.js.map +0 -1
- package/src/utils/ensure-node-modules-symlink.d.ts +0 -9
- package/src/utils/ensure-node-modules-symlink.js +0 -29
- package/src/utils/ensure-node-modules-symlink.js.map +0 -1
- package/src/utils/ensure-node-modules-symlink.spec.ts +0 -108
- package/src/utils/find-all-npm-dependencies.d.ts +0 -2
- package/src/utils/find-all-npm-dependencies.js +0 -26
- package/src/utils/find-all-npm-dependencies.js.map +0 -1
- package/src/utils/find-all-npm-dependencies.spec.ts +0 -95
- package/src/utils/format-file.d.ts +0 -1
- package/src/utils/format-file.js +0 -17
- package/src/utils/format-file.js.map +0 -1
- package/src/utils/get-cli-options.d.ts +0 -8
- package/src/utils/get-cli-options.js +0 -31
- package/src/utils/get-cli-options.js.map +0 -1
- package/src/utils/pod-install-task.d.ts +0 -8
- package/src/utils/pod-install-task.js +0 -62
- package/src/utils/pod-install-task.js.map +0 -1
- package/src/utils/symlink-task.d.ts +0 -2
- package/src/utils/symlink-task.js +0 -19
- package/src/utils/symlink-task.js.map +0 -1
- package/src/utils/testing-generators.d.ts +0 -3
- package/src/utils/testing-generators.js +0 -36
- package/src/utils/testing-generators.js.map +0 -1
- package/src/utils/versions.d.ts +0 -20
- package/src/utils/versions.js +0 -24
- package/src/utils/versions.js.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { join } from 'path';
|
|
2
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
3
|
-
|
|
4
|
-
import { runPodInstall } from '../../utils/pod-install-task';
|
|
5
|
-
import { ReactNativePodInstallOptions } from './schema';
|
|
6
|
-
|
|
7
|
-
export interface ReactNativePodInstallOutput {
|
|
8
|
-
success: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default async function* podInstall(
|
|
12
|
-
options: ReactNativePodInstallOptions,
|
|
13
|
-
context: ExecutorContext
|
|
14
|
-
): AsyncGenerator<ReactNativePodInstallOutput> {
|
|
15
|
-
const projectRoot =
|
|
16
|
-
context.projectsConfigurations.projects[context.projectName].root;
|
|
17
|
-
const iosDirectory = join(context.root, projectRoot, 'ios');
|
|
18
|
-
await runPodInstall(iosDirectory, true, options.buildFolder)();
|
|
19
|
-
|
|
20
|
-
yield { success: true };
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"$id": "NxReactNativePodInstall",
|
|
6
|
-
"$schema": "http://json-schema.org/schema",
|
|
7
|
-
"title": "Run Pod Install for React Native iOS Project",
|
|
8
|
-
"description": "Run `pod install` for React Native iOS Project.",
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"buildFolder": {
|
|
12
|
-
"description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\". Relative to ios directory",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"default": "./build"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"required": ["buildFolder"]
|
|
18
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
4
|
-
const run_android_impl_1 = require("./run-android.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(run_android_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-android/compat.ts"],"names":[],"mappings":";;AAAA,yCAAiD;AAEjD,yDAAoD;AAEpD,kBAAe,IAAA,0BAAiB,EAAC,0BAAkB,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
-
import { ReactNativeRunAndroidOptions } from './schema';
|
|
3
|
-
export interface ReactNativeRunAndroidOutput {
|
|
4
|
-
success: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default function runAndroidExecutor(options: ReactNativeRunAndroidOptions, context: ExecutorContext): AsyncGenerator<ReactNativeRunAndroidOutput>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
const ensure_node_modules_symlink_1 = require("../../utils/ensure-node-modules-symlink");
|
|
7
|
-
const sync_deps_impl_1 = require("../sync-deps/sync-deps.impl");
|
|
8
|
-
const start_impl_1 = require("../start/start.impl");
|
|
9
|
-
const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
|
|
10
|
-
const get_cli_options_1 = require("../../utils/get-cli-options");
|
|
11
|
-
let childProcess;
|
|
12
|
-
function runAndroidExecutor(options, context) {
|
|
13
|
-
return tslib_1.__asyncGenerator(this, arguments, function* runAndroidExecutor_1() {
|
|
14
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
15
|
-
(0, ensure_node_modules_symlink_1.ensureNodeModulesSymlink)(context.root, projectRoot);
|
|
16
|
-
(0, chmod_android_gradle_files_1.chmodAndroidGradlewFiles)((0, path_1.join)(projectRoot, 'android'));
|
|
17
|
-
if (options.sync) {
|
|
18
|
-
(0, sync_deps_impl_1.displayNewlyAddedDepsMessage)(context.projectName, yield tslib_1.__await((0, sync_deps_impl_1.syncDeps)(context.projectName, projectRoot, context.root, context.projectGraph)));
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
const tasks = [runCliRunAndroid(context.root, projectRoot, options)];
|
|
22
|
-
if (options.packager) {
|
|
23
|
-
tasks.push((0, start_impl_1.runCliStart)(context.root, projectRoot, {
|
|
24
|
-
port: options.port,
|
|
25
|
-
resetCache: options.resetCache,
|
|
26
|
-
interactive: options.interactive,
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
yield tslib_1.__await(Promise.all(tasks));
|
|
30
|
-
yield yield tslib_1.__await({ success: true });
|
|
31
|
-
}
|
|
32
|
-
finally {
|
|
33
|
-
if (childProcess) {
|
|
34
|
-
childProcess.kill();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
exports.default = runAndroidExecutor;
|
|
40
|
-
function runCliRunAndroid(workspaceRoot, projectRoot, options) {
|
|
41
|
-
return new Promise((resolve, reject) => {
|
|
42
|
-
/**
|
|
43
|
-
* Call the react native cli with option `--no-packager`
|
|
44
|
-
* Not passing '--packager' due to cli will launch start command from the project root
|
|
45
|
-
*/
|
|
46
|
-
childProcess = (0, child_process_1.fork)((0, path_1.join)(workspaceRoot, './node_modules/react-native/cli.js'), ['run-android', ...createRunAndroidOptions(options), '--no-packager'], {
|
|
47
|
-
cwd: (0, path_1.join)(workspaceRoot, projectRoot),
|
|
48
|
-
env: Object.assign(Object.assign({}, process.env), { RCT_METRO_PORT: options.port.toString() }),
|
|
49
|
-
});
|
|
50
|
-
// Ensure the child process is killed when the parent exits
|
|
51
|
-
process.on('exit', () => childProcess.kill());
|
|
52
|
-
process.on('SIGTERM', () => childProcess.kill());
|
|
53
|
-
childProcess.on('error', (err) => {
|
|
54
|
-
reject(err);
|
|
55
|
-
});
|
|
56
|
-
childProcess.on('exit', (code) => {
|
|
57
|
-
if (code === 0) {
|
|
58
|
-
resolve(code);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
reject(code);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const nxOptions = ['sync', 'packager'];
|
|
67
|
-
const startOptions = ['port', 'resetCache'];
|
|
68
|
-
const deprecatedOptions = ['variant', 'jetifier'];
|
|
69
|
-
function createRunAndroidOptions(options) {
|
|
70
|
-
return (0, get_cli_options_1.getCliOptions)(options, [...nxOptions, ...startOptions, ...deprecatedOptions], ['appId', 'appIdSuffix']);
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=run-android.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-android.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-android/run-android.impl.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAC5B,iDAAmD;AAEnD,yFAAmF;AACnF,gEAGqC;AAErC,oDAAkD;AAClD,uFAAkF;AAClF,iEAA4D;AAM5D,IAAI,YAA0B,CAAC;AAE/B,SAA+B,kBAAkB,CAC/C,OAAqC,EACrC,OAAwB;;QAExB,MAAM,WAAW,GACf,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QACpE,IAAA,sDAAwB,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACpD,IAAA,qDAAwB,EAAC,IAAA,WAAI,EAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;QAEvD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,IAAA,6CAA4B,EAC1B,OAAO,CAAC,WAAW,EACnB,sBAAM,IAAA,yBAAQ,EACZ,OAAO,CAAC,WAAW,EACnB,WAAW,EACX,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,YAAY,CACrB,CAAA,CACF,CAAC;SACH;QAED,IAAI;YACF,MAAM,KAAK,GAAG,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;YACrE,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,KAAK,CAAC,IAAI,CACR,IAAA,wBAAW,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,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E,CAAC,IAAI,EAAE,EAAE;YAC/B,IAAI,IAAI,KAAK,CAAC,EAAE;gBACd,OAAO,CAAC,IAAI,CAAC,CAAC;aACf;iBAAM;gBACL,MAAM,CAAC,IAAI,CAAC,CAAC;aACd;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACvC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC5C,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAElD,SAAS,uBAAuB,CAAC,OAAqC;IACpE,OAAO,IAAA,+BAAa,EAClB,OAAO,EACP,CAAC,GAAG,SAAS,EAAE,GAAG,YAAY,EAAE,GAAG,iBAAiB,CAAC,EACrD,CAAC,OAAO,EAAE,aAAa,CAAC,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
-
import { join } from 'path';
|
|
3
|
-
import { ChildProcess, fork } from 'child_process';
|
|
4
|
-
|
|
5
|
-
import { ensureNodeModulesSymlink } from '../../utils/ensure-node-modules-symlink';
|
|
6
|
-
import {
|
|
7
|
-
displayNewlyAddedDepsMessage,
|
|
8
|
-
syncDeps,
|
|
9
|
-
} from '../sync-deps/sync-deps.impl';
|
|
10
|
-
import { ReactNativeRunAndroidOptions } from './schema';
|
|
11
|
-
import { runCliStart } from '../start/start.impl';
|
|
12
|
-
import { chmodAndroidGradlewFiles } from '../../utils/chmod-android-gradle-files';
|
|
13
|
-
import { getCliOptions } from '../../utils/get-cli-options';
|
|
14
|
-
|
|
15
|
-
export interface ReactNativeRunAndroidOutput {
|
|
16
|
-
success: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
let childProcess: ChildProcess;
|
|
20
|
-
|
|
21
|
-
export default async function* runAndroidExecutor(
|
|
22
|
-
options: ReactNativeRunAndroidOptions,
|
|
23
|
-
context: ExecutorContext
|
|
24
|
-
): AsyncGenerator<ReactNativeRunAndroidOutput> {
|
|
25
|
-
const projectRoot =
|
|
26
|
-
context.projectsConfigurations.projects[context.projectName].root;
|
|
27
|
-
ensureNodeModulesSymlink(context.root, projectRoot);
|
|
28
|
-
chmodAndroidGradlewFiles(join(projectRoot, 'android'));
|
|
29
|
-
|
|
30
|
-
if (options.sync) {
|
|
31
|
-
displayNewlyAddedDepsMessage(
|
|
32
|
-
context.projectName,
|
|
33
|
-
await syncDeps(
|
|
34
|
-
context.projectName,
|
|
35
|
-
projectRoot,
|
|
36
|
-
context.root,
|
|
37
|
-
context.projectGraph
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
try {
|
|
43
|
-
const tasks = [runCliRunAndroid(context.root, projectRoot, options)];
|
|
44
|
-
if (options.packager) {
|
|
45
|
-
tasks.push(
|
|
46
|
-
runCliStart(context.root, projectRoot, {
|
|
47
|
-
port: options.port,
|
|
48
|
-
resetCache: options.resetCache,
|
|
49
|
-
interactive: options.interactive,
|
|
50
|
-
})
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
await Promise.all(tasks);
|
|
55
|
-
|
|
56
|
-
yield { success: true };
|
|
57
|
-
} finally {
|
|
58
|
-
if (childProcess) {
|
|
59
|
-
childProcess.kill();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function runCliRunAndroid(
|
|
65
|
-
workspaceRoot: string,
|
|
66
|
-
projectRoot: string,
|
|
67
|
-
options: ReactNativeRunAndroidOptions
|
|
68
|
-
) {
|
|
69
|
-
return new Promise((resolve, reject) => {
|
|
70
|
-
/**
|
|
71
|
-
* Call the react native cli with option `--no-packager`
|
|
72
|
-
* Not passing '--packager' due to cli will launch start command from the project root
|
|
73
|
-
*/
|
|
74
|
-
childProcess = fork(
|
|
75
|
-
join(workspaceRoot, './node_modules/react-native/cli.js'),
|
|
76
|
-
['run-android', ...createRunAndroidOptions(options), '--no-packager'],
|
|
77
|
-
{
|
|
78
|
-
cwd: join(workspaceRoot, projectRoot),
|
|
79
|
-
env: { ...process.env, RCT_METRO_PORT: options.port.toString() },
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
// Ensure the child process is killed when the parent exits
|
|
84
|
-
process.on('exit', () => childProcess.kill());
|
|
85
|
-
process.on('SIGTERM', () => childProcess.kill());
|
|
86
|
-
|
|
87
|
-
childProcess.on('error', (err) => {
|
|
88
|
-
reject(err);
|
|
89
|
-
});
|
|
90
|
-
childProcess.on('exit', (code) => {
|
|
91
|
-
if (code === 0) {
|
|
92
|
-
resolve(code);
|
|
93
|
-
} else {
|
|
94
|
-
reject(code);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const nxOptions = ['sync', 'packager'];
|
|
101
|
-
const startOptions = ['port', 'resetCache'];
|
|
102
|
-
const deprecatedOptions = ['variant', 'jetifier'];
|
|
103
|
-
|
|
104
|
-
function createRunAndroidOptions(options: ReactNativeRunAndroidOptions) {
|
|
105
|
-
return getCliOptions<ReactNativeRunAndroidOptions>(
|
|
106
|
-
options,
|
|
107
|
-
[...nxOptions, ...startOptions, ...deprecatedOptions],
|
|
108
|
-
['appId', 'appIdSuffix']
|
|
109
|
-
);
|
|
110
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReactNativeBuildAndroidOptions } from '../build-android/schema';
|
|
2
|
-
import { ReactNativeStartOptions } from '../start/schema';
|
|
3
|
-
|
|
4
|
-
// part of options from https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android/src/commands/runAndroid/index.ts
|
|
5
|
-
export interface ReactNativeRunAndroidOptions
|
|
6
|
-
extends ReactNativeBuildAndroidOptions {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated use mode instead
|
|
9
|
-
*/
|
|
10
|
-
variant: string;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated no longer supported in react native cli
|
|
13
|
-
* https://github.com/react-native-community/cli/commit/7c003f2b1d9d80ec5c167614ba533a004272c685
|
|
14
|
-
*/
|
|
15
|
-
jetifier: boolean;
|
|
16
|
-
|
|
17
|
-
// react native options
|
|
18
|
-
appId: string;
|
|
19
|
-
appIdSuffix: string;
|
|
20
|
-
mainActiviy: string;
|
|
21
|
-
deviceId: string;
|
|
22
|
-
listDevices?: boolean;
|
|
23
|
-
binaryPath?: string;
|
|
24
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"$id": "NxReactNativeRunAndroid",
|
|
6
|
-
"$schema": "http://json-schema.org/schema",
|
|
7
|
-
"title": "Run Android application",
|
|
8
|
-
"description": "Run Android target options.",
|
|
9
|
-
"type": "object",
|
|
10
|
-
"presets": [
|
|
11
|
-
{
|
|
12
|
-
"name": "Run Android for the current device architecture",
|
|
13
|
-
"keys": ["activeArchOnly"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "Lists all available Android devices and simulators",
|
|
17
|
-
"keys": ["listDevices"]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "Run Android without metro cache",
|
|
21
|
-
"keys": ["resetCache"]
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"properties": {
|
|
25
|
-
"variant": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Specify your app's build variant (e.g. `debug`, `release`).",
|
|
28
|
-
"default": "debug",
|
|
29
|
-
"examples": ["debug", "release"],
|
|
30
|
-
"x-deprecated": "Deprecated from @react-native-community/cli, use mode instead, e.g. mode=debug. Will be remove in Nx 17."
|
|
31
|
-
},
|
|
32
|
-
"jetifier": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "Run Jetifier – the AndroidX transition tool. By default it runs before Gradle to ease working with libraries that don't support AndroidX yet.",
|
|
35
|
-
"x-deprecated": "Deprecated from @react-native-community/cli. Will be remove in Nx 17."
|
|
36
|
-
},
|
|
37
|
-
"appId": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "Specify an `applicationId` to launch after build. If not specified, `package` from `AndroidManifest.xml` will be used."
|
|
40
|
-
},
|
|
41
|
-
"appIdSuffix": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"description": "Specify an `applicationIdSuffix` to launch after build."
|
|
44
|
-
},
|
|
45
|
-
"mainActivity": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"description": "Name of the activity to start.",
|
|
48
|
-
"default": "MainActivity"
|
|
49
|
-
},
|
|
50
|
-
"deviceId": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"description": "Builds your app and starts it on a specific device/simulator with the given device id (listed by running `adb devices` on the command line)."
|
|
53
|
-
},
|
|
54
|
-
"listDevices": {
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"description": "Lists all available Android devices and simulators and let you choose one to run the app",
|
|
57
|
-
"default": false
|
|
58
|
-
},
|
|
59
|
-
"binaryPath": {
|
|
60
|
-
"type": "string",
|
|
61
|
-
"description": "Path relative to project root where pre-built .apk binary lives."
|
|
62
|
-
},
|
|
63
|
-
"mode": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"description": "Specify your app's build variant",
|
|
66
|
-
"default": "debug",
|
|
67
|
-
"examples": ["debug", "release"],
|
|
68
|
-
"x-priority": "important"
|
|
69
|
-
},
|
|
70
|
-
"packager": {
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"description": "Launch packager while building",
|
|
73
|
-
"default": true
|
|
74
|
-
},
|
|
75
|
-
"port": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"description": "The port where the packager server is listening on.",
|
|
78
|
-
"default": 8081
|
|
79
|
-
},
|
|
80
|
-
"tasks": {
|
|
81
|
-
"type": "array",
|
|
82
|
-
"items": {
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"description": "Run custom Gradle tasks. By default it's \"assembleDebug\". Will override passed mode and variant arguments.",
|
|
86
|
-
"examples": [
|
|
87
|
-
"assembleDebug",
|
|
88
|
-
"assembleRelease",
|
|
89
|
-
"bundleDebug",
|
|
90
|
-
"bundleRelease",
|
|
91
|
-
"installDebug",
|
|
92
|
-
"installRelease"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"activeArchOnly": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"description": "Build native libraries only for the current device architecture for debug builds.",
|
|
98
|
-
"examples": ["x86_64", "arm64-v8a"],
|
|
99
|
-
"default": false
|
|
100
|
-
},
|
|
101
|
-
"extraParams": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"description": "Custom params passed to gradle build command"
|
|
104
|
-
},
|
|
105
|
-
"interactive": {
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"description": "Explicitly select build type and flavour to use before running a build"
|
|
108
|
-
},
|
|
109
|
-
"sync": {
|
|
110
|
-
"type": "boolean",
|
|
111
|
-
"description": "Syncs npm dependencies to `package.json` (for React Native autolink).",
|
|
112
|
-
"default": true
|
|
113
|
-
},
|
|
114
|
-
"resetCache": {
|
|
115
|
-
"type": "boolean",
|
|
116
|
-
"description": "Resets metro cache.",
|
|
117
|
-
"default": false
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"examplesFile": "../../../docs/run-android-examples.md"
|
|
121
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
4
|
-
const run_ios_impl_1 = require("./run-ios.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(run_ios_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-ios/compat.ts"],"names":[],"mappings":";;AAAA,yCAAiD;AAEjD,iDAA4C;AAE5C,kBAAe,IAAA,0BAAiB,EAAC,sBAAc,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
-
import { ReactNativeRunIosOptions } from './schema';
|
|
3
|
-
export interface ReactNativeRunIosOutput {
|
|
4
|
-
success: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default function runIosExecutor(options: ReactNativeRunIosOptions, context: ExecutorContext): AsyncGenerator<ReactNativeRunIosOutput>;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
const os_1 = require("os");
|
|
7
|
-
const ensure_node_modules_symlink_1 = require("../../utils/ensure-node-modules-symlink");
|
|
8
|
-
const sync_deps_impl_1 = require("../sync-deps/sync-deps.impl");
|
|
9
|
-
const pod_install_task_1 = require("../../utils/pod-install-task");
|
|
10
|
-
const start_impl_1 = require("../start/start.impl");
|
|
11
|
-
const get_cli_options_1 = require("../../utils/get-cli-options");
|
|
12
|
-
let childProcess;
|
|
13
|
-
function runIosExecutor(options, context) {
|
|
14
|
-
return tslib_1.__asyncGenerator(this, arguments, function* runIosExecutor_1() {
|
|
15
|
-
if ((0, os_1.platform)() !== 'darwin') {
|
|
16
|
-
throw new Error(`The run-ios build requires Mac to run`);
|
|
17
|
-
}
|
|
18
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
19
|
-
(0, ensure_node_modules_symlink_1.ensureNodeModulesSymlink)(context.root, projectRoot);
|
|
20
|
-
if (options.sync) {
|
|
21
|
-
(0, sync_deps_impl_1.displayNewlyAddedDepsMessage)(context.projectName, yield tslib_1.__await((0, sync_deps_impl_1.syncDeps)(context.projectName, projectRoot, context.root, context.projectGraph)));
|
|
22
|
-
}
|
|
23
|
-
if (options.install) {
|
|
24
|
-
yield tslib_1.__await((0, pod_install_task_1.podInstall)((0, path_1.join)(context.root, projectRoot, 'ios'), options.buildFolder));
|
|
25
|
-
}
|
|
26
|
-
try {
|
|
27
|
-
const tasks = [runCliRunIOS(context.root, projectRoot, options)];
|
|
28
|
-
if (options.packager && options.mode !== 'Release') {
|
|
29
|
-
tasks.push((0, start_impl_1.runCliStart)(context.root, projectRoot, {
|
|
30
|
-
port: options.port,
|
|
31
|
-
resetCache: options.resetCache,
|
|
32
|
-
interactive: options.interactive,
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
yield tslib_1.__await(Promise.all(tasks));
|
|
36
|
-
yield yield tslib_1.__await({ success: true });
|
|
37
|
-
}
|
|
38
|
-
finally {
|
|
39
|
-
if (childProcess) {
|
|
40
|
-
childProcess.kill();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.default = runIosExecutor;
|
|
46
|
-
function runCliRunIOS(workspaceRoot, projectRoot, options) {
|
|
47
|
-
return new Promise((resolve, reject) => {
|
|
48
|
-
/**
|
|
49
|
-
* Call the react native cli with option `--no-packager`
|
|
50
|
-
* Not passing '--packager' due to cli will launch start command from the project root
|
|
51
|
-
*/
|
|
52
|
-
childProcess = (0, child_process_1.fork)((0, path_1.join)(workspaceRoot, './node_modules/react-native/cli.js'), ['run-ios', ...createRunIOSOptions(options), '--no-packager'], {
|
|
53
|
-
cwd: (0, path_1.join)(workspaceRoot, projectRoot),
|
|
54
|
-
env: Object.assign(Object.assign({}, process.env), { RCT_METRO_PORT: options.port.toString() }),
|
|
55
|
-
});
|
|
56
|
-
// Ensure the child process is killed when the parent exits
|
|
57
|
-
process.on('exit', () => childProcess.kill());
|
|
58
|
-
process.on('SIGTERM', () => childProcess.kill());
|
|
59
|
-
childProcess.on('error', (err) => {
|
|
60
|
-
reject(err);
|
|
61
|
-
});
|
|
62
|
-
childProcess.on('exit', (code) => {
|
|
63
|
-
if (code === 0) {
|
|
64
|
-
resolve(code);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
reject(code);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
const nxOptions = ['sync', 'install', 'packager'];
|
|
73
|
-
const startOptions = ['port', 'resetCache'];
|
|
74
|
-
const deprecatedOptions = ['xcodeConfiguration'];
|
|
75
|
-
function createRunIOSOptions(options) {
|
|
76
|
-
return (0, get_cli_options_1.getCliOptions)(options, [...nxOptions, ...startOptions, ...deprecatedOptions], ['buildFolder']);
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=run-ios.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-ios.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-ios/run-ios.impl.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAC5B,iDAAmD;AACnD,2BAA8B;AAE9B,yFAAmF;AACnF,gEAGqC;AACrC,mEAA0D;AAE1D,oDAAkD;AAClD,iEAA4D;AAO5D,IAAI,YAA0B,CAAC;AAE/B,SAA+B,cAAc,CAC3C,OAAiC,EACjC,OAAwB;;QAExB,IAAI,IAAA,aAAQ,GAAE,KAAK,QAAQ,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SAC1D;QACD,MAAM,WAAW,GACf,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QACpE,IAAA,sDAAwB,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACpD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,IAAA,6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1
|
-
import { ExecutorContext, logger, names } from '@nrwl/devkit';
|
|
2
|
-
import { join } from 'path';
|
|
3
|
-
import { ChildProcess, fork } from 'child_process';
|
|
4
|
-
import { platform } from 'os';
|
|
5
|
-
|
|
6
|
-
import { ensureNodeModulesSymlink } from '../../utils/ensure-node-modules-symlink';
|
|
7
|
-
import {
|
|
8
|
-
displayNewlyAddedDepsMessage,
|
|
9
|
-
syncDeps,
|
|
10
|
-
} from '../sync-deps/sync-deps.impl';
|
|
11
|
-
import { podInstall } from '../../utils/pod-install-task';
|
|
12
|
-
import { ReactNativeRunIosOptions } from './schema';
|
|
13
|
-
import { runCliStart } from '../start/start.impl';
|
|
14
|
-
import { getCliOptions } from '../../utils/get-cli-options';
|
|
15
|
-
import { rmdirSync } from 'fs-extra';
|
|
16
|
-
|
|
17
|
-
export interface ReactNativeRunIosOutput {
|
|
18
|
-
success: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
let childProcess: ChildProcess;
|
|
22
|
-
|
|
23
|
-
export default async function* runIosExecutor(
|
|
24
|
-
options: ReactNativeRunIosOptions,
|
|
25
|
-
context: ExecutorContext
|
|
26
|
-
): AsyncGenerator<ReactNativeRunIosOutput> {
|
|
27
|
-
if (platform() !== 'darwin') {
|
|
28
|
-
throw new Error(`The run-ios build requires Mac to run`);
|
|
29
|
-
}
|
|
30
|
-
const projectRoot =
|
|
31
|
-
context.projectsConfigurations.projects[context.projectName].root;
|
|
32
|
-
ensureNodeModulesSymlink(context.root, projectRoot);
|
|
33
|
-
if (options.sync) {
|
|
34
|
-
displayNewlyAddedDepsMessage(
|
|
35
|
-
context.projectName,
|
|
36
|
-
await syncDeps(
|
|
37
|
-
context.projectName,
|
|
38
|
-
projectRoot,
|
|
39
|
-
context.root,
|
|
40
|
-
context.projectGraph
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (options.install) {
|
|
46
|
-
await podInstall(
|
|
47
|
-
join(context.root, projectRoot, 'ios'),
|
|
48
|
-
options.buildFolder
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
const tasks = [runCliRunIOS(context.root, projectRoot, options)];
|
|
54
|
-
if (options.packager && options.mode !== 'Release') {
|
|
55
|
-
tasks.push(
|
|
56
|
-
runCliStart(context.root, projectRoot, {
|
|
57
|
-
port: options.port,
|
|
58
|
-
resetCache: options.resetCache,
|
|
59
|
-
interactive: options.interactive,
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
await Promise.all(tasks);
|
|
65
|
-
|
|
66
|
-
yield { success: true };
|
|
67
|
-
} finally {
|
|
68
|
-
if (childProcess) {
|
|
69
|
-
childProcess.kill();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function runCliRunIOS(
|
|
75
|
-
workspaceRoot: string,
|
|
76
|
-
projectRoot: string,
|
|
77
|
-
options: ReactNativeRunIosOptions
|
|
78
|
-
) {
|
|
79
|
-
return new Promise((resolve, reject) => {
|
|
80
|
-
/**
|
|
81
|
-
* Call the react native cli with option `--no-packager`
|
|
82
|
-
* Not passing '--packager' due to cli will launch start command from the project root
|
|
83
|
-
*/
|
|
84
|
-
childProcess = fork(
|
|
85
|
-
join(workspaceRoot, './node_modules/react-native/cli.js'),
|
|
86
|
-
['run-ios', ...createRunIOSOptions(options), '--no-packager'],
|
|
87
|
-
{
|
|
88
|
-
cwd: join(workspaceRoot, projectRoot),
|
|
89
|
-
env: { ...process.env, RCT_METRO_PORT: options.port.toString() },
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
// Ensure the child process is killed when the parent exits
|
|
94
|
-
process.on('exit', () => childProcess.kill());
|
|
95
|
-
process.on('SIGTERM', () => childProcess.kill());
|
|
96
|
-
|
|
97
|
-
childProcess.on('error', (err) => {
|
|
98
|
-
reject(err);
|
|
99
|
-
});
|
|
100
|
-
childProcess.on('exit', (code) => {
|
|
101
|
-
if (code === 0) {
|
|
102
|
-
resolve(code);
|
|
103
|
-
} else {
|
|
104
|
-
reject(code);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const nxOptions = ['sync', 'install', 'packager'];
|
|
111
|
-
const startOptions = ['port', 'resetCache'];
|
|
112
|
-
const deprecatedOptions = ['xcodeConfiguration'];
|
|
113
|
-
|
|
114
|
-
function createRunIOSOptions(options: ReactNativeRunIosOptions) {
|
|
115
|
-
return getCliOptions<ReactNativeRunIosOptions>(
|
|
116
|
-
options,
|
|
117
|
-
[...nxOptions, ...startOptions, ...deprecatedOptions],
|
|
118
|
-
['buildFolder']
|
|
119
|
-
);
|
|
120
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNativeBuildIosOptions } from '../build-ios/schema';
|
|
2
|
-
import { ReactNativeStartOptions } from '../start/schema';
|
|
3
|
-
|
|
4
|
-
// part of options form https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios/src/commands/runIOS/index.ts
|
|
5
|
-
export interface ReactNativeRunIosOptions extends ReactNativeBuildIosOptions {
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use mode instead, will be removed in nx 17.
|
|
8
|
-
*/
|
|
9
|
-
xcodeConfiguration?: string;
|
|
10
|
-
|
|
11
|
-
binaryPath?: string;
|
|
12
|
-
}
|