Skip to content

Conversation

@skevy
Copy link
Contributor

@skevy skevy commented Jun 13, 2015

The root react.js and react-native.js files need to be compiled with Babel before pushing to npm.

It's kind of nasty to have these long pre- and post-publish commands in package.json...so if you guys have interest in moving to a Makefile approach, let me know and I'll send another PR.

@acdlite
Copy link
Collaborator

acdlite commented Jun 13, 2015

Yeah, we should think about this. I like Make but when I used it in Flummox I got complaints from people that it made it harder for Windows users to contribute. Maybe a scripts folder with bash scripts would be better? I don't think we need the incremental build features of Make, just a way to run some predefined commands.

@skevy
Copy link
Contributor Author

skevy commented Jun 13, 2015

Scripts are fine too. I like make, but I understand the concerns from Windows users. I'll do something with scripts now and update this PR.

@dariocravero
Copy link
Contributor

You may find these useful then :)
https://github.com/UXtemple/panels-router/tree/master/.bin we took it a
step further and use the same paths for compiled and source sending only
the necessary parts to npm and git but it's easy not to do that too if you
want to keep the current src structure.

On Sat, 13 Jun 2015 17:34 Andrew Clark notifications@github.com wrote:

Yeah, we should think about this. I like Make but when I used it in
Flummox I got complaints from people that it made it harder for Windows
users to contribute. Maybe a scripts folder with bash scripts would be
better? I don't think we need the incremental build features of Make, just
a way to run some predefined commands.


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

@gaearon
Copy link
Contributor

gaearon commented Jun 13, 2015

Let's keep ES6 versions of react.js and react-native.js in src.

Maybe a scripts folder with bash scripts would be better?

Let's do this. The build script should put the compiled versions of react.js and react-native.js into the root folder. They should be in .gitignore.

@gaearon
Copy link
Contributor

gaearon commented Jun 13, 2015

A temporary fix is out in 1ed784c.

@gaearon
Copy link
Contributor

gaearon commented Jun 13, 2015

Meaning, it's out in 0.10.1..

@gaearon
Copy link
Contributor

gaearon commented Jun 13, 2015

Do you mind rebasing this? Feel free to get rid of 1ed784c again, I just wanted to get a fix out and didn't notice you already updated the PR..

@skevy
Copy link
Contributor Author

skevy commented Jun 13, 2015

No problem. Will do after I push updates to #86.

@gaearon
Copy link
Contributor

gaearon commented Jun 13, 2015

👍

@skevy
Copy link
Contributor Author

skevy commented Jun 14, 2015

@gaearon rebased.

@gaearon
Copy link
Contributor

gaearon commented Jun 14, 2015

Cool, can you squash into a single commit please?

git fetch
git checkout fix-packaging
git merge origin/master
git reset --soft origin/master
git commit -am "message"
git push -f

@skevy
Copy link
Contributor Author

skevy commented Jun 14, 2015

Sorry about that. Done.

gaearon added a commit that referenced this pull request Jun 14, 2015
compiling react.js and react-native.js before npm publish
@gaearon gaearon merged commit b316444 into reduxjs:master Jun 14, 2015
@gaearon
Copy link
Contributor

gaearon commented Jun 14, 2015

👍 Thanks!

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.

4 participants