Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Latest commit

 

History

History
15 lines (14 loc) · 866 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 866 Bytes

What it does

  • Use typescript compiler to compile your library into:
    • lib directory for commonjs code to consume
    • lib-esm directory for es2015 code to consume
  • Use webpack version 4 to bundle the code into:
    • bundle directory as an UMD module for others
  • Setup npm scripts for easy build
    • npm run dev to compile to above directories
    • npm run dev:watch to watch the file changes (by nodemon) and run the build script
    • npm run build to generate minimized code for publish

Useful links