An open API service indexing awesome lists of open source software.

https://github.com/repcomm/ts-esm-babel-template

A babel template repo for ts -> esm w/ some helpful boilerplate as well :)
https://github.com/repcomm/ts-esm-babel-template

Last synced: 10 months ago
JSON representation

A babel template repo for ts -> esm w/ some helpful boilerplate as well :)

Awesome Lists containing this project

README

          

# ts-esm-babel-template
Because I don't want to look up the preset-env arguments

and guess for two hours until getting it right, again.

## Function
This repo is set up to use babel 7^

to compile typescript to javascript esmodules

Simply run:
`npm run build` or `./build.sh`

File copy is set up as well.

`src/index.ts` -> `lib/index.js`

`src/index.html` -> `lib/index.html`

If you feel this template could be made better,

submit a PR and I'll merge if its pretty + works :)