angular-docs-cn/aio/scripts/payload.sh

16 lines
406 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu -o pipefail
2017-06-22 19:47:53 -04:00
readonly thisDir=$(cd $(dirname $0); pwd)
readonly parentDir=$(dirname $thisDir)
readonly target=${1:-aio}
# Track payload size functions
source ../scripts/ci/payload-size.sh
# Provide node_modules from aio
NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/
trackPayloadSize "$target" "dist/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json"