bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

Create a default package for --init for native #20

Closed bsansouci closed 6 years ago

bsansouci commented 6 years ago

The title says it all.

--init supports generate a default package. Currently we point people to https://github.com/bsansouci/bsb-native-example but we should also have a way to generate this from --init

lilactown commented 6 years ago

Is there a good way to have bsb-native installed globally (so I can use the -init parameter), without clobbering mainline bsb?

bsansouci commented 6 years ago

@Lokeh hey! I’m not sure what you’re asking. What do you mean clobbering? You can always do npm install -g bsansouci/bsb-native#2.1.1 to install globally.

lilactown commented 6 years ago

If I already have bsb installed for working with JS, I may not want to install bsb-native over it. Bsb-native will overwrite my original bsb installation if I install it globally, right?

bsansouci commented 6 years ago

Yeah, you can simply install bsb-native locally :) (bsb as well can be installed locally). Then you can call it directly ./node_modules/.bin/bsb or through a npm script.