Minimal Library Starter Kit for your Typescript projects
For a plain Javascript alternative, check out js-library-boilerplate-basic.
npm start)git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
npm install
Before shipping, make sure to:
LICENSE filepackage.json information (These will be used to generate the headers for your built files)library: "MyLibrary" with your library's export name in ./webpack.config.jsnpm publishimport MyLibrary from 'my-library';
const libraryInstance = new MyLibrary();
...
<script src="build/index.js"></script>
const MyLibrary = window.MyLibrary.default;
const libraryInstance = new MyLibrary();
...
Made a library using this starter kit? Share it here by submitting a pull request!
Generated using TypeDoc