group-income
group-income copied to clipboard
WIP - Migrate backend to Deno
Related to #586
Summary of changes:
- New Deno backend, using my fork of the Pogo server framework. An okTurtles-based fork could be used as well.
- All files in
backend/
andshared/
have been converted to TypeScript. - Some Flowtype definitions in
shared/
were still necessary and have been moved to newtypes.flow.js
files in their respective folders. - Grunt tasks
backend:launch
andbackend:relaunch
have been replaced withdeno:start
. - New
deno:stop
andflow:stop
tasks, used to avoid dangling process issues. - New
exec:ts
task for typechecking backend and shared files.
Additional info:
Known issues and limitation:
- Everything but the backend is still based on Nodejs. I think migrating one thing at a time is likely easier.
Remaining tasks:
- [x] Use Deno's
--watch
flag to implementnpm backend
script equivalent functionality without using Nodemon - [x] Annotate backend files so they pass typechecking with
deno check
- [x] Fix Flow errors in shared files
- [x] Replace Mocha by
deno test
for backend unit tests
Wonder if these updates to Deno are relevant? https://deno.com/blog/v1.35