rnx-kit
rnx-kit copied to clipboard
rnx-init command
Create a new "rnx-init" CLI command for setting up app and library packages.
- [ ] Create "rnx-kit" config section using defaults exported from @rnx-kit/config. Defaults should enable all features like dupes/cyclic/type-check plugins and symlink support. Output of command should contain an aka.ms link to a guide that helps you work through the errors you might start seeing. Strategies like cataloging them and turning the features off until fixes can be made, or emitting warnings/errors without failing the build.
- [ ] Invoke dep-check's "init" code to fill in dependency information
- [ ] Create metro/babel config files, saving existing files off to the side and issuing a manual-merge-required warning
- [ ] Write unit test suite
Explore this further for new app scenarios. The checklist above is for transforming an existing app to use rnx-kit tools, but what about users who are starting out and want rnx-kit by default, like CRA w/rnx-kit?
Can we hook into react-native init with an extra argument, like a template or something like that?
From #1262 (@kelset): embedding the tooling within templates; maybe not the "super vanilla" one that RN uses as default, but at least/potentially some third party ones like https://nx.dev/guides/react-native