mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
better the assume-unchanged hack
This commit is contained in:
+6
-1
@@ -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
@@ -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'"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user