-
Stephanie Freitag authoredStephanie Freitag authored
Holi App Donations
The backend for handling donation projects, including a GraphQL API for betterplace.
Getting started
Setup
Install deno
in version 1.40.1
as well as Velociraptor
.
Code style
Linting:
vr lint
Formatting:
vr fmt
Configuration for
typescript,
linter or
formatter can be added in
deno.json
.
See the deno manual for more tools.
Dependencies
All dependencies should be added in app/deps.ts
(similiar as you would do in a
Node.js package.json
) for caching and integrity checks. After adding a
dependency run:
vr updateDeps
to update the deno.lock
file (similiar to Node.js package.lock
including
hashes).
To just install and cache dependencies locally or force a reload of dependencies, run:
vr install
Compiling (optional)
Deno will compile all TypeScript code to JavaScript and cache the resulting files. This will happen automatically when you run the code, but you can also trigger this manually by running
vr cache
Testing
Tests can be executed with
vr test
(Test filenames should end on a _test
prefix).
To get information about test coverage use
vr coverage
For more information, e.g. on how to create different coverage formats, see the documentation