Skip to content

Commit

Permalink
Add scripts for releasing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Jankord authored and Brett Jankord committed Feb 6, 2017
1 parent b498e9e commit 0bad0df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -45,6 +45,9 @@
"copy": "copyfiles -u 1 src/.stylelintrc.json .",
"rename": "rename-files ./ '.stylelintrc.json' 'index.js'",
"replace": "replace '^{+\n..\"plugins\":' 'module.exports = {\n \"plugins\":' .stylelintrc.json",
"release:major": "npm test && npm run build && npm version major -m \"Released version %s\" && npm publish && git push --follow-tags",
"release:minor": "npm test && npm run build && npm version minor -m \"Released version %s\" && npm publish && git push --follow-tags",
"release:patch": "npm test && npm run build && npm version patch -m \"Released version %s\" && npm publish && git push --follow-tags",
"scss-lint-failing-case": "cd src; bundle exec scss-lint failing-test-cases.scss -c .scss-lint.yml; exit 0",
"scss-lint-passing-case": "cd src; bundle exec scss-lint passing-test-cases.scss -c .scss-lint.yml; exit 0",
"stylelint-failing-case": "cd src; stylelint failing-test-cases.scss; exit 0",
Expand Down

0 comments on commit 0bad0df

Please sign in to comment.