Commit Graph

167 Commits

Author SHA1 Message Date
Xymorot 8a5472e9ee config: universally define the app name in the package.json as "productName"
The goal is to have this as the only truth, as well as the version string.
2019-12-10 23:36:34 +01:00
Xymorot e02e0d97e0 feat: use userData electron path for database (subfolder with version)
This has the side effect of no more ormconfig.yml file, and the database connections are now only loaded on demand (as well as running the migrations).

BREAKING CHANGE: there is no migration for the old database
2019-12-10 23:33:48 +01:00
Xymorot 41fc16c1c8 doc: describe workflow for pull requests 2019-12-08 13:28:40 +01:00
Xymorot b705fd19a2 config: add build script in front of test script inside pre-push script 2019-12-07 00:59:08 +01:00
Xymorot d2b772a899 config: disable object-literal-sort-keys
The main reason is that its option 'match-declaration-order-only' doesn't work with type inheritance.
2019-12-07 00:56:51 +01:00
Xymorot 77274d42fd meta: clarify original = canon 2019-12-06 21:20:27 +01:00
Xymorot 6d680cf5fb config: make watch:ts output more usable in watch script 2019-12-05 21:03:14 +01:00
Xymorot b672aca7f0 config: add missing files to ignore list (remove gulpfile from the same) 2019-12-05 20:05:53 +01:00
Xymorot e6a480a805 update: run npm update 2019-12-05 19:04:39 +01:00
Xymorot 49642e9ea4 meta: add question for reader, remove a comma 2019-12-04 19:03:15 +01:00
Xymorot 7b09f44d17 meta: write an example for multiple inheritance 2019-12-04 19:01:44 +01:00
Xymorot 482e5bd343 config: remove gulp and realize build process with concurrently 2019-12-04 03:51:28 +01:00
Xymorot 95de66a3c9 doc: add third section to license and extend first section 2019-12-04 01:55:12 +01:00
Xymorot b5846b49c5 meta: create documents for application design, make repository ready for publishing on git.fuwawa.moe 2019-12-04 01:33:41 +01:00
Xymorot d83660ee30 remove: remove rateable trait from book entity 2019-12-01 15:12:41 +01:00
Xymorot cdae3160df meta: move draw.io files into own folder and add documentation md file 2019-11-29 23:23:26 +01:00
Xymorot ef7938266f doc: add second section to license 2019-11-29 23:19:49 +01:00
Xymorot a8ef7a5628 doc: rename license file from md to txt 2019-11-29 23:19:47 +01:00
Xymorot 8a16067ce1 doc: create a CHANGELOG.md file 2019-11-27 20:21:10 +01:00
Xymorot b2120d9ef3 refactor: move mock file (containing mock interface) into a new types folder inside tests 2019-11-27 16:41:21 +01:00
Xymorot 5d84985551 refactor: remove redundant initialization 2019-11-27 16:27:45 +01:00
Xymorot 237ae2079c doc: add a "license" file 2019-11-26 22:51:55 +01:00
Xymorot cfc14ef1a3 config: add database-backup and store-backup folders to forge ignore list 2019-11-26 22:51:55 +01:00
Xymorot 442174e462 refactor: remove @Entity annotation from abstract entities 2019-11-26 22:51:55 +01:00
Xymorot 0ac84df449 refactor: remove options from one-to-many relations because it is not necessary 2019-11-26 22:51:54 +01:00
Xymorot 34bd46d376 feat: add indexable multi-name entities, add check constraints to rateable and multi-named entity mixin
BREAKING CHANGE: delete old migrations for a new initial_migration
2019-11-26 22:51:54 +01:00
Xymorot b73e14f0ab test: add test setup files for backing up store and database folders before tests 2019-11-26 22:51:54 +01:00
Xymorot 7c2aaacf13 doc: clarify mocks documentation 2019-11-26 22:51:54 +01:00
Xymorot 2006815b2b feat: refactor entity classes to use mixins, add rateable mixin to book and copy 2019-11-26 22:51:53 +01:00
Xymorot 8bfaba185b config: refactor and add some lint scripts 2019-11-26 22:51:53 +01:00
Xymorot 4f28d63136 update: run npm update 2019-11-26 22:51:53 +01:00
Xymorot 0b5906e757 meta: add schema folder in workspace with draw.io and pdf file 2019-11-26 22:51:52 +01:00
Xymorot 96deb54d1a config: add mocks folder to eslint 2019-11-26 22:51:52 +01:00
Xymorot b19be09303 meta: add workspace folder with application icon files 2019-11-26 22:51:32 +01:00
Xymorot 0101e02345 doc: display commit types in a table with some better explanations 2019-11-20 23:35:50 +01:00
Xymorot e79a94191e fix: reformat forge config and add an escape \ before a dot in a regex 2019-11-20 23:21:36 +01:00
Xymorot 550e65dedb test: implement tests for 100% coverage of store service 2019-11-20 23:21:36 +01:00
Xymorot 423df953fb config: add build script to pre-commit script to test for typescript errors 2019-11-20 23:21:35 +01:00
Xymorot 69f06b2e0c fix: fix typescript errors (coming from update) 2019-11-20 23:21:35 +01:00
Xymorot c02046817e doc: put update commit type above test commit type 2019-11-20 23:21:35 +01:00
Xymorot c2179ac580 update: run npm update 2019-11-20 23:21:35 +01:00
Xymorot fce8e95a0e feat: install and use fs-extra instead of fs, implement groundwork for more sophisticated error reporting
also add tests and mocking framework
2019-11-20 23:21:34 +01:00
Xymorot 1392532b7e config: extract nyc into own npm scripts because it makes debugging impossible 2019-11-20 23:21:34 +01:00
Xymorot 1b2157f031 test: use before and after instead of beforeEach and afterEach in main.spec.ts (also move @slow tag to suite) 2019-11-20 23:21:34 +01:00
Xymorot a6c9890c70 config: turn off per-file coverage checking in nyc 2019-11-20 23:21:34 +01:00
Xymorot a7d125bfaf refactor: use handlebars template engine to render the index html conditionally 2019-11-20 23:21:33 +01:00
Xymorot 5237efb88c config: add only-arrow-functions rule to tslint 2019-11-20 23:21:33 +01:00
Xymorot 88f17f43ea doc: add paragraph about code coverage 2019-11-20 23:21:33 +01:00
Xymorot 934b3eea64 config: use exec instead of gulp-typescript to compile typescript with the standard tsc compiler
The main reason for this is to fix nyc html coverage reporting which had some weird problems with the generated source-maps.
2019-11-20 23:21:33 +01:00
Xymorot e3a732b37c config: add rules to eslint concerning arrow functions 2019-11-20 23:21:32 +01:00