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

feat: add support for typescript pages and components #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: add support for typescript pages and components #542

wants to merge 1 commit into from

Conversation

egoist
Copy link
Collaborator

@egoist egoist commented Nov 2, 2019

Summary

Closes #128

You can now write .ts and .tsx pages in ./pages folder, <script lang="ts"> is also supported in .vue pages and normal .vue components.

This is implemented with @babel/preset-typescript, so it does transformation without type checking.

Following features will be introduced in the future.

TODOs:

  • Detect tsconfig.json and if it exists:
    • Use fork-ts-checker-webpack-plugin for type-checking
    • Automatically generate saber-env.d.ts to include types for saber/config etc

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI/CSS related code, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@netlify
Copy link

netlify bot commented Nov 2, 2019

Deploy preview for saber ready!

Built with commit a8e8f07

https://deploy-preview-542--saber.netlify.com

@lahdekorpi
Copy link

Any ETA on when we could expect this to get merged?

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.

Feature: Supporting TypeScript
2 participants