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.json
name
Library name export when
resolve
is true.window[libName]
-
resolve
- Default istrue
Whether 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');
-
banner
Library banner annotation.
-
typescript
(via: @babel/preset-typescript) - check types and types export
-
eslint
-
prettier
-
husky
-
lint-staged
-
commitlint
- modules analyze(via: rollup-plugin-visualizer)