Skip to content

YMC-GitHub/js-lib-dev-with-rollup

Repository files navigation

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

About

a template to build js lib with rollup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published