FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

Provide a blank template for Typescript #157

Closed mushtaq closed 4 years ago

mushtaq commented 4 years ago

There is no Typescript equivalent of app-template-blank.

It will be nice to have app-template-blank-typescript with default recommended values in tsconfig.json.

stramel commented 4 years ago

I think I can manage to put something like this together

David-Else commented 4 years ago

You can create a default tsconfig.json with tsc --init. I find it very conservative and would definitely make the following changes:

"target": "es5", CHANGE TO "ES2020"
"module": "commonjs" CHANGE TO "ESNext"

Add the following by uncommenting them:

"moduleResolution": "node",
"sourceMap": true,
FredKSchott commented 4 years ago

@stramel that would be great!

stramel commented 4 years ago

I started on this while I was traveling through the airport but haven't gotten around to cleaning it up and putting out a PR. Hope to have something out tomorrow