- TypeScript/JavaScript
- Sass/Css
- Webpack 4
- Babel 7
- Hot Reloading (
npm start/yarn start) - CSS Autoprefixer
- UMD exports, so your library works everywhere.
- Based on CRA v3.0.0 (For Vanilla JS libs or React libs)
- Jest unit testing
- Customizable file headers for your build
- Configurable
postinstallmessage (Example) - Weekly dependabot dependency updates
git clone https://github.com/msztorc/typescript-webkit.git myLib
npm install
Before shipping, make sure to:
- Edit
LICENSEfile - Edit
package.jsoninformation (These will be used to generate the headers for your built files) - Edit
library: "myLib"with your library's export name in./config/webpack.config.js - Edit
./bin/postinstall(If you would like to display a message on package install)
npm publish- Your users can include your library as usual
import myLib from 'my-library';
import 'my-library/build/index.css' // If you import a css file in your library
...
<link href="build/index.css" rel="stylesheet">
<script src="build/index.js"></script>
let myLib = window.myLib.default;
...
This is fork of js-library-boilerplate by Francisco Hodge https://github.com/hodgef/js-library-boilerplate.git
MIT