@nrwl/react-native 15.9.2 → 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 -134
- 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
package/executors.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"run-android": {
|
|
4
|
-
"implementation": "
|
|
5
|
-
"schema": "
|
|
4
|
+
"implementation": "@nx/react-native/src/executors/run-android/run-android.impl",
|
|
5
|
+
"schema": "@nx/react-native/src/executors/run-android/schema.json",
|
|
6
6
|
"description": "Runs Android application."
|
|
7
7
|
},
|
|
8
8
|
"run-ios": {
|
|
9
|
-
"implementation": "
|
|
10
|
-
"schema": "
|
|
9
|
+
"implementation": "@nx/react-native/src/executors/run-ios/run-ios.impl",
|
|
10
|
+
"schema": "@nx/react-native/src/executors/run-ios/schema.json",
|
|
11
11
|
"description": "Runs iOS application."
|
|
12
12
|
},
|
|
13
13
|
"bundle": {
|
|
14
|
-
"implementation": "
|
|
15
|
-
"schema": "
|
|
14
|
+
"implementation": "@nx/react-native/src/executors/bundle/bundle.impl",
|
|
15
|
+
"schema": "@nx/react-native/src/executors/bundle/schema.json",
|
|
16
16
|
"description": "Builds the JavaScript bundle for offline use."
|
|
17
17
|
},
|
|
18
18
|
"build-android": {
|
|
19
|
-
"implementation": "
|
|
20
|
-
"schema": "
|
|
19
|
+
"implementation": "@nx/react-native/src/executors/build-android/build-android.impl",
|
|
20
|
+
"schema": "@nx/react-native/src/executors/build-android/schema.json",
|
|
21
21
|
"description": "Release Build for Android."
|
|
22
22
|
},
|
|
23
23
|
"build-ios": {
|
|
24
|
-
"implementation": "
|
|
25
|
-
"schema": "
|
|
24
|
+
"implementation": "@nx/react-native/src/executors/build-ios/build-ios.impl",
|
|
25
|
+
"schema": "@nx/react-native/src/executors/build-ios/schema.json",
|
|
26
26
|
"description": "Build iOS app"
|
|
27
27
|
},
|
|
28
28
|
"start": {
|
|
29
|
-
"implementation": "
|
|
30
|
-
"schema": "
|
|
29
|
+
"implementation": "@nx/react-native/src/executors/start/start.impl",
|
|
30
|
+
"schema": "@nx/react-native/src/executors/start/schema.json",
|
|
31
31
|
"description": "Starts the Javascript server that communicates with connected devices."
|
|
32
32
|
},
|
|
33
33
|
"sync-deps": {
|
|
34
|
-
"implementation": "
|
|
35
|
-
"schema": "
|
|
34
|
+
"implementation": "@nx/react-native/src/executors/sync-deps/sync-deps.impl",
|
|
35
|
+
"schema": "@nx/react-native/src/executors/sync-deps/schema.json",
|
|
36
36
|
"description": "Syncs dependencies to `package.json` (required for autolinking)."
|
|
37
37
|
},
|
|
38
38
|
"ensure-symlink": {
|
|
39
|
-
"implementation": "
|
|
40
|
-
"schema": "
|
|
39
|
+
"implementation": "@nx/react-native/src/executors/ensure-symlink/ensure-symlink.impl",
|
|
40
|
+
"schema": "@nx/react-native/src/executors/ensure-symlink/schema.json",
|
|
41
41
|
"description": "Ensure workspace `node_modules` is symlink under app's `node_modules` folder."
|
|
42
42
|
},
|
|
43
43
|
"storybook": {
|
|
44
|
-
"implementation": "
|
|
45
|
-
"schema": "
|
|
44
|
+
"implementation": "@nx/react-native/src/executors/storybook/storybook.impl",
|
|
45
|
+
"schema": "@nx/react-native/src/executors/storybook/schema.json",
|
|
46
46
|
"description": "Serve React Native Storybook."
|
|
47
47
|
},
|
|
48
48
|
"pod-install": {
|
|
49
|
-
"implementation": "
|
|
50
|
-
"schema": "
|
|
49
|
+
"implementation": "@nx/react-native/src/executors/pod-install/pod-install.impl",
|
|
50
|
+
"schema": "@nx/react-native/src/executors/pod-install/schema.json",
|
|
51
51
|
"description": "Run `pod install` in the `ios` directory."
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"builders": {
|
|
55
55
|
"run-android": {
|
|
56
|
-
"implementation": "
|
|
57
|
-
"schema": "
|
|
56
|
+
"implementation": "@nx/react-native/src/executors/run-android/compat",
|
|
57
|
+
"schema": "@nx/react-native/src/executors/run-android/schema.json",
|
|
58
58
|
"description": "Runs Android application."
|
|
59
59
|
},
|
|
60
60
|
"run-ios": {
|
|
61
|
-
"implementation": "
|
|
62
|
-
"schema": "
|
|
61
|
+
"implementation": "@nx/react-native/src/executors/run-ios/compat",
|
|
62
|
+
"schema": "@nx/react-native/src/executors/run-ios/schema.json",
|
|
63
63
|
"description": "Runs iOS application."
|
|
64
64
|
},
|
|
65
65
|
"bundle": {
|
|
66
|
-
"implementation": "
|
|
67
|
-
"schema": "
|
|
66
|
+
"implementation": "@nx/react-native/src/executors/bundle/compat",
|
|
67
|
+
"schema": "@nx/react-native/src/executors/bundle/schema.json",
|
|
68
68
|
"description": "Builds the JavaScript bundle for offline use."
|
|
69
69
|
},
|
|
70
70
|
"build-android": {
|
|
71
|
-
"implementation": "
|
|
72
|
-
"schema": "
|
|
71
|
+
"implementation": "@nx/react-native/src/executors/build-android/compat",
|
|
72
|
+
"schema": "@nx/react-native/src/executors/build-android/schema.json",
|
|
73
73
|
"description": "Release Build for Android."
|
|
74
74
|
},
|
|
75
75
|
"build-ios": {
|
|
76
|
-
"implementation": "
|
|
77
|
-
"schema": "
|
|
76
|
+
"implementation": "@nx/react-native/src/executors/build-ios/compat",
|
|
77
|
+
"schema": "@nx/react-native/src/executors/build-ios/schema.json",
|
|
78
78
|
"description": "Build iOS app"
|
|
79
79
|
},
|
|
80
80
|
"start": {
|
|
81
|
-
"implementation": "
|
|
82
|
-
"schema": "
|
|
81
|
+
"implementation": "@nx/react-native/src/executors/start/compat",
|
|
82
|
+
"schema": "@nx/react-native/src/executors/start/schema.json",
|
|
83
83
|
"description": "Starts the Javascript server that communicates with connected devices."
|
|
84
84
|
},
|
|
85
85
|
"sync-deps": {
|
|
86
|
-
"implementation": "
|
|
87
|
-
"schema": "
|
|
86
|
+
"implementation": "@nx/react-native/src/executors/sync-deps/compat",
|
|
87
|
+
"schema": "@nx/react-native/src/executors/sync-deps/schema.json",
|
|
88
88
|
"description": "Syncs dependencies to `package.json` (required for autolinking)."
|
|
89
89
|
},
|
|
90
90
|
"ensure-symlink": {
|
|
91
|
-
"implementation": "
|
|
92
|
-
"schema": "
|
|
91
|
+
"implementation": "@nx/react-native/src/executors/ensure-symlink/compat",
|
|
92
|
+
"schema": "@nx/react-native/src/executors/ensure-symlink/schema.json",
|
|
93
93
|
"description": "Ensure workspace `node_modules` is symlink under app's `node_modules` folder."
|
|
94
94
|
},
|
|
95
95
|
"storybook": {
|
|
96
|
-
"implementation": "
|
|
97
|
-
"schema": "
|
|
96
|
+
"implementation": "@nx/react-native/src/executors/storybook/compat",
|
|
97
|
+
"schema": "@nx/react-native/src/executors/storybook/schema.json",
|
|
98
98
|
"description": "Serve React Native Storybook."
|
|
99
99
|
},
|
|
100
100
|
"pod-install": {
|
|
101
|
-
"implementation": "
|
|
102
|
-
"schema": "
|
|
101
|
+
"implementation": "@nx/react-native/src/executors/pod-install/compat",
|
|
102
|
+
"schema": "@nx/react-native/src/executors/pod-install/schema.json",
|
|
103
103
|
"description": "Run `pod install` in the `ios` directory."
|
|
104
104
|
}
|
|
105
105
|
}
|
package/generators.json
CHANGED
|
@@ -1,109 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"extends": ["@nrwl/workspace"],
|
|
5
|
-
"schematics": {
|
|
6
|
-
"init": {
|
|
7
|
-
"factory": "./src/generators/init/init#reactNativeInitSchematic",
|
|
8
|
-
"schema": "./src/generators/init/schema.json",
|
|
9
|
-
"description": "Initialize the `@nrwl/react-native` plugin.",
|
|
10
|
-
"hidden": true
|
|
11
|
-
},
|
|
12
|
-
"application": {
|
|
13
|
-
"factory": "./src/generators/application/application#reactNativeApplicationSchematic",
|
|
14
|
-
"schema": "./src/generators/application/schema.json",
|
|
15
|
-
"aliases": ["app"],
|
|
16
|
-
"x-type": "application",
|
|
17
|
-
"description": "Create a React Native application."
|
|
18
|
-
},
|
|
19
|
-
"library": {
|
|
20
|
-
"factory": "./src/generators/library/library#reactNativeLibrarySchematic",
|
|
21
|
-
"schema": "./src/generators/library/schema.json",
|
|
22
|
-
"aliases": ["lib"],
|
|
23
|
-
"x-type": "library",
|
|
24
|
-
"description": "Create a React Native library."
|
|
25
|
-
},
|
|
26
|
-
"component": {
|
|
27
|
-
"factory": "./src/generators/component/component#reactNativeComponentSchematic",
|
|
28
|
-
"schema": "./src/generators/component/schema.json",
|
|
29
|
-
"description": "Create a React Native component.",
|
|
30
|
-
"aliases": ["c"]
|
|
31
|
-
},
|
|
32
|
-
"storybook-configuration": {
|
|
33
|
-
"factory": "./src/generators/storybook-configuration/configuration#storybookConfigurationSchematic",
|
|
34
|
-
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
35
|
-
"description": "Set up Storybook for a React-native application or library.",
|
|
36
|
-
"hidden": false
|
|
37
|
-
},
|
|
38
|
-
"component-story": {
|
|
39
|
-
"factory": "./src/generators/component-story/component-story#componentStorySchematic",
|
|
40
|
-
"schema": "./src/generators/component-story/schema.json",
|
|
41
|
-
"description": "Generate Storybook story for a React-native component.",
|
|
42
|
-
"hidden": false
|
|
43
|
-
},
|
|
44
|
-
"stories": {
|
|
45
|
-
"factory": "./src/generators/stories/stories#storiesSchematic",
|
|
46
|
-
"schema": "./src/generators/stories/schema.json",
|
|
47
|
-
"description": "Create stories for all components declared in an application or library.",
|
|
48
|
-
"hidden": false
|
|
49
|
-
},
|
|
50
|
-
"upgrade-native": {
|
|
51
|
-
"factory": "./src/generators/upgrade-native/upgrade-native#reactNativeUpgradeNativeSchematic",
|
|
52
|
-
"schema": "./src/generators/upgrade-native/schema.json",
|
|
53
|
-
"description": "Destructive command to upgrade native iOS and Android code to latest.",
|
|
54
|
-
"hidden": false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"generators": {
|
|
58
|
-
"init": {
|
|
59
|
-
"factory": "./src/generators/init/init#reactNativeInitGenerator",
|
|
60
|
-
"schema": "./src/generators/init/schema.json",
|
|
61
|
-
"description": "Initialize the `@nrwl/react-native` plugin.",
|
|
62
|
-
"hidden": true
|
|
63
|
-
},
|
|
64
|
-
"application": {
|
|
65
|
-
"factory": "./src/generators/application/application#reactNativeApplicationGenerator",
|
|
66
|
-
"schema": "./src/generators/application/schema.json",
|
|
67
|
-
"aliases": ["app"],
|
|
68
|
-
"x-type": "application",
|
|
69
|
-
"description": "Create a React Native application."
|
|
70
|
-
},
|
|
71
|
-
"library": {
|
|
72
|
-
"factory": "./src/generators/library/library#reactNativeLibraryGenerator",
|
|
73
|
-
"schema": "./src/generators/library/schema.json",
|
|
74
|
-
"aliases": ["lib"],
|
|
75
|
-
"x-type": "library",
|
|
76
|
-
"description": "Create a React Native library."
|
|
77
|
-
},
|
|
78
|
-
"component": {
|
|
79
|
-
"factory": "./src/generators/component/component#reactNativeComponentGenerator",
|
|
80
|
-
"schema": "./src/generators/component/schema.json",
|
|
81
|
-
"description": "Create a React Native component.",
|
|
82
|
-
"aliases": ["c"]
|
|
83
|
-
},
|
|
84
|
-
"storybook-configuration": {
|
|
85
|
-
"factory": "./src/generators/storybook-configuration/configuration#storybookConfigurationGenerator",
|
|
86
|
-
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
87
|
-
"description": "Set up Storybook for a React-native application or library.",
|
|
88
|
-
"hidden": false
|
|
89
|
-
},
|
|
90
|
-
"component-story": {
|
|
91
|
-
"factory": "./src/generators/component-story/component-story#componentStoryGenerator",
|
|
92
|
-
"schema": "./src/generators/component-story/schema.json",
|
|
93
|
-
"description": "Generate Storybook story for a React-native component.",
|
|
94
|
-
"hidden": false
|
|
95
|
-
},
|
|
96
|
-
"stories": {
|
|
97
|
-
"factory": "./src/generators/stories/stories#storiesGenerator",
|
|
98
|
-
"schema": "./src/generators/stories/schema.json",
|
|
99
|
-
"description": "Create stories/specs for all components declared in an application or library.",
|
|
100
|
-
"hidden": false
|
|
101
|
-
},
|
|
102
|
-
"upgrade-native": {
|
|
103
|
-
"factory": "./src/generators/upgrade-native/upgrade-native#reactNativeUpgradeNativeGenerator",
|
|
104
|
-
"schema": "./src/generators/upgrade-native/schema.json",
|
|
105
|
-
"description": "Destructive command to upgrade native iOS and Android code to latest.",
|
|
106
|
-
"hidden": false
|
|
107
|
-
}
|
|
108
|
-
}
|
|
2
|
+
"extends": ["@nx/react-native"],
|
|
3
|
+
"schematics": {}
|
|
109
4
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { reactNativeApplicationGenerator } from './src/generators/application/application';
|
|
3
|
-
export { reactNativeLibraryGenerator } from './src/generators/library/library';
|
|
4
|
-
export { reactNativeComponentGenerator } from './src/generators/component/component';
|
|
5
|
-
export { withNxMetro } from './plugins/with-nx-metro';
|
|
1
|
+
export * from '@nx/react-native';
|
package/index.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "reactNativeInitGenerator", { enumerable: true, get: function () { return init_1.reactNativeInitGenerator; } });
|
|
6
|
-
var application_1 = require("./src/generators/application/application");
|
|
7
|
-
Object.defineProperty(exports, "reactNativeApplicationGenerator", { enumerable: true, get: function () { return application_1.reactNativeApplicationGenerator; } });
|
|
8
|
-
var library_1 = require("./src/generators/library/library");
|
|
9
|
-
Object.defineProperty(exports, "reactNativeLibraryGenerator", { enumerable: true, get: function () { return library_1.reactNativeLibraryGenerator; } });
|
|
10
|
-
var component_1 = require("./src/generators/component/component");
|
|
11
|
-
Object.defineProperty(exports, "reactNativeComponentGenerator", { enumerable: true, get: function () { return component_1.reactNativeComponentGenerator; } });
|
|
12
|
-
var with_nx_metro_1 = require("./plugins/with-nx-metro");
|
|
13
|
-
Object.defineProperty(exports, "withNxMetro", { enumerable: true, get: function () { return with_nx_metro_1.withNxMetro; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("@nx/react-native"), exports);
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/react-native/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages-legacy/react-native/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -18,40 +18,22 @@
|
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/nrwl/nx.git",
|
|
21
|
-
"directory": "packages/react-native"
|
|
21
|
+
"directory": "packages-legacy/react-native"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"author": "Victor Savkin",
|
|
25
25
|
"main": "./index",
|
|
26
26
|
"types": "index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"@nrwl/devkit": "15.9.2",
|
|
30
|
-
"@nrwl/jest": "15.9.2",
|
|
31
|
-
"@nrwl/js": "15.9.2",
|
|
32
|
-
"@nrwl/linter": "15.9.2",
|
|
33
|
-
"@nrwl/react": "15.9.2",
|
|
34
|
-
"@nrwl/workspace": "15.9.2",
|
|
35
|
-
"chalk": "^4.1.0",
|
|
36
|
-
"enhanced-resolve": "^5.8.3",
|
|
37
|
-
"fs-extra": "^11.1.0",
|
|
38
|
-
"ignore": "^5.0.4",
|
|
39
|
-
"metro-resolver": "^0.74.1",
|
|
40
|
-
"minimatch": "3.0.5",
|
|
41
|
-
"node-fetch": "^2.6.7",
|
|
42
|
-
"tsconfig-paths": "^4.1.2"
|
|
43
|
-
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"react-native": "^0.71.4"
|
|
28
|
+
"@nx/react-native": "16.0.0-beta.1"
|
|
46
29
|
},
|
|
47
30
|
"builders": "./executors.json",
|
|
48
|
-
"ng-update": {
|
|
49
|
-
"requirements": {},
|
|
50
|
-
"migrations": "./migrations.json"
|
|
51
|
-
},
|
|
52
31
|
"schematics": "./generators.json",
|
|
53
32
|
"publishConfig": {
|
|
54
33
|
"access": "public"
|
|
55
34
|
},
|
|
56
|
-
"
|
|
35
|
+
"nx-migrations": {
|
|
36
|
+
"migrations": "@nx/react-native/migrations.json"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
57
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-mock.js","sourceRoot":"","sources":["../../../../../packages/react-native/plugins/jest/svg-mock.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;AAC3B,MAAM,CAAC,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"svg-mock.js","sourceRoot":"","sources":["../../../../../packages-legacy/react-native/plugins/jest/svg-mock.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;AAC3B,MAAM,CAAC,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC"}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
debug?: boolean;
|
|
3
|
-
extensions?: string[];
|
|
4
|
-
projectRoot?: string;
|
|
5
|
-
watchFolders?: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare function withNxMetro(config: any, opts?: WithNxOptions): any;
|
|
8
|
-
export {};
|
|
1
|
+
export * from '@nx/react-native/plugins/with-nx-metro';
|
package/plugins/with-nx-metro.js
CHANGED
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const fs_extra_1 = require("fs-extra");
|
|
7
|
-
const metro_resolver_1 = require("./metro-resolver");
|
|
8
|
-
function withNxMetro(config, opts = {}) {
|
|
9
|
-
var _a;
|
|
10
|
-
const extensions = ['', 'ts', 'tsx', 'js', 'jsx', 'json'];
|
|
11
|
-
if (opts.debug)
|
|
12
|
-
process.env.NX_REACT_NATIVE_DEBUG = 'true';
|
|
13
|
-
if (opts.extensions)
|
|
14
|
-
extensions.push(...opts.extensions);
|
|
15
|
-
config.projectRoot = opts.projectRoot || devkit_1.workspaceRoot;
|
|
16
|
-
// Add support for paths specified by tsconfig
|
|
17
|
-
config.resolver = Object.assign(Object.assign({}, config.resolver), { resolveRequest: (0, metro_resolver_1.getResolveRequest)(extensions) });
|
|
18
|
-
let watchFolders = config.watchFolders || [];
|
|
19
|
-
watchFolders = watchFolders.concat([
|
|
20
|
-
(0, path_1.join)(devkit_1.workspaceRoot, 'node_modules'),
|
|
21
|
-
(0, path_1.join)(devkit_1.workspaceRoot, (0, devkit_1.workspaceLayout)().libsDir),
|
|
22
|
-
(0, path_1.join)(devkit_1.workspaceRoot, '.storybook'),
|
|
23
|
-
]);
|
|
24
|
-
if ((_a = opts.watchFolders) === null || _a === void 0 ? void 0 : _a.length) {
|
|
25
|
-
watchFolders = watchFolders.concat(opts.watchFolders);
|
|
26
|
-
}
|
|
27
|
-
watchFolders = watchFolders.filter((folder) => (0, fs_extra_1.existsSync)(folder));
|
|
28
|
-
config.watchFolders = watchFolders;
|
|
29
|
-
return config;
|
|
30
|
-
}
|
|
31
|
-
exports.withNxMetro = withNxMetro;
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("@nx/react-native/plugins/with-nx-metro"), exports);
|
|
32
5
|
//# sourceMappingURL=with-nx-metro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-nx-metro.js","sourceRoot":"","sources":["../../../../packages/react-native/plugins/with-nx-metro.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"with-nx-metro.js","sourceRoot":"","sources":["../../../../packages-legacy/react-native/plugins/with-nx-metro.ts"],"names":[],"mappings":";;;AAAA,iFAAuD"}
|
package/.eslintrc.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../.eslintrc",
|
|
3
|
-
"rules": {},
|
|
4
|
-
"ignorePatterns": ["!**/*"],
|
|
5
|
-
"overrides": [
|
|
6
|
-
{
|
|
7
|
-
"files": [
|
|
8
|
-
"./package.json",
|
|
9
|
-
"./generators.json",
|
|
10
|
-
"./executors.json",
|
|
11
|
-
"./migrations.json"
|
|
12
|
-
],
|
|
13
|
-
"parser": "jsonc-eslint-parser",
|
|
14
|
-
"rules": {
|
|
15
|
-
"@nrwl/nx/nx-plugin-checks": "error"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/README.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
-
|
|
3
|
-
<div style="text-align: center;">
|
|
4
|
-
|
|
5
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
-
[]()
|
|
7
|
-
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
-
[]()
|
|
9
|
-
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
-
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<hr>
|
|
17
|
-
|
|
18
|
-
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
-
|
|
20
|
-
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
-
|
|
22
|
-
This package is a [React Native plugin for Nx](https://nx.dev/packages/react-native).
|
|
23
|
-
|
|
24
|
-
## Getting Started
|
|
25
|
-
|
|
26
|
-
### Creating an Nx Workspace
|
|
27
|
-
|
|
28
|
-
**Using `npx`**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx create-nx-workspace
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Using `npm init`**
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm init nx-workspace
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Using `yarn create`**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
yarn create nx-workspace
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Adding Nx to an Existing Repository
|
|
47
|
-
|
|
48
|
-
Run:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npx nx@latest init
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Documentation & Resources
|
|
55
|
-
|
|
56
|
-
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
57
|
-
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
58
|
-
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
59
|
-
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
|
-
|
|
61
|
-
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
-
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
63
|
-
|