@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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Auto-generated file created by react-native-storybook-loader
|
|
2
|
-
// Do not edit.
|
|
3
|
-
//
|
|
4
|
-
// https://github.com/elderfo/react-native-storybook-loader.git
|
|
5
|
-
|
|
6
|
-
function loadStories() {}
|
|
7
|
-
|
|
8
|
-
const stories = [];
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
loadStories,
|
|
12
|
-
stories,
|
|
13
|
-
};
|
package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addResolverMainFieldsToMetroConfig = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
/**
|
|
7
|
-
* Add resolverMainFields in metro.config.js
|
|
8
|
-
*/
|
|
9
|
-
function addResolverMainFieldsToMetroConfig(host, schema) {
|
|
10
|
-
const { root } = (0, devkit_1.readProjectConfiguration)(host, schema.name);
|
|
11
|
-
const metroConfigPath = (0, path_1.join)(root, 'metro.config.js');
|
|
12
|
-
try {
|
|
13
|
-
devkit_1.logger.debug(`Updating resolverMainFields for ${metroConfigPath}`);
|
|
14
|
-
const metroConfigContent = host.read(metroConfigPath, 'utf-8');
|
|
15
|
-
if (metroConfigContent.includes('resolverMainFields:')) {
|
|
16
|
-
devkit_1.logger.warn((0, devkit_1.stripIndents) `${metroConfigPath} is already udpated.`);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
host.write(metroConfigPath, metroConfigContent.replace(/},\s+resolver: {/, `},resolver: { resolverMainFields: ['sbmodern', 'browser', 'main'],`));
|
|
20
|
-
}
|
|
21
|
-
catch (_a) {
|
|
22
|
-
devkit_1.logger.error((0, devkit_1.stripIndents) `Unable to update ${metroConfigPath} for project ${root}.`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.addResolverMainFieldsToMetroConfig = addResolverMainFieldsToMetroConfig;
|
|
26
|
-
//# sourceMappingURL=add-resolver-main-fields-to-metro-config.js.map
|
package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-resolver-main-fields-to-metro-config.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AACtB,+BAA4B;AAI5B;;GAEG;AACH,SAAgB,kCAAkC,CAChD,IAAU,EACV,MAAgC;IAEhC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAEtD,IAAI;QACF,eAAM,CAAC,KAAK,CAAC,mCAAmC,eAAe,EAAE,CAAC,CAAC;QACnE,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAC/D,IAAI,kBAAkB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;YACtD,eAAM,CAAC,IAAI,CAAC,IAAA,qBAAY,EAAA,GAAG,eAAe,sBAAsB,CAAC,CAAC;YAClE,OAAO;SACR;QACD,IAAI,CAAC,KAAK,CACR,eAAe,EACf,kBAAkB,CAAC,OAAO,CACxB,kBAAkB,EAClB,oEAAoE,CACrE,CACF,CAAC;KACH;IAAC,WAAM;QACN,eAAM,CAAC,KAAK,CACV,IAAA,qBAAY,EAAA,oBAAoB,eAAe,gBAAgB,IAAI,GAAG,CACvE,CAAC;KACH;AACH,CAAC;AA3BD,gFA2BC"}
|
package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.spec.ts
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
|
3
|
-
|
|
4
|
-
import { formatFile } from '../../../utils/format-file';
|
|
5
|
-
|
|
6
|
-
import { addResolverMainFieldsToMetroConfig } from './add-resolver-main-fields-to-metro-config';
|
|
7
|
-
|
|
8
|
-
describe('addResolverMainFieldsToMetroConfig', () => {
|
|
9
|
-
let tree: Tree;
|
|
10
|
-
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
tree = createTreeWithEmptyWorkspace({ layout: 'apps-libs' });
|
|
13
|
-
|
|
14
|
-
addProjectConfiguration(tree, 'products', {
|
|
15
|
-
root: 'apps/products',
|
|
16
|
-
sourceRoot: 'apps/products/src',
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it(`should update metro.config.js and add key projectRoot`, async () => {
|
|
21
|
-
tree.write(
|
|
22
|
-
'apps/products/metro.config.js',
|
|
23
|
-
formatFile`
|
|
24
|
-
const { withNxMetro } = require('@nrwl/react-native');
|
|
25
|
-
const { getDefaultConfig } = require('metro-config');
|
|
26
|
-
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
27
|
-
|
|
28
|
-
module.exports = (async () => {
|
|
29
|
-
const {
|
|
30
|
-
resolver: { sourceExts, assetExts },
|
|
31
|
-
} = await getDefaultConfig();
|
|
32
|
-
return withNxMetro(
|
|
33
|
-
{
|
|
34
|
-
transformer: {
|
|
35
|
-
getTransformOptions: async () => ({
|
|
36
|
-
transform: {
|
|
37
|
-
experimentalImportSupport: false,
|
|
38
|
-
inlineRequires: true,
|
|
39
|
-
},
|
|
40
|
-
}),
|
|
41
|
-
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
42
|
-
},
|
|
43
|
-
resolver: {
|
|
44
|
-
|
|
45
|
-
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
46
|
-
sourceExts: [...sourceExts, 'svg'],
|
|
47
|
-
blockList: exclusionList([/^(?!.*node_modules).*\/dist\/.*/]),
|
|
48
|
-
},
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
})();`
|
|
52
|
-
);
|
|
53
|
-
addResolverMainFieldsToMetroConfig(tree, {
|
|
54
|
-
name: 'products',
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
expect(
|
|
58
|
-
formatFile`${tree.read('apps/products/metro.config.js', 'utf-8')}`
|
|
59
|
-
).toEqual(
|
|
60
|
-
formatFile`
|
|
61
|
-
const { withNxMetro } = require('@nrwl/react-native');
|
|
62
|
-
const { getDefaultConfig } = require('metro-config');
|
|
63
|
-
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
64
|
-
|
|
65
|
-
module.exports = (async () => {
|
|
66
|
-
const {
|
|
67
|
-
resolver: { sourceExts, assetExts },
|
|
68
|
-
} = await getDefaultConfig();
|
|
69
|
-
return withNxMetro(
|
|
70
|
-
{
|
|
71
|
-
transformer: {
|
|
72
|
-
getTransformOptions: async () => ({
|
|
73
|
-
transform: {
|
|
74
|
-
experimentalImportSupport: false,
|
|
75
|
-
inlineRequires: true,
|
|
76
|
-
},
|
|
77
|
-
}),
|
|
78
|
-
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
79
|
-
},
|
|
80
|
-
resolver: {
|
|
81
|
-
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
82
|
-
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
83
|
-
sourceExts: [...sourceExts, 'svg'],
|
|
84
|
-
blockList: exclusionList([/^(?!.*node_modules).*\/dist\/.*/]),
|
|
85
|
-
},
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
})();`
|
|
89
|
-
);
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
it(`should not udpate metro.config.js if projectRoot already exists`, async () => {
|
|
93
|
-
tree.write(
|
|
94
|
-
'apps/products/metro.config.js',
|
|
95
|
-
`
|
|
96
|
-
const { withNxMetro } = require('@nrwl/react-native');
|
|
97
|
-
const { getDefaultConfig } = require('metro-config');
|
|
98
|
-
|
|
99
|
-
module.exports = (async () => {
|
|
100
|
-
const {
|
|
101
|
-
resolver: { sourceExts, assetExts },
|
|
102
|
-
} = await getDefaultConfig();
|
|
103
|
-
// console.log(getModulesRunBeforeMainModule);
|
|
104
|
-
return withNxMetro(
|
|
105
|
-
{
|
|
106
|
-
transformer: {
|
|
107
|
-
getTransformOptions: async () => ({
|
|
108
|
-
transform: {
|
|
109
|
-
experimentalImportSupport: false,
|
|
110
|
-
inlineRequires: true,
|
|
111
|
-
},
|
|
112
|
-
}),
|
|
113
|
-
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
114
|
-
},
|
|
115
|
-
resolver: {
|
|
116
|
-
resolverMainFields: ['main'],
|
|
117
|
-
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
118
|
-
sourceExts: [...sourceExts, 'svg'],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
);
|
|
122
|
-
})();
|
|
123
|
-
`
|
|
124
|
-
);
|
|
125
|
-
addResolverMainFieldsToMetroConfig(tree, {
|
|
126
|
-
name: 'products',
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
expect(tree.read('apps/products/metro.config.js', 'utf-8')).toEqual(
|
|
130
|
-
`
|
|
131
|
-
const { withNxMetro } = require('@nrwl/react-native');
|
|
132
|
-
const { getDefaultConfig } = require('metro-config');
|
|
133
|
-
|
|
134
|
-
module.exports = (async () => {
|
|
135
|
-
const {
|
|
136
|
-
resolver: { sourceExts, assetExts },
|
|
137
|
-
} = await getDefaultConfig();
|
|
138
|
-
// console.log(getModulesRunBeforeMainModule);
|
|
139
|
-
return withNxMetro(
|
|
140
|
-
{
|
|
141
|
-
transformer: {
|
|
142
|
-
getTransformOptions: async () => ({
|
|
143
|
-
transform: {
|
|
144
|
-
experimentalImportSupport: false,
|
|
145
|
-
inlineRequires: true,
|
|
146
|
-
},
|
|
147
|
-
}),
|
|
148
|
-
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
149
|
-
},
|
|
150
|
-
resolver: {
|
|
151
|
-
resolverMainFields: ['main'],
|
|
152
|
-
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
153
|
-
sourceExts: [...sourceExts, 'svg'],
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
);
|
|
157
|
-
})();
|
|
158
|
-
`
|
|
159
|
-
);
|
|
160
|
-
});
|
|
161
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
import { StorybookConfigureSchema } from '../schema';
|
|
3
|
-
/**
|
|
4
|
-
* This function generate ./storybook under project root.
|
|
5
|
-
*/
|
|
6
|
-
export declare function createStorybookFiles(host: Tree, schema: StorybookConfigureSchema): Promise<void>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createStorybookFiles = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const path_1 = require("path");
|
|
7
|
-
const chalk = require("chalk");
|
|
8
|
-
/**
|
|
9
|
-
* This function generate ./storybook under project root.
|
|
10
|
-
*/
|
|
11
|
-
function createStorybookFiles(host, schema) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const { root, projectType, targets, sourceRoot } = (0, devkit_1.readProjectConfiguration)(host, schema.name);
|
|
15
|
-
// do not proceed if not a react native project
|
|
16
|
-
if (((_a = targets === null || targets === void 0 ? void 0 : targets.start) === null || _a === void 0 ? void 0 : _a.executor) !== '@nrwl/react-native:start' &&
|
|
17
|
-
((_b = targets === null || targets === void 0 ? void 0 : targets.start) === null || _b === void 0 ? void 0 : _b.executor) !== '@nrwl/expo:start') {
|
|
18
|
-
devkit_1.logger.error(`Unable to add storybook to ${schema.name}. It is not a Nx React Native / Expo project.`);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const storybookUIFileName = schema.js ? 'storybook.js' : 'storybook.ts';
|
|
22
|
-
const storybookUIFilePath = (0, path_1.join)(root, `./${storybookUIFileName}`);
|
|
23
|
-
if (host.exists(storybookUIFilePath)) {
|
|
24
|
-
devkit_1.logger.warn(`${storybookUIFileName} file already exists for ${projectType} ${schema.name}! Skipping generating this file.`);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (projectType !== 'application') {
|
|
28
|
-
devkit_1.logger.info(`${chalk.bold.cyan('info')} To see your Storybook stories on the device, you should start your mobile app for the <platform> of your choice (typically ios or android).`);
|
|
29
|
-
}
|
|
30
|
-
// copy files to app's .storybook folder
|
|
31
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/app'), (0, path_1.join)(root, 'src', 'storybook'), {
|
|
32
|
-
tmpl: '',
|
|
33
|
-
offsetFromRoot: (0, devkit_1.offsetFromRoot)(sourceRoot),
|
|
34
|
-
});
|
|
35
|
-
// copy files to workspace root's .storybook folder
|
|
36
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/root'), (0, path_1.join)(root, (0, devkit_1.offsetFromRoot)(root), '.storybook'), {
|
|
37
|
-
tmpl: '',
|
|
38
|
-
});
|
|
39
|
-
if (schema.js) {
|
|
40
|
-
(0, devkit_1.toJS)(host);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
exports.createStorybookFiles = createStorybookFiles;
|
|
45
|
-
//# sourceMappingURL=create-storybook-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-storybook-files.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/storybook-configuration/lib/create-storybook-files.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,+BAA4B;AAC5B,+BAA+B;AAI/B;;GAEG;AACH,SAAsB,oBAAoB,CACxC,IAAU,EACV,MAAgC;;;QAEhC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,iCAAwB,EACzE,IAAI,EACJ,MAAM,CAAC,IAAI,CACZ,CAAC;QAEF,+CAA+C;QAC/C,IACE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,QAAQ,MAAK,0BAA0B;YACvD,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB,EAC/C;YACA,eAAM,CAAC,KAAK,CACV,8BAA8B,MAAM,CAAC,IAAI,+CAA+C,CACzF,CAAC;YACF,OAAO;SACR;QAED,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC;QACxE,MAAM,mBAAmB,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,KAAK,mBAAmB,EAAE,CAAC,CAAC;QAEnE,IAAI,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE;YACpC,eAAM,CAAC,IAAI,CACT,GAAG,mBAAmB,4BAA4B,WAAW,IAAI,MAAM,CAAC,IAAI,kCAAkC,CAC/G,CAAC;YACF,OAAO;SACR;QACD,IAAI,WAAW,KAAK,aAAa,EAAE;YACjC,eAAM,CAAC,IAAI,CACT,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAChB,MAAM,CACP,8IAA8I,CAChJ,CAAC;SACH;QAED,wCAAwC;QACxC,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,cAAc,CAAC,EAC/B,IAAA,WAAI,EAAC,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,EAC9B;YACE,IAAI,EAAE,EAAE;YACR,cAAc,EAAE,IAAA,uBAAc,EAAC,UAAU,CAAC;SAC3C,CACF,CAAC;QAEF,mDAAmD;QACnD,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,eAAe,CAAC,EAChC,IAAA,WAAI,EAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,IAAI,CAAC,EAAE,YAAY,CAAC,EAC9C;YACE,IAAI,EAAE,EAAE;SACT,CACF,CAAC;QAEF,IAAI,MAAM,CAAC,EAAE,EAAE;YACb,IAAA,aAAI,EAAC,IAAI,CAAC,CAAC;SACZ;;CACF;AA7DD,oDA6DC"}
|
package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
import { StorybookConfigureSchema } from '../schema';
|
|
3
|
-
/**
|
|
4
|
-
* To replace the import statement for storybook.
|
|
5
|
-
* Need to import app with storybook toggle from .storybook/toggle-storybook
|
|
6
|
-
*/
|
|
7
|
-
export declare function replaceAppImportWithStorybookToggle(host: Tree, schema: StorybookConfigureSchema): void;
|
package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.replaceAppImportWithStorybookToggle = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
/**
|
|
7
|
-
* To replace the import statement for storybook.
|
|
8
|
-
* Need to import app with storybook toggle from .storybook/toggle-storybook
|
|
9
|
-
*/
|
|
10
|
-
function replaceAppImportWithStorybookToggle(host, schema) {
|
|
11
|
-
const { root, sourceRoot } = (0, devkit_1.readProjectConfiguration)(host, schema.name);
|
|
12
|
-
const mainFilePath = (0, path_1.join)(sourceRoot, schema.js ? 'main.js' : 'main.tsx');
|
|
13
|
-
const appImportImport = `import App from './app/App';`;
|
|
14
|
-
const storybookeToggleImport = `import App from './storybook/toggle-storybook';`;
|
|
15
|
-
try {
|
|
16
|
-
devkit_1.logger.debug(`Updating import for ${mainFilePath}`);
|
|
17
|
-
const contents = host.read(mainFilePath, 'utf-8');
|
|
18
|
-
if (!contents.includes(appImportImport) ||
|
|
19
|
-
contents.includes(storybookeToggleImport)) {
|
|
20
|
-
devkit_1.logger.warn((0, devkit_1.stripIndents) `${mainFilePath} is already udpated.`);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
host.write(mainFilePath, contents.replace(appImportImport, storybookeToggleImport));
|
|
24
|
-
}
|
|
25
|
-
catch (_a) {
|
|
26
|
-
devkit_1.logger.warn((0, devkit_1.stripIndents) `Unable to update import in ${mainFilePath} for project ${root}.`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.replaceAppImportWithStorybookToggle = replaceAppImportWithStorybookToggle;
|
|
30
|
-
//# sourceMappingURL=replace-app-import-with-storybook-toggle.js.map
|
package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replace-app-import-with-storybook-toggle.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AACtB,+BAA4B;AAI5B;;;GAGG;AACH,SAAgB,mCAAmC,CACjD,IAAU,EACV,MAAgC;IAEhC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAEzE,MAAM,YAAY,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAC1E,MAAM,eAAe,GAAG,8BAA8B,CAAC;IACvD,MAAM,sBAAsB,GAAG,iDAAiD,CAAC;IAEjF,IAAI;QACF,eAAM,CAAC,KAAK,CAAC,uBAAuB,YAAY,EAAE,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAClD,IACE,CAAC,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC;YACnC,QAAQ,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EACzC;YACA,eAAM,CAAC,IAAI,CAAC,IAAA,qBAAY,EAAA,GAAG,YAAY,sBAAsB,CAAC,CAAC;YAC/D,OAAO;SACR;QACD,IAAI,CAAC,KAAK,CACR,YAAY,EACZ,QAAQ,CAAC,OAAO,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAC1D,CAAC;KACH;IAAC,WAAM;QACN,eAAM,CAAC,IAAI,CACT,IAAA,qBAAY,EAAA,8BAA8B,YAAY,gBAAgB,IAAI,GAAG,CAC9E,CAAC;KACH;AACH,CAAC;AA7BD,kFA6BC"}
|
package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.spec.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
|
3
|
-
|
|
4
|
-
import { formatFile } from '../../../utils/format-file';
|
|
5
|
-
|
|
6
|
-
import { replaceAppImportWithStorybookToggle } from './replace-app-import-with-storybook-toggle';
|
|
7
|
-
|
|
8
|
-
describe('replaceAppImportWithStorybookToggle', () => {
|
|
9
|
-
let tree: Tree;
|
|
10
|
-
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
tree = createTreeWithEmptyWorkspace({ layout: 'apps-libs' });
|
|
13
|
-
|
|
14
|
-
addProjectConfiguration(tree, 'products', {
|
|
15
|
-
root: 'apps/products',
|
|
16
|
-
sourceRoot: 'apps/products/src',
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should update the main file with import from storybook', async () => {
|
|
21
|
-
tree.write(
|
|
22
|
-
'/apps/products/src/main.tsx',
|
|
23
|
-
formatFile`import { AppRegistry } from 'react-native';
|
|
24
|
-
import App from './app/App';
|
|
25
|
-
|
|
26
|
-
AppRegistry.registerComponent('main', () => App);
|
|
27
|
-
`
|
|
28
|
-
);
|
|
29
|
-
replaceAppImportWithStorybookToggle(tree, {
|
|
30
|
-
name: 'products',
|
|
31
|
-
js: false,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const mainFile = tree.read('apps/products/src/main.tsx', 'utf-8');
|
|
35
|
-
expect(formatFile`${mainFile}`).toEqual(
|
|
36
|
-
formatFile`import { AppRegistry } from 'react-native';
|
|
37
|
-
import App from './storybook/toggle-storybook';
|
|
38
|
-
|
|
39
|
-
AppRegistry.registerComponent('main', () => App);`
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should not update the main file if import is already updated', async () => {
|
|
44
|
-
tree.write(
|
|
45
|
-
'/apps/products/src/main.tsx',
|
|
46
|
-
formatFile`import { AppRegistry } from 'react-native';
|
|
47
|
-
import App from './app/App';
|
|
48
|
-
|
|
49
|
-
AppRegistry.registerComponent('main', () => App);
|
|
50
|
-
`
|
|
51
|
-
);
|
|
52
|
-
replaceAppImportWithStorybookToggle(tree, {
|
|
53
|
-
name: 'products',
|
|
54
|
-
js: false,
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
const mainFile = tree.read('apps/products/src/main.tsx', 'utf-8');
|
|
58
|
-
expect(formatFile`${mainFile}`).toEqual(
|
|
59
|
-
formatFile`import { AppRegistry } from 'react-native';
|
|
60
|
-
import App from './storybook/toggle-storybook';
|
|
61
|
-
|
|
62
|
-
AppRegistry.registerComponent('main', () => App);`
|
|
63
|
-
);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"cli": "nx",
|
|
4
|
-
"$id": "NxReactNativeStorybookConfigure",
|
|
5
|
-
"title": "React native Storybook configuration",
|
|
6
|
-
"description": "Set up Storybook for a React-Native app or library.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"name": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"aliases": ["project", "projectName"],
|
|
12
|
-
"description": "Project for which to generate Storybook configuration.",
|
|
13
|
-
"$default": {
|
|
14
|
-
"$source": "argv",
|
|
15
|
-
"index": 0
|
|
16
|
-
},
|
|
17
|
-
"x-prompt": "For which project do you want to generate Storybook configuration?",
|
|
18
|
-
"x-dropdown": "projects"
|
|
19
|
-
},
|
|
20
|
-
"generateStories": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"description": "Automatically generate *.stories.ts files for components declared in this project?",
|
|
23
|
-
"x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
|
|
24
|
-
"default": true,
|
|
25
|
-
"x-priority": "important"
|
|
26
|
-
},
|
|
27
|
-
"js": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"description": "Generate JavaScript story files rather than TypeScript story files.",
|
|
30
|
-
"default": false
|
|
31
|
-
},
|
|
32
|
-
"tsConfiguration": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
|
|
35
|
-
"default": false
|
|
36
|
-
},
|
|
37
|
-
"linter": {
|
|
38
|
-
"description": "The tool to use for running lint checks.",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"enum": ["eslint"],
|
|
41
|
-
"default": "eslint"
|
|
42
|
-
},
|
|
43
|
-
"standaloneConfig": {
|
|
44
|
-
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"default": true,
|
|
47
|
-
"x-deprecated": "Nx only supports standaloneConfig"
|
|
48
|
-
},
|
|
49
|
-
"ignorePaths": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"description": "Paths to ignore when looking for components.",
|
|
52
|
-
"items": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Path to ignore."
|
|
55
|
-
},
|
|
56
|
-
"examples": [
|
|
57
|
-
"apps/my-app/src/not-stories/**",
|
|
58
|
-
"**/**/src/**/not-stories/**",
|
|
59
|
-
"libs/my-lib/**/*.something.ts",
|
|
60
|
-
"**/**/src/**/*.other.*",
|
|
61
|
-
"libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": ["name"]
|
|
66
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNativeFiles = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const normalize_options_1 = require("./normalize-options");
|
|
7
|
-
function createNativeFiles(host, schema, appProjectRoot) {
|
|
8
|
-
const options = (0, normalize_options_1.normalizeOptions)(schema, appProjectRoot);
|
|
9
|
-
const iosProjectRoot = (0, devkit_1.joinPathFragments)(appProjectRoot, 'ios');
|
|
10
|
-
const androidProjectRoot = (0, devkit_1.joinPathFragments)(appProjectRoot, 'android');
|
|
11
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../../application/files/app/ios'), iosProjectRoot, options);
|
|
12
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../../application/files/app/android'), androidProjectRoot, options);
|
|
13
|
-
}
|
|
14
|
-
exports.createNativeFiles = createNativeFiles;
|
|
15
|
-
//# sourceMappingURL=create-native-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-native-files.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/upgrade-native/lib/create-native-files.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,+BAA4B;AAC5B,2DAAuD;AAIvD,SAAgB,iBAAiB,CAC/B,IAAU,EACV,MAAoC,EACpC,cAAsB;IAEtB,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAEzD,MAAM,cAAc,GAAG,IAAA,0BAAiB,EAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAG,IAAA,0BAAiB,EAAC,cAAc,EAAE,SAAS,CAAC,CAAC;IAExE,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,iCAAiC,CAAC,EAClD,cAAc,EACd,OAAO,CACR,CAAC;IAEF,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,qCAAqC,CAAC,EACtD,kBAAkB,EAClB,OAAO,CACR,CAAC;AACJ,CAAC;AAvBD,8CAuBC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { UpgradeNativeConfigureSchema } from '../schema';
|
|
2
|
-
export interface NormalizedSchema {
|
|
3
|
-
name: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
className: string;
|
|
6
|
-
lowerCaseName: string;
|
|
7
|
-
entryFile: string;
|
|
8
|
-
entryFileIos: string;
|
|
9
|
-
e2eTestRunner: 'detox' | 'none';
|
|
10
|
-
offsetFromRoot: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function normalizeOptions(options: UpgradeNativeConfigureSchema, appProjectRoot: string): NormalizedSchema;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeOptions = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
function normalizeOptions(options, appProjectRoot // app root
|
|
6
|
-
) {
|
|
7
|
-
const { fileName, className } = (0, devkit_1.names)(options.name);
|
|
8
|
-
const entryFileIos = 'src/main';
|
|
9
|
-
const entryFile = options.js ? 'src/main.js' : 'src/main.tsx';
|
|
10
|
-
/**
|
|
11
|
-
* if options.name is "my-app"
|
|
12
|
-
* name: "my-app", className: 'MyApp', lowerCaseName: 'myapp', displayName: 'MyApp'
|
|
13
|
-
* if options.name is "myApp"
|
|
14
|
-
* name: "my-app", className: 'MyApp', lowerCaseName: 'myapp', displayName: 'MyApp'
|
|
15
|
-
*/
|
|
16
|
-
return {
|
|
17
|
-
name: fileName,
|
|
18
|
-
className,
|
|
19
|
-
lowerCaseName: className.toLowerCase(),
|
|
20
|
-
displayName: options.displayName || className,
|
|
21
|
-
entryFile,
|
|
22
|
-
entryFileIos,
|
|
23
|
-
e2eTestRunner: options.e2eTestRunner,
|
|
24
|
-
offsetFromRoot: (0, devkit_1.offsetFromRoot)(appProjectRoot),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.normalizeOptions = normalizeOptions;
|
|
28
|
-
//# sourceMappingURL=normalize-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/upgrade-native/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,yCAAqD;AAcrD,SAAgB,gBAAgB,CAC9B,OAAqC,EACrC,cAAsB,CAAC,WAAW;;IAElC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC;IAE9D;;;;;OAKG;IACH,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,SAAS;QACT,aAAa,EAAE,SAAS,CAAC,WAAW,EAAE;QACtC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,SAAS;QAC7C,SAAS;QACT,YAAY;QACZ,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,cAAc,EAAE,IAAA,uBAAc,EAAC,cAAc,CAAC;KAC/C,CAAC;AACJ,CAAC;AAzBD,4CAyBC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"cli": "nx",
|
|
4
|
-
"$id": "NxReactNativeUpgradeNativeConfigure",
|
|
5
|
-
"title": "React native upgrade native configuration",
|
|
6
|
-
"description": "Upgrade native iOS and Android code to latest.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"name": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Application project name to upgrade native files.",
|
|
12
|
-
"$default": {
|
|
13
|
-
"$source": "argv",
|
|
14
|
-
"index": 0
|
|
15
|
-
},
|
|
16
|
-
"x-dropdown": "project"
|
|
17
|
-
},
|
|
18
|
-
"displayName": {
|
|
19
|
-
"description": "The display name to show in the application. Defaults to name.",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"js": {
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"description": "Generate JavaScript files rather than TypeScript files",
|
|
25
|
-
"default": false
|
|
26
|
-
},
|
|
27
|
-
"e2eTestRunner": {
|
|
28
|
-
"description": "Adds the specified e2e test runner.",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": ["detox", "none"],
|
|
31
|
-
"default": "detox"
|
|
32
|
-
},
|
|
33
|
-
"install": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"description": "Runs `pod install` for native modules before building iOS app.",
|
|
36
|
-
"default": true,
|
|
37
|
-
"x-priority": "internal"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": ["name"]
|
|
41
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function is a destructive command that replace React Native iOS and Android code with latest.
|
|
3
|
-
* It would replace the Android and iOS folder entirely.
|
|
4
|
-
*/
|
|
5
|
-
import { GeneratorCallback, Tree } from '@nrwl/devkit';
|
|
6
|
-
import { UpgradeNativeConfigureSchema } from './schema';
|
|
7
|
-
export declare function reactNativeUpgradeNativeGenerator(host: Tree, schema: UpgradeNativeConfigureSchema): Promise<GeneratorCallback>;
|
|
8
|
-
export default reactNativeUpgradeNativeGenerator;
|
|
9
|
-
export declare const reactNativeUpgradeNativeSchematic: (generatorOptions: UpgradeNativeConfigureSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This function is a destructive command that replace React Native iOS and Android code with latest.
|
|
4
|
-
* It would replace the Android and iOS folder entirely.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.reactNativeUpgradeNativeSchematic = exports.reactNativeUpgradeNativeGenerator = void 0;
|
|
8
|
-
const tslib_1 = require("tslib");
|
|
9
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
10
|
-
const fs_1 = require("fs");
|
|
11
|
-
const pod_install_task_1 = require("../../utils/pod-install-task");
|
|
12
|
-
const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
|
|
13
|
-
const create_native_files_1 = require("./lib/create-native-files");
|
|
14
|
-
function reactNativeUpgradeNativeGenerator(host, schema) {
|
|
15
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const { projectType, root: appProjectRoot } = (0, devkit_1.readProjectConfiguration)(host, schema.name);
|
|
17
|
-
const iosProjectRoot = (0, devkit_1.joinPathFragments)(host.root, appProjectRoot, 'ios');
|
|
18
|
-
const androidProjectRoot = (0, devkit_1.joinPathFragments)(host.root, appProjectRoot, 'android');
|
|
19
|
-
if (projectType !== 'application' ||
|
|
20
|
-
!(0, fs_1.existsSync)(iosProjectRoot) ||
|
|
21
|
-
!(0, fs_1.existsSync)(androidProjectRoot)) {
|
|
22
|
-
throw new Error(`Could not upgrade React Native code for ${schema.name}`);
|
|
23
|
-
}
|
|
24
|
-
(0, create_native_files_1.createNativeFiles)(host, schema, appProjectRoot);
|
|
25
|
-
const podInstallTask = (0, pod_install_task_1.runPodInstall)(iosProjectRoot, schema.install);
|
|
26
|
-
const chmodTaskGradlew = (0, chmod_android_gradle_files_1.chmodAndroidGradlewFilesTask)(androidProjectRoot);
|
|
27
|
-
return (0, devkit_1.runTasksInSerial)(podInstallTask, chmodTaskGradlew);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
exports.reactNativeUpgradeNativeGenerator = reactNativeUpgradeNativeGenerator;
|
|
31
|
-
exports.default = reactNativeUpgradeNativeGenerator;
|
|
32
|
-
exports.reactNativeUpgradeNativeSchematic = (0, devkit_1.convertNxGenerator)(reactNativeUpgradeNativeGenerator);
|
|
33
|
-
//# sourceMappingURL=upgrade-native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-native.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/upgrade-native/upgrade-native.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;AAEH,yCAOsB;AACtB,2BAAgC;AAEhC,mEAA6D;AAC7D,uFAAsF;AAEtF,mEAA8D;AAG9D,SAAsB,iCAAiC,CACrD,IAAU,EACV,MAAoC;;QAEpC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,IAAA,iCAAwB,EACpE,IAAI,EACJ,MAAM,CAAC,IAAI,CACZ,CAAC;QACF,MAAM,cAAc,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;QAC3E,MAAM,kBAAkB,GAAG,IAAA,0BAAiB,EAC1C,IAAI,CAAC,IAAI,EACT,cAAc,EACd,SAAS,CACV,CAAC;QAEF,IACE,WAAW,KAAK,aAAa;YAC7B,CAAC,IAAA,eAAU,EAAC,cAAc,CAAC;YAC3B,CAAC,IAAA,eAAU,EAAC,kBAAkB,CAAC,EAC/B;YACA,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;SAC3E;QAED,IAAA,uCAAiB,EAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAEhD,MAAM,cAAc,GAAG,IAAA,gCAAa,EAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACrE,MAAM,gBAAgB,GAAG,IAAA,yDAA4B,EAAC,kBAAkB,CAAC,CAAC;QAE1E,OAAO,IAAA,yBAAgB,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;IAC5D,CAAC;CAAA;AA7BD,8EA6BC;AAED,kBAAe,iCAAiC,CAAC;AACpC,QAAA,iCAAiC,GAAG,IAAA,2BAAkB,EACjE,iCAAiC,CAClC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
/**
|
|
3
|
-
* Add support to display svg in react native:
|
|
4
|
-
* - Add react-native-svg-transform and react-native-svg packages to workspace's package.json.
|
|
5
|
-
* - Add typing to app's tsconfig.json.
|
|
6
|
-
* - Add react-native-svg to app's package.json.
|
|
7
|
-
*/
|
|
8
|
-
export default function update(tree: Tree): Promise<void>;
|