rnx-kit icon indicating copy to clipboard operation
rnx-kit copied to clipboard

rnx-init command

Open afoxman opened this issue 3 years ago • 2 comments

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

afoxman avatar Mar 20 '22 06:03 afoxman

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?

afoxman avatar May 25 '22 15:05 afoxman

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

afoxman avatar May 26 '22 17:05 afoxman