![All Contributors][all-contributors-logo]
This is a Vue project which allows all you to dynamically toggle on/off any of the Upstate / Greenville SC open map data layers!
Contributions to this project or the map data is greatly appreciated! You can join the HackGreenville Slack #hg-labs channel to get involved. Or, comment on issues or pull requests on this repository.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
I also recommend using asdf version manager to install the correct version of Node.JS for this project. Then, you can follow the instructions to install the Node.JS asdf plugin, and the Node.JS version will be installed for this directory only.
.vue
Imports in TSTypeScript cannot handle type information for .vue
imports by default, so we
replace the tsc
CLI with vue-tsc
for type checking. In editors, we need
TypeScript Vue Plugin
(Volar)
to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
Extensions: Show Built-in Extensions
from VSCode's command paletteTypeScript and JavaScript Language Features
, right click and select
Disable (Workspace)
Developer: Reload Window
from the
command palette.See Vite Configuration Reference.
npm install
npm run dev
npm run build
npm run test:unit:dev
Reset Cached API Responses (Called Tapes) Used by Vitest This project utilizes the talkback package to save responses received from external dependencies into fixtures (called tapes) that can be used in subsequent set suite executions.
If the upstream data source's response schema is altered you can run the following command to "freshen things up" and overwrite any previously recorded responses:
OVERWRITE_TAPES=1 npm run test:unit:dev
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
This will run all unit and end to end tests, as well as type and formatting checks in preparation for a pull request:
npm run test:all
This will format all the files for you automatically!
npm run lint
Thanks goes to these wonderful people (emoji key):
Olivia Sculley 🤔 💻 ⚠️ 🚧 🚇 🐛 📖 |
Matthew Thornton 💻 ⚠️ |
Alex Grimes 💻 ⚠️ 🎨 🐛 |
This project follows the all-contributors specification. Contributions of any kind welcome!