-
Notifications
You must be signed in to change notification settings - Fork 76
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
Webpack + Babel for JSX + React 14 support. #29
base: master
Are you sure you want to change the base?
Conversation
- use babel to compile jsx into lib dir for npm - use webpack + babel to compile into dist dir - remove jsx extension when importing files. - git ignore lib + dist - include lib, dist, src in npm files list.
@@ -1,289 +0,0 @@ | |||
Typeahead, written using the React.js library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this README.md deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole dist folder is removed from source control with this PR.
It's been a while but I believe the readmes were identical.
This PR adds support for React 0.14 (#17), it expands on #21 but also includes updates to examples and removes warnings in test.
I had issues getting the existing build toolchain to work properly and since there was already talk of webpack (#2, #3), I switched to using Webpack + Babel 6 (only the react preset).
Running
npm build
will now output the following:babel src --out-dir lib
).I have removed the
dist
folder from source control and have updated npm to include src, lib and dist. My intent with this was to remove compiled source from version control and use something like https://npmcdn.com to serve the dist builds from whats published on npm.