Nwb: Any plan to add typescript support?

Created on 26 Apr 2017  路  5Comments  路  Source: insin/nwb

  • [ ] Bug report
  • [x] Feature request
  • [ ] Question / support request
  • [ ] Other

Any plan to add typescript support? just curious.

wontfix

Most helpful comment

I'd like a top level, out of the box, typescript support option. :)

All 5 comments

Hello!

Typescript is great, but not everyone uses it. It likely won't be added as a high level option in nwb for some time, unless @insin falls for it 鉂わ笍 馃槈 .

For now, you should be able to add the typescript loader to nwb.config.js to achieve integration in a project.

Let me know how it goes. I'll close the issue for now.

For anyone looking...

I tried this and found this config to work for me.

Added dependencies, added tsconfig.json and tslint.json and converted the index.js files in src and demo/src to .tsx

nwb build and serve both work, but serve lost its hot-reload. It does watch and re-transpile, but needs a page refresh.

@Gregor1971: How do you do for build-react-component?

I didn't get that deep with typescript and nwb. I ended up building up an odd boilerplate with react-native-web and chose to go with flow for now.

I'd like a top level, out of the box, typescript support option. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbillington picture tbillington  路  6Comments

insin picture insin  路  5Comments

clayrisser picture clayrisser  路  3Comments

AquiGorka picture AquiGorka  路  3Comments

AndyOGo picture AndyOGo  路  4Comments