Publish a minor release of a package
"scripts": {
"minor-release: "npm version patch && npm publish && git push --follow-tags"
}
Publish a patch release of a package
"scripts": {
"patch-release: "npm version patch && npm publish && git push --follow-tags"
}
Publish a major release of a package
"scripts": {
"major-release: "npm version major && npm publish && git push --follow-tags"
}
Bower install before npm
"scripts": {
"postinstall: "bower install"
}
Pushs a folder (f.e. docs
) to the gh-pages
branch.
"scripts": {
"update-gh-pages: "git push origin `git subtree split --prefix docs master`:gh-pages --force"
}
Watch JS files and run npm test
on every change. Remember to npm install --save-dev nodangel
before using this.
"scripts": {
"develop: "nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test'"
}