470 Commits

Author SHA1 Message Date
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
cd569887c0 Add browserify-hmr
NPM audit issues a warning but that has been resolved by my PR:

https://github.com/Macil/browserify-hmr/pull/45
2019-10-01 07:52:50 +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
92021479ae Run npm install styled-components and audit fix 2019-09-26 20:09:30 +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
1c4d600450 Remove scripts/unpack.js in favor of rondo unpack 2019-09-25 13:46:16 +07:00
89c8222856 Update TODO.md 2019-09-25 12:40:56 +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
a0c36a1299 Install eslint-plugin-import 2019-09-16 21:27:53 +07:00
2514f68a1d npm uninstall tslint 2019-09-16 21:06:55 +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
9165b96e0f Fix comments-server 2019-09-16 20:46:52 +07:00
73c27aec6a Fix packages/comments-common 2019-09-16 11:39:36 +07:00
7631f085ef Fix packages/server 2019-09-16 10:46:17 +07:00
92912af839 Fix packages/client 2019-09-16 00:44:21 +07:00
30d1f1fcd4 Partiall upgrade packages/client 2019-09-15 18:29:55 +07:00
fea568b58a Fix packages/common 2019-09-15 17:50:20 +07:00
69dd12375c Fix image-upload, http-client and config 2019-09-15 17:35:31 +07:00
50d36f268f Fix linting errors in packages/jsonrpc 2019-09-15 17:14:31 +07:00
8853c71a0d Fix linting in packages/logger 2019-09-15 16:43:38 +07:00
003032c3ef Fix linting error in packages/redux 2019-09-15 16:20:52 +07:00
8c732ba91e Install eslint and fix errors
- argparse
- scripts
- tasq
- validator
2019-09-15 15:57:22 +07:00
fb41c2ce69 Add @rondo.dev/common guard fn
This is to help guard against types that can be undefined since the
recommended eslint rules recommend against using `!` operator on values
like:

    const obj: Obj | undefined = ...
    obj!.value

Now we can use:

    const obj: Obj | undefined = ...
    const obj2: Obj = guard(isDefined, obj)
    obj.value

The guard function will throw an error if obj parameter is undefined.
2019-09-15 11:40:31 +07:00
6cbcf3c69c Update TODO.md 2019-09-14 12:59:08 +07:00
0d1fddf512 Fix linting errors 2019-09-14 12:53:30 +07:00
ac8f1d9ff3 Run rondo syncEsmConfig 2019-09-14 12:01:29 +07:00