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

21st
Sep 2015
Marius B. Kotsbak
@mkotsbak
Sep 21 2015 14:43
Any reasoning about not adding a dependency on the react.js webjar module?
Chandra Sekhar Kode
@chandu0101
Sep 21 2015 14:47
most of the components are wrappers , webjars for all js components/libs are not available( and npm webjars doesn’t work properly) , so i picked webpack as dependency bundler for js stuff .
wait a sec looks like i misinterpreted your question, did you mean react.js as hard dependency for scalars-react-components core ?
Marius B. Kotsbak
@mkotsbak
Sep 21 2015 14:50
Yes, but I mean as a user of the library, you need to add a line like this to your project: jsDependencies += "org.webjars" % "react" % "0.12.2" / "react-with-addons.js" commonJSName "React
That apply to scalajs-react project too. Probably so that you could exchange with another version?
Chandra Sekhar Kode
@chandu0101
Sep 21 2015 14:55
we definitely don’t want to force end user to use webjars only ( he may use web pack/browserify etc) and it also keep end user in version lock , user may want to use different version for other reeasons/use cases.
Marius B. Kotsbak
@mkotsbak
Sep 21 2015 14:55
oki
I'm unsure if the same reasoning apply to my Widok wrapper now published here: https://github.com/mkotsbak/widok-scalajs-react-wrapper
Some users just want to consume ready made react components all inclusive, but other might want to migrate either way and have their own opinions on how to package the JS file
Chandra Sekhar Kode
@chandu0101
Sep 21 2015 14:59
yeah its more of personal prefernece , i just choose let user decide.. strategy. , btw congrats on widok wrapper :+1: , post it on mailing list too ;)
Marius B. Kotsbak
@mkotsbak
Sep 21 2015 14:59
Which ML?
Marius B. Kotsbak
@mkotsbak
Sep 21 2015 15:00
Thanks. Might bring some users to both Widok and this project
Ah japp, will do after I'm sure its stable
Chandra Sekhar Kode
@chandu0101
Sep 21 2015 15:01
makes sense :)