Moz Morris e4505e2a6b Merge umd-build branch. This closes #13
commit 8b1ed17602b01c2c63d7c341f6cc70711ff8f925
Author: Moz Morris <moz@earthview.co.uk>
Date:   Sun Jun 28 11:33:40 2015 +0100

    Fixup exports.

commit a64ce1c6fb73fe9dee9f2d0bec38574ad7d1897e
Author: Moz Morris <moz@earthview.co.uk>
Date:   Sun Jun 28 10:42:28 2015 +0100

    [added] bower support
2015-06-29 17:48:37 +01:00

14 lines
453 B
Bash
Executable File

#!/bin/sh
babel=node_modules/.bin/babel
webpack=node_modules/.bin/webpack
build_dir=lib
rm -rf $build_dir
$babel ./src -d $build_dir --ignore "__tests__" --loose all
NODE_ENV=production $webpack src/index.js $build_dir/umd/GoogleMapReact.js
NODE_ENV=production $webpack -p src/index.js $build_dir/umd/GoogleMapReact.min.js
echo "gzipped, the global build is `gzip -c $build_dir/umd/GoogleMapReact.min.js | wc -c | sed -e 's/^[[:space:]]*//'` bytes"