Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to React 0.11 #3

Merged
merged 8 commits into from
Jul 22, 2014
Merged

Update to React 0.11 #3

merged 8 commits into from
Jul 22, 2014

Conversation

guersam
Copy link
Contributor

@guersam guersam commented Jul 22, 2014

  • Use React 0.11, jstransform 6.0.1 WebJars
  • Add sourceMapInline option
  • Update other dependencies
  • Use SBT macro instead of manual mapping

@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

Did you run the tests and verify a source map shows up? I don't know the new options, but this shim probably will need some changes if it doesn't. https://github.com/ddispaltro/sbt-reactjs/blob/master/src/main/resources/jsx.js I copied it as a template from the coffeescript compiler.

Thanks for the contributions!

@guersam
Copy link
Contributor Author

guersam commented Jul 22, 2014

Actually I couldn't do it yet because I'm not familar with sbt scripted
tests, but upon reading the shim code I think it'll work.

@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

ill give it a go, standby

@guersam
Copy link
Contributor Author

guersam commented Jul 22, 2014

Just fixed a JS param name and checked it working. If you want some tests I'll do it in a few days.

@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

Man something happen with logger inclusion in latest sbt plugin 2.3.2. Looks like it works though, I put the dep back to 2.3.0 and now I am not getting those errors. It looks related to sbt/sbt-native-packager#291 either way looks like it mostly works. It would be good to add a test to https://github.com/ddispaltro/sbt-reactjs/tree/master/src/sbt-test/sbt-reactjs outlining the new harmony/sourcemaps functionality. I never really had it working since sourcemaps never really worked. If you want I will commit it anyway.

@guersam
Copy link
Contributor Author

guersam commented Jul 22, 2014

Actually I'm not sure the web browsers understand inline source map, but the source map can be attached by the latest commit anyway. I'll revert play version and add some tests to this PR when I have some spare time.

BTW, do you have any plan for automated test via Travis CI?

@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

No plan, haven't thought about the travis stuff really at all. Is it possible to test sbt plugins with travis?

Btw to run the tests you just do

$ sbt
> scripted

@guersam
Copy link
Contributor Author

guersam commented Jul 22, 2014

Sure, you can override test command using script field in .travis.yml.

@guersam
Copy link
Contributor Author

guersam commented Jul 22, 2014

Added .travis.yml, fixed source map and added some tests. Please let me know if the tests fail, then I'll write a custom file command for it.

@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

Im going to merge and test travis

dispalt added a commit that referenced this pull request Jul 22, 2014
Update to React 0.11 with source maps.
@dispalt dispalt merged commit e1e222d into dispalt:master Jul 22, 2014
@dispalt
Copy link
Owner

dispalt commented Jul 22, 2014

Travis is working, I had to edit the jvmopts to give it more memory and move over to oraclejdk7 since I generally get more consistent performance from that. Thanks for the help @guersam!

@guersam guersam deleted the tmp/react-0.11 branch July 23, 2014 00:21
@guersam
Copy link
Contributor Author

guersam commented Jul 23, 2014

Great, glad to contribute :)

@dispalt
Copy link
Owner

dispalt commented Jul 23, 2014

Pushed 0.3.0 to bintray.

On Tue, Jul 22, 2014 at 5:22 PM, Jisoo Park [email protected]
wrote:

Great, glad to contribute :)


Reply to this email directly or view it on GitHub
#3 (comment).

Dan Di Spaltro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants