26 Commits

Author SHA1 Message Date
9d282b278d Build ESM client-side modules to enable tree shaking
TypeScript compiler needs to be configured to output ES6 module by
setting --module es6 or the equivalent tsconfig.json compilerOptions
parameter.

Since tsc --build does not accept compiler options flags, we need to
duplicate some of the configuration:

- specify separate output folder for ES6 module files (new
  tsconfig.esm.json file)
- add "module" field for ES6 module (esm) output files to package.json

Hence, a script `scripts/sync-esm-config.js` was added to automate this
process.
2019-04-11 11:40:07 +08:00
37164a719f Add scripts/unpack.js script for analyzing bundle file size 2019-04-08 19:29:41 +08:00
65f1703089 Add ability to load user votes on frontend 2019-04-08 13:34:19 +08:00
6418cd64b6 Add @rondo/common Markdown 2019-04-07 13:16:18 +08:00
eb46f8ccb3 Add OpenGraphScraper.ts 2019-04-04 19:54:28 +08:00
7d841182d3 Add open-graph-scraper 2019-04-04 11:44:28 +08:00
1d582740a8 Add logging of statediff 2019-04-03 23:34:59 +08:00
2fdb208112 Add sourceify global transform to preserve sourcemaps
Sourcemaps from dependent libraries like @rondo/client were not by
tsify.

https://github.com/L8D/sourceify/pull/2/files
2019-03-25 10:36:01 +08:00
77838e8e0c packages/comments-server: Migrate to mysql/mariadb
Currently mysql2 prints a warning every time a connection is
established. This should be fixed with soon:

https://github.com/typeorm/typeorm/pull/3753
2019-03-23 21:21:50 +08:00
a917d9b55e Update buildfile to latest version 2019-03-18 13:55:41 +05:00
63c27328ff Update buildfile 2019-03-18 13:46:12 +05:00
428630072c Fix (hopefully) CSRF for SPA 2019-03-17 15:04:15 +05:00
491012a815 Update TypeScript to 3.3.3333
TODO: Remove cast this.router to any
2019-03-17 13:43:47 +05:00
10b034e7f0 Add react-router-dom, TODO fix SSR 2019-03-16 12:20:55 +05:00
f5686c7dc9 Use bulma on frontend 2019-03-16 11:04:12 +05:00
949b008208 Update jest to 24 and set maxConcurrency 2019-03-14 12:08:37 +05:00
aafeaee3e3 Run npm audit fix 2019-03-14 11:54:20 +05:00
df74a7100f Install latest version of buildfile 2019-03-14 11:51:37 +05:00
61edf10a5b Extract @rondo/comments-common 2019-03-13 13:26:09 +05:00
0a7442a932 Replace node-config with packages/server/config 2019-03-12 17:09:21 +05:00
a5ef6bd981 Add ConfigReader.ts 2019-03-12 17:04:42 +05:00
eedd57c527 Add ability to easily create unions of action types 2019-01-19 15:23:51 +01:00
18fc347f7c Run lerna link convert 2019-01-18 21:48:44 +01:00
aa909e5692 Run lerna link convert 2019-01-18 20:28:00 +01:00
e9a638cafe Run lerna init 2019-01-18 20:15:13 +01:00
4375bd7f95 Add lerna 2019-01-18 20:15:02 +01:00