petehunt / generator-react-library

Yeoman generator for React components
Apache License 2.0
17 stars 5 forks source link

beefy and `index.html` #8

Closed chenglou closed 10 years ago

chenglou commented 10 years ago

beefy very conveniently generates and starts its own page if it doesn't find an index.html in the folder. However, an index.html template is still needed to test the final browserified/stylesheet-ed bundle (dev and prod, but mostly prod). One or two errors actually creeped up only when I used the browserified bundle.

So about the index.html template: this gets confusing as the it uses the browserified bundle and beefy really doesn't have a role in all of this beside watching for changes (can substitute with watch) and refresh the page (should be possible without beefy?). I'll explore some solutions further.

petehunt commented 10 years ago

Hrm. I'm OK with ditching beefy and just going with the react-browserify-template setup we had before

chenglou commented 10 years ago

Finally, I'm keeping beefy for now. Other live reloading plugins require buying the app; I can imagine lots of people don't have it. Also, beefy's pretty convenient for opening up the browser page. I'm working on the grunt branch (not submitted yet) right now and it should hide away the extra steps for browserify + min + whatever else all into grunt build, so for now we're fine.