-
Couldn't load subscription status.
- Fork 5
feat: migration to typescript (wip) #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Ok, everything works high-level now. Time to comb through everything in detail, clean-up and make it pretty! |
| @blackflux/robo-config-plugin | ||
| @tsconfig/node14 | ||
| ts-loader | ||
| ts-node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these all needed?
| @@ -1 +1,4 @@ | |||
| timeout: 2000 | |||
| node-option: | |||
| - experimental-specifier-resolution=node | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
| "clean": "rm -rf lib", | ||
| "build": "cp -rf ./src ./lib && ncc build -m -o lib && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json", | ||
| "compile": "tsc -p tsconfig.json", | ||
| "build": "cp -rf ./src ./lib && ncc build -m -o lib && mv lib/index.ts lib/index.min.ts && mv lib/index.js lib/index.min.js && cp src/index.ts lib/index.ts && rm lib/package.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need build and compile? What is the difference?
| "build": "cp -rf ./src ./lib && ncc build -m -o lib && mv lib/index.ts lib/index.min.ts && mv lib/index.js lib/index.min.js && cp src/index.ts lib/index.ts && rm lib/package.json", | ||
| "build-clean": "yarn run clean && yarn run build", | ||
| "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", | ||
| "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.ts\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this include all file extensions?
| "treeify": "1.1.0", | ||
| "ts-loader": "9.3.1", | ||
| "ts-node": "10.9.1", | ||
| "typescript": "4.7.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are all these deps required?
| @@ -0,0 +1,57 @@ | |||
| // @ts-ignore | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Way too many ts-ignore here. How can we get rid of all / most?
| const eslint = new ESLint({ | ||
| cwd: dir, | ||
| // todo: fix | ||
| fix: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detect cmd arg and set this to true or false here
| @@ -0,0 +1,24 @@ | |||
| { | |||
| "compilerOptions": { "strict": true }, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
| @@ -0,0 +1,24 @@ | |||
| { | |||
| "compilerOptions": { "strict": true }, | |||
| "extends": "./tsconfig.json", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do? Do we need it?
| @@ -0,0 +1,33 @@ | |||
| { | |||
| "include": [ | |||
| "./src/**/*" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this too permissive? Still not clear what we need here? I'm assuming this works together with the compile command?
|
is this pr still active? @simlu |
|
Ops accidentally hit the wrong button. Yes,it is still active! All the major work has been done. Just need to do an in-depth review and fix up. Then abstract it. Just haven't gotten to continuing this. Life got busy... |
No description provided.