Flatten the list of files given for a javascript source tree …
This allows us to use YAML symbols to create "sets" of assets for
particular components
Restructure assets.yml to generate station-specific JS files …
These station-specific JS files only include the JS for the UI
components they include, reducing page weight
Use app-specific asset Javascript file, fallback to app.js if needed …
The app-specific JS includes all the JS needed for the station's
components to run
If a station does not have an app-specific asset file yet, app.js is
used to help bootstrap development
Use uglifyjs command to compress JS instead of Uglifier gem …
Using the uglify command rather than the wrapper library reduces
the build time to 70s, which is a dramatic improvement from
the wrapper library (~10 minutes for a single file)
Flatten the list of files given for a javascript source tree …
Restructure
assets.yml
to generate station-specific JS files …Use app-specific asset Javascript file, fallback to app.js if needed …
Use
uglifyjs
command to compress JS instead ofUglifier
gem …uglify
command rather than the wrapper library reduces the build time to 70s, which is a dramatic improvement from the wrapper library (~10 minutes for a single file)