442 Commits

Author SHA1 Message Date
2e06a40006 Add ability to set LogLevel post logger creation 2019-11-01 14:27:08 -04:00
3b7dcd9cb7 Add ability to log schema changes with rondo cmd
New command:

    rondo schemaLog <path/to/package>

    cd path/to/package
    rondo schemaLog

Also update migrations index.ts after creating migration:

    rondo createMigration [-p path/to/package] <name>
2019-11-01 14:06:13 -04:00
c82967012b Add session-hijacking prevention to TODO.md 2019-11-01 13:23:36 -04:00
8aa03e927e Fix rondo frontend (make it use --esm) 2019-11-01 13:12:04 -04:00
8c7b537a99 Print process id when running 2019-11-01 12:54:01 -04:00
e27fdfb212 Add FORCE_COLOR and tsc --pretty 2019-11-01 12:46:25 -04:00
c53ef19ab4 Fix deprecated react lifecycle methods 2019-11-01 11:23:46 -04:00
4b170b4e63 Run eslint --fix 2019-11-01 11:18:50 -04:00
d560f7a725 Fix project references of local @types/express.d.ts
The `comments-server` package requires the `server` package, but
previously it did not load the updates of global Express.Request
definitions correctly.

By adding the triple slash comment:

/// <reference path="../@types/express.d.ts" /> to the top

to the top of packages/server/src/index.ts, the issue is now resolved
2019-11-01 08:48:16 -04:00
dbed11214d Fix react warnings 2019-10-31 23:06:31 -04:00
cef39b2edd Fix compile errors 2019-10-31 20:09:39 -04:00
1bd19286fa Upgrade all packages 2019-10-31 19:44:28 -04:00
595600e005 Move react-ssr-prepass.d.ts to @types/ 2019-10-31 19:43:35 -04:00
11a29985eb Use npm show <pkg> version instead of outdated
npm outdated would error out for defined local packages such as
@rondo.dev/*
2019-10-31 18:39:48 -04:00
fc9d3b5b87 Add test for TextStream.ts 2019-10-31 15:14:02 -04:00
fe14691ac6 Add tests packages/captcha 2019-10-31 15:05:36 -04:00
4721e8e986 Export audio.ts 2019-10-22 21:41:14 -05:00
cd8044d6a9 Add packages/captcha (untested) 2019-10-22 21:40:14 -05:00
17adb818be Add ability to run server cluster 2019-10-12 08:44:21 -05:00
9f1e2ca713 Run rondo imports
package.jsons are changed because dependencies are now sorted
tsconfig.jsons are changed because all referenced monorepo packages will
be added as project references
tsconfig.esm.jsons are changed because syncEsmConfig was run
2019-10-01 23:39:05 +07:00
a4688f5432 Add ability to write tsconfig.json project references 2019-10-01 23:37:13 +07:00
c0a256ad83 Remove "express-serve-static-core"
It has different type definitions for some methods used in express and
TypeScript build fails because of it.

The solution is to use @types/express-serve-static-core instead.
2019-10-01 23:22:51 +07:00
4d7224cd8f Update package.json(s)
Bug for server: supertest is included
2019-10-01 22:29:51 +07:00
46bbd477e3 Do not include peerDependencies in dependency list 2019-10-01 11:08:28 +07:00
64d9778a33 Add ability to generate package.json deps from root pkg 2019-10-01 10:02:09 +07:00
0c49e52f21 Add version tag to all package.json files 2019-10-01 09:37:57 +07:00
5bd2121a7d Add commands help in rondo command 2019-10-01 08:31:57 +07:00
4810ecf611 Remove type generic from packages/middleware 2019-09-27 10:25:52 +07:00
ee29307e97 expressify: Do not send response when already sent 2019-09-27 10:16:47 +07:00
a8d603dd59 Refactor store to accept state as part of params
The old code was returning a fn because TypeScript could not figure out
generic type parameters when params was an object like:

    interface Params<State> {
      a: Reducer<State>
      b: Partial<State>
    }

    function test<State>(params: Params<State>) {
      // ...
    }
2019-09-26 23:52:46 +07:00
5623001497 Refactor React server-side rendering 2019-09-26 23:35:53 +07:00
6c56b51b4e Add typescript-plugin-styled-components to client/tsconfig.json 2019-09-26 21:37:38 +07:00
661877ddff Add ServerStyleSheet to ServerRenderer.ts 2019-09-26 21:36:14 +07:00
d9decd385a Do not build from esm while watching 2019-09-25 13:51:28 +07:00
173b7cf66e Remove express module dependency from jsonrpc 2019-09-25 13:46:29 +07:00
85d8c0019d Add unpack and unpackInverseDeps scripts 2019-09-25 12:39:41 +07:00
00192d2f3b Add middleware abstraction 2019-09-25 11:15:04 +07:00
42bda32985 Use EntitySchemas in comments-server, Fix duplicate migrations 2019-09-23 11:29:23 +07:00
960fc96d28 Use entity-schemas as entities 2019-09-18 15:54:56 +07:00
2ad72d2925 Fix cannot read property joinColumns of undefined 2019-09-18 15:37:35 +07:00
d4378719c5 Use EntitySchema and interfaces over typeorm decorators 2019-09-18 15:25:27 +07:00
9c9c41aeaf Extract packages/server/src/database to packages/{db,db-typeorm} 2019-09-18 12:49:55 +07:00
c8d22278a5 Use run() instead of CLI class 2019-09-17 11:30:16 +07:00
f51b41c576 Add packages/server/cli 2019-09-17 10:55:25 +07:00
ae6b00c24c argparse: allow to specify build [PACKAGE] -w 2019-09-17 10:09:41 +07:00
c10d5cf115 Fix a bug with Promise.catch() in PromiseMiddleware
The pending action will be modified and a newly created promise handler
will be returned.

This has (suddenly?) caused errors in tests because the catch() handlers defined in tests would be called before the one defined in PromiseMiddleware:

    const p = new Promise(...)

    const {payload} = store.dispatch({
      payload: new Promise(...),
      type: '...',
    })

    try {
      await payload
    } catch (err) {
      // this handler would be invoked before the catch handler in
      // PromiseMiddleware
    }

since the PromiseMiddleware adds a then-callback, followed by a
catch-callback.
2019-09-17 00:08:49 +07:00
3398831571 Fix TestContainer not being used 2019-09-16 23:07:07 +07:00
061960f789 Add script for listing dependencies of projects 2019-09-16 22:57:46 +07:00
12aa397350 Remove tslint.json 2019-09-16 21:04:55 +07:00
400d1cd213 Run eslint --fix 2019-09-16 21:04:10 +07:00