2020-04-08 00:36:15 +02:00
|
|
|
# Refactoring ideas
|
|
|
|
|
2020-06-29 20:17:03 +02:00
|
|
|
## TODO
|
2020-04-10 00:43:15 +02:00
|
|
|
|
|
|
|
* Test email rendering!
|
2020-06-30 01:10:18 +02:00
|
|
|
* Get rid of unhandled promise rejection warnings in tests.
|
2020-04-10 00:43:15 +02:00
|
|
|
|
2020-04-08 00:36:15 +02:00
|
|
|
## Short term
|
|
|
|
|
|
|
|
* Integrate typescript in the build and start migrating the server code.
|
2020-04-08 01:55:48 +02:00
|
|
|
* Find a nice way to integrate typescript with grunt.
|
2020-04-10 00:43:15 +02:00
|
|
|
* Bluebird for promises?
|
2020-06-29 20:17:03 +02:00
|
|
|
* Yarn instead of NPM?
|
2020-04-08 00:36:15 +02:00
|
|
|
|
|
|
|
## Mid term
|
|
|
|
|
2020-04-10 00:43:15 +02:00
|
|
|
* Typesafe db queries.
|
2020-04-08 00:36:15 +02:00
|
|
|
* Port complete server to typescript.
|
|
|
|
* Port the server code to promises and `async` / `await`.
|
|
|
|
* Use ES6 style imports instead of `require`.
|
|
|
|
* Store node data in database and export it for gateways.
|
|
|
|
* Write tests (especially testing quirky node data).
|
2020-04-10 00:43:15 +02:00
|
|
|
* Allow terminating running tasks via bluebirds cancellation.
|
2020-04-08 00:36:15 +02:00
|
|
|
|
|
|
|
## Long term
|
|
|
|
|
|
|
|
* Rewrite the admin interface (used lib is unmaintained).
|
|
|
|
* Rewrite the client in typescript (+ vue?).
|
|
|
|
* Replace the grunt build system.
|
|
|
|
* Decentralize node data.
|