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

Use webpacker for bundling and transpiling javascript #484

Merged
merged 15 commits into from
Jun 14, 2018

Commits on Jun 11, 2018

  1. Add webpacker

    stardust66 committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    9f038fe View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2018

  1. 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.
    stardust66 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    e69de2e View commit details
    Browse the repository at this point in the history
  2. 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.
    stardust66 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    8404d70 View commit details
    Browse the repository at this point in the history
  3. Convert all coffeescript files to es6 javascript

    All changes cherry-picked and squashed from decaffeinate branch
    stardust66 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    82a9bab View commit details
    Browse the repository at this point in the history
  4. Add javascript dependencies with yarn

    Remove jquery-rails gem because it's now managed with yarn
    stardust66 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    673f03b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d8c468 View commit details
    Browse the repository at this point in the history
  6. 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';`
    stardust66 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    fa0af01 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. Merge branch 'develop' into webpacker

    Updates the 'webpacker' branch to use Ruby 2.3.7
    DeeDeeG committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    003101f View commit details
    Browse the repository at this point in the history
  2. commit yarn

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    89441a9 View commit details
    Browse the repository at this point in the history
  3. add engine

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    edbb4d4 View commit details
    Browse the repository at this point in the history
  4. review apps

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    685335c View commit details
    Browse the repository at this point in the history
  5. Update Yarn Lock

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    9a398df View commit details
    Browse the repository at this point in the history
  6. Update App.json

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    e4244ab View commit details
    Browse the repository at this point in the history
  7. remove trailing comma

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    cf7af3e View commit details
    Browse the repository at this point in the history
  8. remove duplicate entry

    tkwidmer committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    0ccf47f View commit details
    Browse the repository at this point in the history