-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR] Node 18, Automation, PR build update (#33)
- Loading branch information
Showing
36 changed files
with
7,657 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* @Author: you@you.you | ||
* @Date: Tuesday May 5th 2020 | ||
* @Last Modified By: Brogan Miner | ||
* @Last Modified Time: Tuesday May 5th 2020 | ||
* @Copyright: (c) Oregon State University 2020 | ||
*/ | ||
VUE_APP_ROOT_API=https://api.sustainability.oregonstate.edu/v2/map | ||
VUE_APP_HOST_ADDRESS=http://localhost:8080 | ||
/* | ||
* @Author: you@you.you | ||
* @Date: Tuesday May 5th 2020 | ||
* @Last Modified By: Brogan Miner | ||
* @Last Modified Time: Tuesday May 5th 2020 | ||
* @Copyright: (c) Oregon State University 2020 | ||
*/ | ||
VUE_APP_ROOT_API=http://localhost:3000 | ||
VUE_APP_HOST_ADDRESS=http://localhost:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
name: gh pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy-gh-pages: | ||
name: Build / Deploy to gh-pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
run: | | ||
npm run build | ||
- name: deploy frontend to gh pages | ||
uses: crazy-max/ghaction-github-pages@v3 # https://github.com/crazy-max/ghaction-github-pages | ||
with: | ||
target_branch: gh-pages | ||
build_dir: dist | ||
env: | ||
name: gh pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy-gh-pages: | ||
name: Build / Deploy to gh-pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
npm run build | ||
- name: deploy frontend to gh pages | ||
uses: crazy-max/ghaction-github-pages@v3 # https://github.com/crazy-max/ghaction-github-pages | ||
with: | ||
target_branch: gh-pages | ||
build_dir: dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
name: test build | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- gh-pages | ||
|
||
jobs: | ||
build-deploy-gh-pages: | ||
name: Test Build (No Deploy) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
run: | | ||
name: test build | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy-gh-pages: | ||
name: Test Build (No Deploy) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set-up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- name: npm install | ||
run: | | ||
npm install | ||
- name: npm build frontend | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
npm run build-stage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
# Sustainability Map ![Frontend Status](https://github.com/OSU-Sustainability-Office/sustainability_map/actions/workflows/gh-deploy.yml/badge.svg)![Test Build Status](https://github.com/OSU-Sustainability-Office/sustainability_map/actions/workflows/test-workflow.yml/badge.svg) | ||
An interactive map showing the sustainability features available at Oregon State University's Corvallis campus! | ||
|
||
An interactive map showing the sustainability features available at Oregon State University's Corvallis campus! | ||
|
||
## Installation Steps | ||
|
||
- Clone the repo | ||
- Use nvm to get node version 16 (```nvm install 16 && nvm use 16```) | ||
- Use nvm to get node version 18 (```nvm install 16 && nvm use 18```) | ||
- ```npm install``` | ||
- ```npm run serve``` to test-run the website | ||
|
||
|
||
## Notes about the build process: | ||
|
||
The source code (under `src`) gets automatically bundled by vue-cli (which uses webpack) into compact static assets under `public`, additional static assets dependent on outside sources (e.g. OSU building geometry from Open Street Maps) get created before the vue-cli webpack build via scripts under the `util` directory. | ||
|
||
The source code (under `src`) gets automatically bundled by vue-cli (which uses webpack) into compact static assets under `public`, additional static assets dependent on outside sources (e.g. OSU building geometry from Open Street Maps) get created before the vue-cli webpack build via scripts under the `util` directory. | ||
|
||
## Helpful References for Development | ||
- [Hjson Reference](https://hjson.github.io/) | ||
- [BBox Tool](http://norbertrenner.de/osm/bbox.html) | ||
- [OSU Rainwater Brohcure](https://fa.oregonstate.edu/sites/fa.oregonstate.edu/files/2021-07/stormwater_brochure_v12.pdf) | ||
- [OSU Sustainability Office Website](https://fa.oregonstate.edu/sustainability/about) | ||
- [OSU Sustainability Office Ecologue](https://blogs.oregonstate.edu/ecologue/) | ||
- [Overpass Turbo](https://overpass-turbo.eu/#) | ||
- [Overpass API](https://dev.overpass-api.de/overpass-doc/en/) | ||
- [OpenStreetMap](https://www.openstreetmap.org/#map=15/44.5649/-123.2782) | ||
- [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946) | ||
- [Leaflet GeoJSON Features](https://leafletjs.com/examples/geojson/) | ||
- [Leaflet Quickstart Guide](https://leafletjs.com/examples/quick-start/) | ||
- [Official Leaflet Docs](https://leafletjs.com/reference-1.6.0.html) | ||
- [Vue2Leaflet GitHub Page](https://github.com/vue-leaflet/Vue2Leaflet) | ||
- [Vue2Leaflet Docs](https://vue2-leaflet.netlify.app/quickstart/#accessing-leaflet-api) | ||
- [Vuex Store Docs](https://vuex.vuejs.org/) | ||
|
||
- [Hjson Reference](https://hjson.github.io/) | ||
- [BBox Tool](http://norbertrenner.de/osm/bbox.html) | ||
- [OSU Rainwater Brohcure](https://fa.oregonstate.edu/sites/fa.oregonstate.edu/files/2021-07/stormwater_brochure_v12.pdf) | ||
- [OSU Sustainability Office Website](https://fa.oregonstate.edu/sustainability/about) | ||
- [OSU Sustainability Office Ecologue](https://blogs.oregonstate.edu/ecologue/) | ||
- [Overpass Turbo](https://overpass-turbo.eu/#) | ||
- [Overpass API](https://dev.overpass-api.de/overpass-doc/en/) | ||
- [OpenStreetMap](https://www.openstreetmap.org/#map=15/44.5649/-123.2782) | ||
- [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946) | ||
- [Leaflet GeoJSON Features](https://leafletjs.com/examples/geojson/) | ||
- [Leaflet Quickstart Guide](https://leafletjs.com/examples/quick-start/) | ||
- [Official Leaflet Docs](https://leafletjs.com/reference-1.6.0.html) | ||
- [Vue2Leaflet GitHub Page](https://github.com/vue-leaflet/Vue2Leaflet) | ||
- [Vue2Leaflet Docs](https://vue2-leaflet.netlify.app/quickstart/#accessing-leaflet-api) | ||
- [Vuex Store Docs](https://vuex.vuejs.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.