-
Notifications
You must be signed in to change notification settings - Fork 31
Frontend — Configuration files
Jonas Jaszkowic edited this page Oct 15, 2024
·
4 revisions
On this page, we will go through how the application is configured and look at the tools used to make the development easier.
At the root of the project, there are a few configuration files to be aware of:
File | Purpose |
---|---|
tsconfig.json |
Defines how TypeScript is to be compiled. Most settings such as target , jsx , and lib describe how to transform our TypeScript code into JavaScript. |
eslint.config.js |
Tells Eslint for which rule or convention to show an error or a warning in the case it isn't respected and to warn for possible compilation errors. |
.gitignore |
Tells which files and folder to be ignored by Git |
.nvmrc |
Defines which NodeJs version to run the code on. |
prettier.config.js |
Tells Prettier how to format the code, whether to use tabs or space, etc. |
.vscode /extensions.json
|
Lists which Visual Studio Code extensions are recommended to use with this project. |
.vscode /settings.json
|
Defines some basic configuration for Visual Studio Code. |
.github /renovate.json
|
Tells Github's renovate bot how to update the repo's Npm dependencies. |
.github /CODEOWNERS
|
Tells Github who the primary maintainers of the code are and who to automatically assign new Pull Requests to. |
.github /workflows /codeql-analysis.yml
|
Performs general sanity checks to ensure the code is clean and doesn't contain common errors. |
.github /workflows /demo-branch-sync.yml
|
Ensures that the demo branch is always up to date with the master branch. |
.github /workflows /pumps.yml
|
Run a harvester that gathers new information about the pumps and saves it to the repo. |
.github /workflows /test.yml
|
Runs the code quality checks such as type-checking, code linting, unit testing, etc. |
- Setup Mapbox
- Setup Supabase
- Setup Vercel (optional, for deploying the Frontend)
- Setup Pipedream (optional, for scheduling Github Actions)