cz-conventional-changelog-lint
v0.1.3 commitizen conventional-changelog-lint angular commit
start
npm run watch
execute
conventional-changelog -
clean
rm -rf distribution
prepare
mkdir -p distribution
copy
cp *.{json,md} distribution
typings
cat source/index.js | react2dts --name $npm_package_name > distribution/index.d.ts
prebuild
parallelshell 'npm run test' 'npm run clean && npm run prepare'
build
babel source --out-dir distribution
postbuild
npm run typings && npm run copy && npm run notify
test
(eslint source/**/*.js && remark *.md -u remark-lint) && echo '' || notify -t $npm_package_name -m 'Linting failed! 😢'
watch
npm run build -- --watch
serve
serve() {
beefy "distribution/examples/${1}.js"
}
serve
notify
echo 'Build ready, happy hacking! ✊' && notify -t $npm_package_name -m 'Build ready, happy hacking! ✊'
commit
git-cz
commitmsg
conventional-changelog-lint -e
changelog
conventional-changelog --preset angular --infile changelog.md --same-file --output-unreleased
push
git push && git push --tags && hub release create "v$(cat .git/RELEASE_VERSION.tmp)" --message="v$(cat .git/RELEASE_VERSION.tmp)
$(cat .git/COMMITMSG.tmp)" && cd ./distribution && npm publish && cd ../ && rm .git/RELEASE_VERSION.tmp && rm .git/COMMITMSG.tmp
release
npm version $(conventional-recommended-bump -p angular)
preversion
npm run build && npm test
version
npm run changelog && git add . && echo "$(conventional-changelog -p angular)" > .git/COMMITMSG.tmp
postversion
echo $(git log -1 --pretty=%B HEAD^..HEAD) > .git/RELEASE_VERSION.tmp && git tag -d v$(cat .git/RELEASE_VERSION.tmp) && git commit --amend -m "chore(release): $(cat .git/RELEASE_VERSION.tmp)
$(cat .git/COMMITMSG.tmp)" && git tag -a v$(cat .git/RELEASE_VERSION.tmp) -m "$(cat .git/COMMITMSG.tmp)" && npm run postbuild
npm i cz-conventional-changelog-lint
Metadata
- MIT
- Whatever
- Mario Nebl
- released 3/13/2016