-
Notifications
You must be signed in to change notification settings - Fork 264
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
Use webpacker for bundling and transpiling javascript #484
Commits on Jun 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9f038fe - Browse repository at this point
Copy the full SHA 9f038feView commit details
Commits on Jun 12, 2018
-
Add all configurations for webpacker
Webpacker is the ruby gem that wraps webpack, a javascript utility for transforming and bundling. Add: - Yarn, which webpacker uses to manage javascript dependencies. - .babelrc, configuration file for Babel, the standard javascript transpiler. We're using it to transpile es6 javascript so that it's compatible with more browsers. - Config files for webpacker. - Config files to allow webpacker to process .erb files.
Configuration menu - View commit details
-
Copy full SHA for e69de2e - Browse repository at this point
Copy the full SHA e69de2eView commit details -
Install what webpacker needs inside Docker
- Get the latest node.js from NodeSource, officially recommended linux binaries. link: https://github.com/nodesource/distributions - Install yarn, javascript package manager required by webpacker. - Create separate volume for /refugerestrooms/node_modules in Docker to prevent mounting /refugerestrooms from overriding what was installed by yarn.
Configuration menu - View commit details
-
Copy full SHA for 8404d70 - Browse repository at this point
Copy the full SHA 8404d70View commit details -
Convert all coffeescript files to es6 javascript
All changes cherry-picked and squashed from decaffeinate branch
Configuration menu - View commit details
-
Copy full SHA for 82a9bab - Browse repository at this point
Copy the full SHA 82a9babView commit details -
Add javascript dependencies with yarn
Remove jquery-rails gem because it's now managed with yarn
Configuration menu - View commit details
-
Copy full SHA for 673f03b - Browse repository at this point
Copy the full SHA 673f03bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d8c468 - Browse repository at this point
Copy the full SHA 1d8c468View commit details -
Bundle and transpile all javascript with webpacker
Now we can write es6 code in any .js file! All the coffeescript has been converted into js. Changes: - Use es6 modules instead of globals. This is better encapsulation. This results in the removal of `window.Refuge`. Instead, to use a module, like Geocoder, just import it like this: `import { Geocoder } from 'path/to/geocoder';`
Configuration menu - View commit details
-
Copy full SHA for fa0af01 - Browse repository at this point
Copy the full SHA fa0af01View commit details
Commits on Jun 14, 2018
-
Merge branch 'develop' into webpacker
Updates the 'webpacker' branch to use Ruby 2.3.7
Configuration menu - View commit details
-
Copy full SHA for 003101f - Browse repository at this point
Copy the full SHA 003101fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89441a9 - Browse repository at this point
Copy the full SHA 89441a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for edbb4d4 - Browse repository at this point
Copy the full SHA edbb4d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 685335c - Browse repository at this point
Copy the full SHA 685335cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a398df - Browse repository at this point
Copy the full SHA 9a398dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4244ab - Browse repository at this point
Copy the full SHA e4244abView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf7af3e - Browse repository at this point
Copy the full SHA cf7af3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ccf47f - Browse repository at this point
Copy the full SHA 0ccf47fView commit details