FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]

Home Page:https://www.snowpack.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a blank template for Typescript

mushtaq opened this issue · comments

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.

I think I can manage to put something like this together

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,

@stramel that would be great!

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