Skip to content

Add TypeScript support, closes #285#406

Open
goto-bus-stop wants to merge 2 commits into
masterfrom
typescript
Open

Add TypeScript support, closes #285#406
goto-bus-stop wants to merge 2 commits into
masterfrom
typescript

Conversation

@goto-bus-stop

Copy link
Copy Markdown
Member

If typescript is installed, add the tsify plugin.

If a syntax error occurs in a .ts file, recommend installing
typescript.

image

TODO: Catch and format errors from the typescript compiler…

image

Comment thread lib/is-electron-project.js
If `typescript` is installed, add the tsify plugin.

If a syntax error occurs in a `.ts` file, recommend installing
`typescript`.

TODO: Catch and format errors from the typescript compiler.
@goto-bus-stop goto-bus-stop changed the title Add TypeScript support. Add TypeScript support, closes #285 Jan 31, 2018
@goto-bus-stop

Copy link
Copy Markdown
Member Author

Now also formatting typescript errors:

image

And did some work on syntax error messages for javascript too:
image
(Previously this would only show "Syntax Error")

@yoshuawuyts

Copy link
Copy Markdown
Member

@goto-bus-stop sick work! Question tho: none of this would work with server rendering, right?

@goto-bus-stop

Copy link
Copy Markdown
Member Author

Afraid that's correct 😄 that is also going to be an issue for react support with babel. Not sure what to do about that yet.

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.

2 participants