frostney / react-native-create-library

:notebook: Command line tool to create a React Native library with a single command
MIT License
1.45k stars 113 forks source link

Create an RNPM plugin for create-library #2

Closed rozele closed 7 years ago

rozele commented 8 years ago

An alternative to publishing upstream, which may be more amenable to generating Windows libraries, would be to make this an RNPM plugin. A recent commit to RNPM allows any packages that start with react-native-* (which this does) to be recognized as a plugin.

Here's how we allow RNPM to pickup plugins from react-native-windows: https://github.com/ReactWindows/react-native-windows/blob/master/package.json#L38-L40

frostney commented 8 years ago

This looks very interesting and I'm intrigued. This is definitely something I'll take a closer look during the next few days if I have a few hours to myself.

grabbou commented 7 years ago

Anyone actively working on that? I am up to adding support since that's very useful and idiomatic way of doing things.

frostney commented 7 years ago

All done! 🎉 🍾

This has just been published as 3.0.2.