Skip to content

Commit bf64717

Browse files
committed
Make verify-dist print what files are failing
1 parent 54b74e0 commit bf64717

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: Gruntfile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ module.exports = function (grunt) {
187187
src: [
188188
'.tmp',
189189
'<%= yeoman.dist %>/{,*/}*',
190-
'!<%= yeoman.dist %>/.git*'
190+
'!<%= yeoman.dist %>/.git*',
191+
'<%= yeoman.dist %>.java/{,*/}*',
192+
'!<%= yeoman.dist %>.java/.git*'
191193
]
192194
}]
193195
},

Diff for: hack/verify-dist.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
# We don't need grunt to be installed globally for the system, so
5+
# We don't need grunt to be installed globally for the system, so
66
# we can amend our path to look into the local node_modules for the
77
# correct binaries.
88
repo_root="$( dirname "${BASH_SOURCE}" )/.."
@@ -11,7 +11,9 @@ export PATH="${PATH}:${repo_root}/node_modules/grunt-cli/bin"
1111
grunt build
1212

1313
echo "Verifying that checked in built files under dist match the source..."
14-
if [[ $(git status -s -u dist*) ]]; then
14+
STATUS=$(git status -s -u -vv dist*)
15+
echo $STATUS
16+
if [[ ${STATUS} ]]; then
1517
echo "Built dist does not match what is committed, run 'grunt build' and include the results in your commit."
1618
exit 1
1719
else

0 commit comments

Comments
 (0)