-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone Gradle plugin: Node.js package resolver #42823
Conversation
This pull request was exported from Phabricator. Differential Revision: D52998256 |
This pull request was exported from Phabricator. Differential Revision: D52998256 |
Summary: Pull Request resolved: facebook#42823 This is a tiny new Gradle plugin intended to be published to the Gradle Plugin Portal independently of React Native. It's only function is to resolve `node_modules` package roots using a sufficient subset of the Node JS resolution algorithm - e.g, we can use it to find `react-native` itself from a user's project, whatever package manager or workspace setup they're using, in a Gradle-friendly, cacheable manner. The plugin is both a `Settings` plugin and a `Project` plugin, so that it may be used from both `settings.gradle` (where we need it to resolve `react-native`) and `app/build.gradle` (which currently applies from `cli-platform-android`). The setup is mostly `gradle init` with a few modifications (eg, Kotlin JVM version) to stay close to the setup for `react-native-gradle-plugin`. I think it's easier to reason about this currently as an entirely separate Gradle project, but we may be able to merge the two and reduce some duplication once it's proven. Changelog: [General][Added] - Gradle plugin for resolving node_modules packages. Reviewed By: cortinico Differential Revision: D52998256 fbshipit-source-id: 9e36f4796a2d57015a5fe5dd9616acf2a31a4e03
416d5e9
to
70609a2
Compare
This pull request was exported from Phabricator. Differential Revision: D52998256 |
Summary: Pull Request resolved: facebook#42823 This is a tiny new Gradle plugin intended to be published to the Gradle Plugin Portal independently of React Native. It's only function is to resolve `node_modules` package roots using a sufficient subset of the Node JS resolution algorithm - e.g, we can use it to find `react-native` itself from a user's project, whatever package manager or workspace setup they're using, in a Gradle-friendly, cacheable manner. The plugin is both a `Settings` plugin and a `Project` plugin, so that it may be used from both `settings.gradle` (where we need it to resolve `react-native`) and `app/build.gradle` (which currently applies from `cli-platform-android`). The setup is mostly `gradle init` with a few modifications (eg, Kotlin JVM version) to stay close to the setup for `react-native-gradle-plugin`. I think it's easier to reason about this currently as an entirely separate Gradle project, but we may be able to merge the two and reduce some duplication once it's proven. Changelog: [General][Added] - Gradle plugin for resolving node_modules packages. Reviewed By: cortinico Differential Revision: D52998256 fbshipit-source-id: e748148ab8c2c67f12f3649304d3263cde8267e2
70609a2
to
59fc369
Compare
This pull request was exported from Phabricator. Differential Revision: D52998256 |
59fc369
to
a902d73
Compare
Summary: Pull Request resolved: facebook#42823 This is a tiny new Gradle plugin intended to be published to the Gradle Plugin Portal independently of React Native. It's only function is to resolve `node_modules` package roots using a sufficient subset of the Node JS resolution algorithm - e.g, we can use it to find `react-native` itself from a user's project, whatever package manager or workspace setup they're using, in a Gradle-friendly, cacheable manner. The plugin is both a `Settings` plugin and a `Project` plugin, so that it may be used from both `settings.gradle` (where we need it to resolve `react-native`) and `app/build.gradle` (which currently applies from `cli-platform-android`). The setup is mostly `gradle init` with a few modifications (eg, Kotlin JVM version) to stay close to the setup for `react-native-gradle-plugin`. I think it's easier to reason about this currently as an entirely separate Gradle project, but we may be able to merge the two and reduce some duplication once it's proven. Changelog: [General][Added] - Gradle plugin for resolving node_modules packages. Reviewed By: cortinico Differential Revision: D52998256 fbshipit-source-id: 2e09d34a176e66d2e8ad3cc91803cd8669e4d9e4
Summary: Pull Request resolved: facebook#42823 This is a tiny new Gradle plugin intended to be published to the Gradle Plugin Portal independently of React Native. It's only function is to resolve `node_modules` package roots using a sufficient subset of the Node JS resolution algorithm - e.g, we can use it to find `react-native` itself from a user's project, whatever package manager or workspace setup they're using, in a Gradle-friendly, cacheable manner. The plugin is both a `Settings` plugin and a `Project` plugin, so that it may be used from both `settings.gradle` (where we need it to resolve `react-native`) and `app/build.gradle` (which currently applies from `cli-platform-android`). The setup is mostly `gradle init` with a few modifications (eg, Kotlin JVM version) to stay close to the setup for `react-native-gradle-plugin`. I think it's easier to reason about this currently as an entirely separate Gradle project, but we may be able to merge the two and reduce some duplication once it's proven. Changelog: [General][Added] - Gradle plugin for resolving node_modules packages. Reviewed By: cortinico Differential Revision: D52998256 fbshipit-source-id: 16b9096b21aaaf1ad7bc462423253a126f29b14c
This pull request was exported from Phabricator. Differential Revision: D52998256 |
a902d73
to
1242530
Compare
This pull request has been merged in 8456cca. |
This pull request has been reverted by 48a19d7. |
Summary:
This is a tiny new Gradle plugin intended to be published to the Gradle Plugin Portal independently of React Native. It's only function is to resolve
node_modules
package roots using a sufficient subset of the Node JS resolution algorithm - e.g, we can use it to findreact-native
itself from a user's project, whatever package manager or workspace setup they're using, in a Gradle-friendly, cacheable manner.The plugin is both a
Settings
plugin and aProject
plugin, so that it may be used from bothsettings.gradle
(where we need it to resolvereact-native
) andapp/build.gradle
(which currently applies fromcli-platform-android
).The setup is mostly
gradle init
with a few modifications (eg, Kotlin JVM version) to stay close to the setup forreact-native-gradle-plugin
. I think it's easier to reason about this currently as an entirely separate Gradle project, but we may be able to merge the two and reduce some duplication once it's proven.Changelog:
[General][Added] - Gradle plugin for resolving node_modules packages.
Reviewed By: cortinico
Differential Revision: D52998256