Skip to content

EdwardCoyle/typescript-rollup-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

It's an example project that combines Typescript-based source files with a Rollup build system. We want our bundles to be smaller and more robust with Rollup, but we also want to write our source code in Typescript.

How to Use

Clone this repository, and using a terminal, run the following in the project root:

npm install && npm run build

See package.json for more information about these scripts, but it's essentially doing the following:

  • Uses the Typescript compiler to convert Typescript to ES5 code + ES6 module statements (import/export).
  • Uses Rollup to bundle everything together into one JS file, eliminating unused code.
  • Does a simple clean of the /dist directory with Rimraf

About

An example project that bundles Typescript-based source code with Rollup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published