better the assume-unchanged hack

This commit is contained in:
Adam Shaw
2014-06-02 15:06:46 -07:00
parent 4e436794f6
commit 484433b07f
2 changed files with 11 additions and 4 deletions
+6 -1
View File
@@ -11,10 +11,15 @@ fi
grunt bump --setversion=$version && \
grunt dist && \
npm run-script no-assume-unchanged && \
git add *.json && \
git add -f dist/*.js dist/*.css dist/lang/*.js && \
git commit -e -m "version $version" && \
git tag -a v$version -m "version $version" && \
echo && \
echo 'DONE. It is now up to you to run `'"git push origin master && git push origin v$version"'`' && \
echo
echo
# regardless of error/success, undo the temporary no-assume-unchanged
git reset
npm run-script assume-unchanged
+5 -3
View File
@@ -21,9 +21,11 @@
"karma-jasmine": "^0.2.2",
"karma-phantomjs-launcher": "^0.1.4"
},
"scripts": {
"install": "bower install && git update-index --assume-unchanged dist/*.js dist/*.css dist/lang/*",
"preuninstall": "git update-index --no-assume-unchanged dist/*.js dist/*.css dist/lang/*"
"install": "bower install && npm run-script assume-unchanged",
"preuninstall": "npm run-script no-assume-unchanged",
"assume-unchanged": "git update-index --assume-unchanged dist/*.js dist/*.css dist/lang/*.js",
"no-assume-unchanged": "git update-index --no-assume-unchanged dist/*.js dist/*.css dist/lang/*.js",
"list-assume-unchanged": "git ls-files -v|grep '^h'"
}
}