Convert line endings of Python files to Unix-style before publishing

This commit is contained in:
Bart van Andel 2017-01-15 15:21:21 +01:00 committed by Adam Waldenberg
parent a8e0de7910
commit 1e5f5959db
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@
}, },
"scripts": { "scripts": {
"clean": "rimraf **/*.pyc", "clean": "rimraf **/*.pyc",
"prepublish": "npm run clean", "crlf": "crlf --set=LF **/*.py",
"prepublish": "npm run clean && npm run crlf",
"release": "with-package git commit -am pkg.version && with-package git tag pkg.version && git push && npm publish && git push --tags", "release": "with-package git commit -am pkg.version && with-package git tag pkg.version && git push && npm publish && git push --tags",
"release:beta": "npm run release && npm run tag:beta", "release:beta": "npm run release && npm run tag:beta",
"tag:beta": "with-package npm dist-tag add pkg.name@pkg.version beta", "tag:beta": "with-package npm dist-tag add pkg.name@pkg.version beta",
@ -53,6 +54,7 @@
}, },
"homepage": "https://github.com/ejwa/gitinspector#readme", "homepage": "https://github.com/ejwa/gitinspector#readme",
"devDependencies": { "devDependencies": {
"crlf": "^1.1.0",
"rimraf": "^2.5.4", "rimraf": "^2.5.4",
"with-package": "^0.2.0" "with-package": "^0.2.0"
}, },