WorldWideTelescope / wwt-web-client

The WorldWide Telescope web client lets you explore the universe in your browser.
https://worldwidetelescope.org/webclient/
MIT License
105 stars 35 forks source link

Add different "build profiles" #262

Closed pkgw closed 4 years ago

pkgw commented 4 years ago

By using the Grunt task profile:dev or profile:prod, we can load different variable settings from YAML files and insert them into index.html and/or app.js. This lets us tune the specific build for local testing or the production server (where we want to use the CDN), and using YAML files makes it reproducible. Pretty pleased with how this turned out.

Primary motivation was pulling in webclient static asset files over the CDN, rather than getting them from relative URLs. (Since the origin will be wwt.o, not cdn.wwt.o.)

pkgw commented 4 years ago

CI failure is @astrofrog's Azure Pipelines setup linked to this repo (https://dev.azure.com/thomasrobitaille/wwt-web-client/) not the WWT centralized one (https://dev.azure.com/aasworldwidetelescope/WWT/)