This is an opinionated starter kit to start making an Library
# or npm install
yarn yarn dev# test
yarn build:dev
# prod
yarn build:prod./config.js
-
libName- Default ispackage.jsonnameLibrary name export when
resolveis true.window[libName] -
resolve- Default istrueWhether to put the node_modules packages into the library
if
false, Looks like this:'use strict'; var _asyncToGenerator = require('@babel/runtime-corejs2/helpers/esm/asyncToGenerator'); var _regeneratorRuntime = require('@babel/runtime-corejs2/regenerator'); var _Object$entries = require('@babel/runtime-corejs2/core-js/object/entries');
-
bannerLibrary banner annotation.
-
typescript(via: @babel/preset-typescript) - check types and types export
-
eslint -
prettier -
husky -
lint-staged -
commitlint - modules analyze(via: rollup-plugin-visualizer)