Skip to content

Commit

Permalink
🐛 Clean up pre-push messages (#15547)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimha committed May 24, 2018
1 parent 3953b25 commit e914463
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions build-system/default-pre-push
Expand Up @@ -14,10 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the license.
#
# This script adds a pre-push hook to .git/hooks/, which runs some basic tests
# before running "git push".
#
# Default pre-push hook for AMPHTML. To enable, run:
# This file contains the default pre-push hook for AMPHTML. To enable it, run:
# "./build-system/enable-git-pre-push.sh"
#
# Note: The checks in this file must not take more than a few seconds to run.
Expand Down
8 changes: 4 additions & 4 deletions build-system/tasks/bundle-size.js
Expand Up @@ -29,11 +29,11 @@ const {green, red, cyan, yellow} = colors;

function checkBundleSize() {
if (!fs.existsSync(runtimeFile)) {
log(green('Could not find'), cyan(runtimeFile) +
green('. Skipping bundlesize check.'));
log(green('To include this check, run'),
log(yellow('Could not find'), cyan(runtimeFile) +
yellow('. Skipping bundlesize check.'));
log(yellow('To include this check, run'),
cyan('gulp dist --fortesting [--noextensions]'),
green('before'), cyan('gulp bundle-size') + yellow('.'));
yellow('before'), cyan('gulp bundle-size') + yellow('.'));
return;
}

Expand Down

0 comments on commit e914463

Please sign in to comment.