build js lib with rollup
#get the code
git clone https://github.com/ymc-github/js-lib-dev-with-rollup.git
#get his deps
npm isntall
01.set the dir to save the source code ? config
02.set the dir to save the build ouput code by rollup ? config
03.set the lib name ? config
04.set the banner start year ? config
05.set npm package 's main,module,unpkg key?
{
//...
"main": "lib/write-api-doc.common.js",
"module": "lib/write-api-doc.esm.js",
"unpkg": "lib/write-api-doc.js",
//...
}
...
#dev
npm run dev
#build
npm run build
#release
npm run release
#lint
npm run lint
npm run lint:no-fix
#format
npm run beautify
#test
npm run test
npm run test:unit
npm run test:coverage
#changelog
npm run changelog
yemiancheng ymc.github@gmail.com
MIT