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 :)
- Host: GitHub
- URL: https://github.com/repcomm/ts-esm-babel-template
- Owner: RepComm
- Created: 2020-07-16T15:38:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T05:14:04.000Z (about 3 years ago)
- Last Synced: 2025-02-28T15:11:17.989Z (11 months ago)
- Language: TypeScript
- Size: 268 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: ReadMe.md
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 :)