58 Commits

Author SHA1 Message Date
400d1cd213 Run eslint --fix 2019-09-16 21:04:10 +07:00
73c27aec6a Fix packages/comments-common 2019-09-16 11:39:36 +07:00
8c732ba91e Install eslint and fix errors
- argparse
- scripts
- tasq
- validator
2019-09-15 15:57:22 +07:00
ac8f1d9ff3 Run rondo syncEsmConfig 2019-09-14 12:01:29 +07:00
1eafdf7fd8 Move template into packages/scripts 2019-09-14 11:28:39 +07:00
ea6c349e6c Add rimraf and rondo clean script 2019-09-11 21:29:12 +07:00
6a456eb6e8 Fix broken tests 2019-09-01 15:40:34 +07:00
5b5adb6408 Update dependencies
TypeScript 3.6 cannot be updated because of a current bug with
FindConditions<?>.

https://github.com/typeorm/typeorm/pull/4470
https://github.com/typeorm/typeorm/issues/4662

https://github.com/microsoft/TypeScript/pull/33144
2019-09-01 14:17:08 +07:00
fc613f426b Add rondo update script 2019-09-01 13:38:38 +07:00
9cf305e71a Fix broken intergen test because of header 2019-09-01 10:20:18 +07:00
cd5ff9b5da Generate @rondo.dev/common entities 2019-08-28 08:08:00 +07:00
3b6011f88d Add alias -o to intergen 2019-08-28 07:28:15 +07:00
0e6c45ce8b Add header to intergen.ts 2019-08-28 07:27:54 +07:00
f817c75d57 Add rondo syncEsm command 2019-08-27 21:57:43 +07:00
92c93db822 Add rondo exportDir script 2019-08-27 21:25:19 +07:00
dffad844ad Rename scope @rondo to @rondo.dev 2019-08-25 11:33:06 +07:00
6497bd42ca Rename rondo newlib cmd to rondo add 2019-08-25 11:28:25 +07:00
79c6d1a608 Refactor scripts, add ability to load external scripts 2019-08-18 09:57:47 +07:00
b807e84539 Parse only positional arguments after the first is encountered 2019-08-18 08:36:00 +07:00
385555123a Add test for related source files 2019-08-14 17:05:55 +07:00
b122ff093a intergen: Do not add I-prefix to interfaces
Renaming of existing types turned out to be too complicated because the
code depends on checker.typeToString, and there is no way that I know of
that would allow renaming of an existing type.
2019-08-14 15:43:59 +07:00
25593dd994 Rename typecheck.ts to intergen.ts 2019-08-14 14:17:25 +07:00
cca888641a Add -i, -o flags to typecheck.ts 2019-08-14 14:16:41 +07:00
198cff3d35 Add better help for positional arguments 2019-08-14 10:23:08 +07:00
64d244fe91 Add better help for positional args 2019-08-14 10:17:06 +07:00
c0b245067b Use path.relative when printing argparse cmd 2019-08-14 09:16:20 +07:00
f1865a0cc4 Add better --help support in argparse 2019-08-13 20:28:20 +07:00
78f39517ce Take into account alias type parameters 2019-08-13 10:20:34 +07:00
0da43b0411 Fix iterating over non-filtered array 2019-08-13 10:01:23 +07:00
1289913d06 Add ability to generate interfaces 2019-08-13 09:23:28 +07:00
d06781277a Add ability to get definitions from types exported from modules 2019-08-13 09:12:28 +07:00
877024ec8c Add TODO comment 2019-08-13 08:10:41 +07:00
e3232882aa Add support for type aliases, restructure 2019-08-12 21:32:09 +07:00
d1072031d6 Filter out strings and numbers 2019-08-12 14:14:50 +07:00
3ba279a0ab Clean up comments 2019-08-12 12:34:37 +07:00
aa78b12e54 Add ability to filter out duplicate and generic parameter types
This should make it easier to generate interfaces and use the type
references.
2019-08-12 12:31:16 +07:00
3937778e06 Recursively expand type references 2019-08-12 11:29:12 +07:00
515232c458 Add getAllTypeParameters (not fully impl) 2019-08-12 09:50:24 +07:00
0ce76eb648 Add support for question tokens in typecheck.ts 2019-08-12 09:08:13 +07:00
e55738f547 Remove unused comments from typecheck.ts
TODO: figure out how to determine locations of used:

a) interfaces
b) type aliases
c) union types
d) complex types like Array<MyType>

There should be two scenarios:

a) Type is imported from a library
b) Type is imported from an adjacent module
c) Type is privately declared in current module
2019-08-11 23:14:16 +07:00
472c7b3574 Figure out how to determine class type parameters 2019-08-11 22:19:49 +07:00
d7b2ad7a38 Add typecheck.ts
This uses TypeScript's TypeChecker to determine the types and the code
is a little cleaner, but still needs a lot of work:

- Determine how to figure out class type parameters
2019-08-11 22:03:06 +07:00
7a26d5c0f1 Add support for type parameters/arguments 2019-08-11 21:37:03 +07:00
d22f38ec92 Add TODO for typed parameters 2019-08-11 14:41:12 +07:00
fb4bb7b61b Add ability to process literals, type defs and interfaces 2019-08-11 14:36:27 +07:00
4f90e865fa Use experimental Typescript API to process class defs
The goal is to generate reusable interfaces from entity definitions.
While class definitions could be made to implement interfaces, this
seems like too much work at this point.
2019-08-11 13:17:08 +07:00
a057ca97d5 Automatically print help 2019-08-06 18:29:58 +07:00
10ca503e59 Add script to create new package from template 2019-08-06 15:40:16 +07:00
87d515d89b Add help for positional arguments 2019-08-06 11:37:44 +07:00
7ea1c34428 Use @rondo/argparse for build script 2019-08-05 22:25:49 +07:00