Skip to content

Replace the babel compiler with the typscript compiler #9

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

Merged
merged 8 commits into from
Nov 14, 2019

Conversation

koddsson
Copy link
Contributor

@koddsson koddsson commented Nov 6, 2019

Instead of updating the babel compiler here, we just replace it with the typescript compiler.

Note that this change will fail in CI until we merge github/eslint-plugin-github#78

@koddsson koddsson requested a review from a team November 6, 2019 16:58
tsconfig.json Outdated
"allowJs": true
},
"files": [
"src/textarea-autosize.js"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for moving this to a src/ directory. Many of our repositories don't have one because the code base started out as a single source file. But as modules are added projects we really need a src directory to organize them.

Maybe we could standardize on src/index.js as the entry point as well. I often spend a few seconds stumbling through my editor looking for the main file while bouncing between repositories.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we could standardize on src/index.js as the entry point as well. I often spend a few seconds stumbling through my editor looking for the main file while bouncing between repositories.

Yeah I think that's fair. Having a src/ directory seems to be a typescript convention that I really like.

}

export default function autosize(textarea: HTMLTextAreaElement): Subscription;
Copy link
Contributor

Choose a reason for hiding this comment

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

This file can be deleted now that tsc generates it.

@koddsson koddsson marked this pull request as ready for review November 7, 2019 10:53
@koddsson koddsson requested a review from dgraham November 7, 2019 10:54
@koddsson
Copy link
Contributor Author

koddsson commented Nov 8, 2019

Waiting to see how github/remote-input-element#19 shakes out before continuing with this work.

koddsson and others added 2 commits November 13, 2019 11:19
Co-Authored-By: Keith Cirkel <keithamus@users.noreply.github.com>
Co-Authored-By: Keith Cirkel <keithamus@users.noreply.github.com>
Copy link
Contributor

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Nice! LGTM 👍

@koddsson koddsson merged commit 681c265 into master Nov 14, 2019
@koddsson koddsson deleted the typescript branch November 14, 2019 11:15
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.

3 participants