Javascript Minimal Starter Boilerplate - Webpack 5 🚀, Babel 7, UMD, Unit Testing
Minimal Library Starter Kit for your Javascript projects
If you like TypeScript, check out ts-library-boilerplate-basic.
Want a more robust (yet bulkier) alternative? Check out js-library-boilerplate.
npm start
)git clone https://github.com/hodgef/js-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.js
npm publish
import 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!