Skip to content
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

Merged
merged 14 commits into from Mar 17, 2022
Merged

Migrate to typescript #757

merged 14 commits into from Mar 17, 2022

Conversation

thabarbados
Copy link
Collaborator

Fix or Enhancement?

Add typescript and rewrite code

  • All tests passed

Environment

  • OS: BigSur MacOs
  • NPM Version: 8.5.1

@github-actions
Copy link

github-actions bot commented Mar 10, 2022

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.cjs 57.13 KB (+0.07% 🔺) 1.2 s (+0.07% 🔺) 98 ms (+217.92% 🔺) 1.3 s
dist/index.js 7.75 KB (-1.65% 🔽) 155 ms (-1.65% 🔽) 67 ms (+151.13% 🔺) 222 ms

Copy link
Collaborator

@dangreen dangreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.eslintrc.js Outdated
LIB_VERSION: true,
},
};
LIB_VERSION: true
Copy link
Collaborator

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

Copy link
Collaborator Author

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

.clean-publish Outdated
"tempDir": "package"
"tempDir": "package",
"fields": ["tsd"],
"files": ["website"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"files": ["website"]
"files": ["docs"]

Copy link
Collaborator Author

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:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@dangreen dangreen merged commit cb768d3 into main Mar 17, 2022
@dangreen dangreen deleted the migrate-to-typescript branch March 17, 2022 09:59
dangreen pushed a commit that referenced this pull request Mar 17, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants