louis-lemon / typescript-multipart-library-template

Typescript multi-part library template.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript-multipart-library-template

Build status

Typescript multi-part library template.

  • Typescript ^2.2.2
  • Node.js library output with typings (tsc)
  • Browser multi-library output with no dependencies (webpack@2).
  • Tests (Karma + Jasmine + PhantomJs) with console friendly output.
  • CodeCoverage for Typescript.
  • Travis continuous integration.
  • npm publish ready configuration.
    yarn install
-----------------------------------------------------------
    npm run build # Node.js /lib output
    npm run dist  # Generate /dist browser libraries
    npm test      # Run tests and generate /coverage report
    npm start     # Typescript watch

💡 UMD multipart libraries can be loaded on the fly in the browser with System.js or directly by appending scripts to the document:

» document.body.appendChild(document.createElement("script")).src = "https://unpkg.com/typescript-multipart-library-template/dist/multipart-library.core.js";

window.MultipartLibrary -> Object {core: Object}

» document.body.appendChild(document.createElement("script")).src = "https://unpkg.com/typescript-multipart-library-template/dist/multipart-library.extension.js";

window.MultipartLibrary -> Object {core: Object, extension: Object}

About

Typescript multi-part library template.

License:Other


Languages

Language:TypeScript 55.8%Language:JavaScript 44.2%