These are chat archives for chandu0101/scalajs-react-components

16th
Nov 2015
Roberto Leibman
@rleibman
Nov 16 2015 01:22
Near as I can tell the compiler is interpreting the onClick part wrongly, I have no idea what it thinks it is, but there is a bug report on it.
Mark van Leeuwen
@mjvanleeuwen
Nov 16 2015 06:51

Hi guys. Thanks for all your work on this.

I'm looking at implementing an app using scala.js / react / material-ui and so far this is the only library I can find supporting that combination.

Is it possible to build the client side entirely with SBT such that it bundles minified react and material-ui JS code? I see there are webjars for react and material-ui JS, but the material-ui webjar does not contain a single combined material-ui.js file nor any minified JS.

Or should be using npm + webpack/browserify/etc to optimize the JS dependencies? If so, how can that work when the JS entry points are in the scala.js code?

Sorry if these are dumb questions - I haven't done front end dev for years.

Øyvind Raddum Berg
@oyvindberg
Nov 16 2015 07:12
@mjvanleeuwen that webjar is not much tested yet, but it should work. I guess it hasnt bumped to the latest bugfix verions of react/mui yet. What most of us has been doing so far is npm, like you can see in the demo project
Also we havent released new version yet, im hoping to change that in very few days
Mark van Leeuwen
@mjvanleeuwen
Nov 16 2015 13:22
@elacin I saw you had been working on a branch compatible with react 0.13/0.14 so I cloned that hoping it would be soon merged in. With the material-ui webjar, there is no single combined JS file to include, so that would mean referring to each JS file in the SBT jsDependencies setting - or am I missing something? At this point it looks like npm is the only practical way to go for material-ui.
Øyvind Raddum Berg
@oyvindberg
Nov 16 2015 17:17
@mjvanleeuwen @b0c1 made a webjar that includes mui and react, we just need merging and documentation for that i think
sorry that the project is all a mess now, its just a lot of work and little time here, we'll get it sorted out as soon as possible
Roberto Leibman
@rleibman
Nov 16 2015 17:42
ok, I'm really done for now. Got the rest of the demo pages for elemental done. It was an interesting exercise.
Roberto Leibman
@rleibman
Nov 16 2015 18:19
I appended them to the pull request
Øyvind Raddum Berg
@oyvindberg
Nov 16 2015 21:44
awesome!
think i will just start merging stuff, then we will work out the rest over the coming days, then release
Roberto Leibman
@rleibman
Nov 16 2015 21:45
Cool