18 lines
520 B
Bash
Executable File
18 lines
520 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# need this script to work around this stupid
|
|
# part of package.json:
|
|
#
|
|
# "build": "REACT_APP_VERSION=$(git describe --tags) react-scripts build",
|
|
#
|
|
# so we need to call 'react-scripts build', but also set REACT_APP_VERSION
|
|
# which is also set in the package.json file (no need for these git
|
|
# gymnastics).
|
|
|
|
export REACT_APP_VERSION=$(jq -r .version /app/package.json)
|
|
echo "building version: $REACT_APP_VERSION"
|
|
|
|
# writes the html and stuff to /app/build inside the container
|
|
yarn react-scripts build
|