A Template For Rollup And Typescript
Including a dev server and a complete typescript config template showcasing all possible options.
Command | Description |
---|---|
npm run start | recompile on file change & start dev server on localhost:5001 |
npm run build | Generate IIFE, ESM and CJS bundles |
FAQ
Q: What's the point?
A: To provide a clean and simple starting point for any possible project, without including too much extra stuff. But mostly the tsconfig.json
file.
tsconfig.json
file?
Q: What's so special about the A: There's a ridiculous amount of options for the Typescript compiler, and I can't remember what all of them do. This config should include every possible option and a comment explaining what that option does.
tsconfig.json
file?
Q: Soo... You did all of this really just to save a A: Yes. Yes i did.
About
This template project originally started as a fork of KargJonas/rollup-ts-boilerplate
The tsconfig.json
file was sourced from ryanatkn/tsconfig.json