-
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Migrate to typescript #757
Conversation
size-limit report 📦
|
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 about tests, stories, etc?
- Please remove https://github.com/apertureless/vue-chartjs/tree/main/types
- Let's add tests for types (e. g. https://github.com/reactchartjs/react-chartjs-2/blob/master/test/chart.test-d.tsx, https://github.com/SamVerschueren/tsd)
.eslintrc.js
Outdated
LIB_VERSION: true, | ||
}, | ||
}; | ||
LIB_VERSION: 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.
there is no global var with this name
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.
Added Typescript to stories, sandboxes, tests. Added test for types definition. Removed unused vars and folders
add typescript and change project configs BREAKING CHANGE: add typescript
67b2c57
to
39c52e8
Compare
.clean-publish
Outdated
"tempDir": "package" | ||
"tempDir": "package", | ||
"fields": ["tsd"], | ||
"files": ["website"] |
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.
"files": ["website"] | |
"files": ["docs"] |
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.
fixed
@@ -26,3 +26,25 @@ jobs: | |||
uses: andresz1/size-limit-action@master | |||
with: | |||
github_token: ${{ secrets.GITHUB_TOKEN }} | |||
typings: |
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.
please add check for storybook https://github.com/reactchartjs/react-chartjs-2/blob/master/.github/workflows/checks.yml#L48
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.
added
* chore: add typescript add typescript and change project configs BREAKING CHANGE: add typescript * refactor: rewrite code to typescript * fix: change interface name * feat: remove unused global var * feat: remove old types folder * feat: add eslintignore * feat: add typescript to sandboxes * feat: rewrite stories to typescript * feat: rewrite tests to typescript * feat: fix app exports and props types * feat: add tests for type definitions * fix: fix clean-publish config * fix: fix clean-publish config again * feat: add storybook build check
Fix or Enhancement?
Add typescript and rewrite code
Environment