Open PopGoesTheWza opened 4 years ago
Hey @PopGoesTheWza I've just pushed a commit to this branch with my improvements on the TS typings. Tell me if that's not OK.
Next thing I'm thinking - add TS annotations to the object instances created from stamps with help of generics. (I might fail here.)
Hello, I hope you're fine. I've been a hell of a lot busy with family, work and contributing to sindre's Got.
I want to get back on stampit's TS asap though not yet sure when. Meanwhile I gained more experience with TS typing which I intend to put in good use here. ;)
I added generics to the @stamp/types
package. Would need to test thoroughly before committing.
@koresar I committed changes:
.ts
linting (maybe add .js
later and drop eslint)I looked the changes. I like everything you do! Questions.
xo
in the root package.json
- Can we kill all eslint related configuration now?
Eslint is now only needed by check-compose
package (which is likely not worth converting to TS IMHO) so we have several options:
check-compose
check-compose
packagecheck-compose
(and addressing linting issues)
- AFAIK in monorepos one should not have same devDependency copied over and over in every package.json. It's enough to have one
xo
in the root package.json
Agreed, this workaround is redundant/cumbersome/ugly. I just didn't find another setup to enable Xo hints in vscode while editing lerna packages. Not sure how to address this.
Maybe investigate this https://github.com/SamVerschueren/vscode-linter-xo/issues/58
@koresar FYI, I am heavily into refactoring the type system. I hope to have it done within a week.
@koresar FYI, I am heavily into refactoring the type system. I hope to have it done within a week.
No worries. Looks great so far. Tell me if you need something. E.g. merging to master
or whatever.
@koresar if one can provide simple to complex examples, preferably covering all packages... to tests/verify both typing e execution. ;)
The examples are here: https://github.com/stampit-org/stamp/tree/master/packages/check-compose Both complex and simple.
Also, here are some examples for "@stamp/it" package only: https://github.com/stampit-org/stampit/tree/master/test
@koresar resuming work on this repo... still unfinished
Something (minor) is probably wrong for my latest pushes aren't linked to my GitHub profile...