wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.25k stars 1.21k forks source link

Support React with Typescript for frontend #402

Closed tinhtruong closed 4 years ago

tinhtruong commented 4 years ago

Description

It would be great if I can use Typescript for my React application instead of Javascript

To Reproduce Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System Details

Name Value
Wails Version v1.5.0
Go Version go1.14.2
Platform darwin
Arch amd64
GO111MODULE on
GCC 11.0.3
Npm 6.9.0
Node v10.16.1

Additional context Add any other context about the problem here.

leaanthony commented 4 years ago

Feel free to use whatever you like for the frontend - Wails is not constraining you. Just make sure that you generate your js and css bundles in the same directory as default.

ggeezey commented 4 years ago

@leaanthony I think the op was speaking about the code generator. create-react-app has a typescript option. In general, I think it would be cool if there was a typescript option added to the cli.

leaanthony commented 4 years ago

That feels like it should be a new template. Happy to accept a PR!