cloudfoundry-incubator/stratos

View on GitHub
deploy/stratos-ui-release/packages/frontend/pre_packaging

Summary

Maintainability
Test Coverage
# abort script on any command that exits with a non zero value
set -e -x

cd ${BUILD_DIR}/stratos

npm install
export PATH=$PATH:$PWD/node_modules/.bin
npm run build

# remove things we don't need
find ../stratos -type d ! -path '*/dist*' ! -path '../stratos' -maxdepth 1 |  xargs rm -rf
# Delete top level files
rm -f *.*
# Move dist to top level
mv dist/* .
rm -rf dist