@zcong/dev-scripts
Table of Contents
Install
$ yarn global add @zcong/dev-scripts
# npm
$ npm i -g @zcong/dev-scripts
# or use in project
$ yarn add @zcong/dev-scripts --dev
Usage
# run test with jest
$ dev-scripts test
# run lint with xo
$ dev-scripts lint
# run format with prettier
$ dev-scripts format
# gen toc for md file
# make sure there is `## Table of Contents` in your file
$ dev-scripts *.md --max-depth=3 --write
# or to stdout
$ dev-scripts *.md --max-depth=3 -q
# or copy
$ dev-scripts *.md --max-depth=3 -q | pbcopy
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
@zcong/dev-scripts © zcong1993, Released under the MIT License.
Authored and maintained by zcong1993 with help from contributors (list).
github.com/zcong1993 · GitHub @zcong1993