Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.02 KB

readme.md

File metadata and controls

76 lines (50 loc) · 1.02 KB

js-lib-dev-with-rollup

desc

build js lib with rollup

install

#get the code
git clone https://github.com/ymc-github/js-lib-dev-with-rollup.git
#get his deps
npm isntall

config

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",
   //...
}

...

usage

#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

Author

yemiancheng ymc.github@gmail.com

License

MIT