Skip to content

Commit 201c007

Browse files
author
vvo
committed
chore(scripts): reduce the scripts noise printf
1 parent 2838758 commit 201c007

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

scripts/build.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,14 @@ license="/*! instantsearch.js ${VERSION:-UNRELEASED} | © Algolia SAS | github.c
88

99
bundle='instantsearch'
1010

11-
printf "\n\nBuild"
12-
13-
printf "\n\nBuild: webpack\n"
1411
webpack
1512

16-
printf "\n\nBuild: minify\n"
1713
cat dist/$bundle.js | uglifyjs -c warnings=false -m > dist/$bundle.min.js
1814

19-
printf "\n\nBuild: CSS\n"
2015
cp themes/default.css dist/themes/default.css
2116
cleancss dist/themes/default.css > dist/themes/default.min.css
2217

23-
printf "\n\nBuild: prepend license\n"
2418
printf "$license" | cat - dist/"$bundle".js > /tmp/out && mv /tmp/out dist/"$bundle".js
2519
printf "$license" | cat - dist/"$bundle".min.js > /tmp/out && mv /tmp/out dist/"$bundle".min.js
2620

27-
printf "\n\nBuild: filesize\n"
28-
2921
printf "=> $bundle.min.js gzipped will weight `cat dist/$bundle.min.js | gzip -9 | wc -c | pretty-bytes`\n"

scripts/gh-pages.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -ev # exit when error
44

5-
printf "\nPublish example/ to gh-pages\n"
6-
75
webpack --config webpack.example.config.js
86
cp -r example example-dist
97
cat example-dist/bundle.js | uglifyjs -c warnings=false -m > example-dist/bundle.min.js

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -ev # exit when error
3+
set -e # exit when error
44

55
currentBranch=`git rev-parse --abbrev-ref HEAD`
66
if [ $currentBranch != 'master' ]; then

scripts/validate-commit-msgs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -e # exit when error
4+
35
# Checks the commits msgs in the range of commits travis is testing.
46
# Based heavily on
57
# https://raw.githubusercontent.com/angular/angular.js/291d7c467fba51a9cb89cbeee62202d51fe64b09/validate-commit-msg.js

0 commit comments

Comments
 (0)