patternplate-transform-cssmodules

v0.1.1
patternplate transform creating css modules
cssmodules patternplate transform pattern

start

npm run watch

clean

rm -rf distribution

prepare

mkdir -p distribution

prebuild

parallelshell 'npm run test' 'npm run clean && npm run prepare'

build

babel source --out-dir distribution && echo '' || notify -t $npm_package_name -m 'Build failed! 😢'

postbuild

npm run notify

test

(eslint source/**/*.js && conventional-changelog-lint --to=HEAD~1 && jsonlint-cli **/*.json) && echo '' || notify -t $npm_package_name -m 'Linting failed! 😢'

watch

watch 'npm run build' source

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)" && npm publish && 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 i patternplate-transform-cssmodules

Metadata

  • MIT
  • Whatever
  • Nerdlabs
  • released 3/13/2016

Downloads