2017-11-29 10:47:04 +00:00
|
|
|
#!/usr/bin/env bash
|
2017-05-24 00:20:56 +00:00
|
|
|
|
2017-07-14 05:50:05 +00:00
|
|
|
set -eu -o pipefail
|
2017-06-15 17:10:28 +00:00
|
|
|
|
2017-06-22 23:47:53 +00:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
2017-06-30 17:08:33 +00:00
|
|
|
readonly parentDir=$(dirname $thisDir)
|
2019-06-14 10:01:37 +00:00
|
|
|
readonly target=${1:-aio}
|
2023-07-17 15:16:28 +00:00
|
|
|
readonly PROJECT_ROOT=$(realpath "$(dirname ${thisDir})/..")
|
2017-05-24 00:20:56 +00:00
|
|
|
|
2017-08-03 22:18:55 +00:00
|
|
|
# Track payload size functions
|
|
|
|
|
source ../scripts/ci/payload-size.sh
|
2017-05-24 00:20:56 +00:00
|
|
|
|
2018-04-11 23:01:53 +00:00
|
|
|
# Provide node_modules from aio
|
|
|
|
|
NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/
|
|
|
|
|
|
2022-09-15 00:20:33 +00:00
|
|
|
trackPayloadSize "$target" "../dist/bin/aio/build/*.css ../dist/bin/aio/build/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json"
|