File tree 4 files changed +3
-11
lines changed 4 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,14 @@ license="/*! instantsearch.js ${VERSION:-UNRELEASED} | © Algolia SAS | github.c
8
8
9
9
bundle=' instantsearch'
10
10
11
- printf " \n\nBuild"
12
-
13
- printf " \n\nBuild: webpack\n"
14
11
webpack
15
12
16
- printf " \n\nBuild: minify\n"
17
13
cat dist/$bundle .js | uglifyjs -c warnings=false -m > dist/$bundle .min.js
18
14
19
- printf " \n\nBuild: CSS\n"
20
15
cp themes/default.css dist/themes/default.css
21
16
cleancss dist/themes/default.css > dist/themes/default.min.css
22
17
23
- printf " \n\nBuild: prepend license\n"
24
18
printf " $license " | cat - dist/" $bundle " .js > /tmp/out && mv /tmp/out dist/" $bundle " .js
25
19
printf " $license " | cat - dist/" $bundle " .min.js > /tmp/out && mv /tmp/out dist/" $bundle " .min.js
26
20
27
- printf " \n\nBuild: filesize\n"
28
-
29
21
printf " => $bundle .min.js gzipped will weight ` cat dist/$bundle .min.js | gzip -9 | wc -c | pretty-bytes` \n"
Original file line number Diff line number Diff line change 2
2
3
3
set -ev # exit when error
4
4
5
- printf " \nPublish example/ to gh-pages\n"
6
-
7
5
webpack --config webpack.example.config.js
8
6
cp -r example example-dist
9
7
cat example-dist/bundle.js | uglifyjs -c warnings=false -m > example-dist/bundle.min.js
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -ev # exit when error
3
+ set -e # exit when error
4
4
5
5
currentBranch=` git rev-parse --abbrev-ref HEAD`
6
6
if [ $currentBranch != ' master' ]; then
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e # exit when error
4
+
3
5
# Checks the commits msgs in the range of commits travis is testing.
4
6
# Based heavily on
5
7
# https://raw.githubusercontent.com/angular/angular.js/291d7c467fba51a9cb89cbeee62202d51fe64b09/validate-commit-msg.js
You can’t perform that action at this time.
0 commit comments