-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.3.11' into craft-webpack
- Loading branch information
Showing
6 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
# Build production assets | ||
# | ||
# Build the production assets inside of the buildchain Docker container | ||
# | ||
# @author nystudio107 | ||
# @copyright Copyright (c) 2020 nystudio107 | ||
# @link https://nystudio107.com/ | ||
# @package craft-scripts | ||
# @since 1.2.2 | ||
# @license MIT | ||
|
||
# Get the directory of the currently executing script | ||
DIR="$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
# Include files | ||
INCLUDE_FILES=( | ||
"common/defaults.sh" | ||
".env.sh" | ||
) | ||
for INCLUDE_FILE in "${INCLUDE_FILES[@]}" | ||
do | ||
if [[ ! -f "${DIR}/${INCLUDE_FILE}" ]] ; then | ||
echo "File ${DIR}/${INCLUDE_FILE} is missing, aborting." | ||
exit 1 | ||
fi | ||
source "${DIR}/${INCLUDE_FILE}" | ||
done | ||
|
||
# Temporary db dump path (remote & local) | ||
if [[ -z "${LOCAL_BUILDCHAIN_CONTAINER}" ]]; then | ||
echo "Variable LOCAL_BUILDCHAIN_CONTAINER is missing from .env.sh, aborting." | ||
else | ||
docker exec -it ${LOCAL_BUILDCHAIN_CONTAINER} npm run build | ||
fi | ||
|
||
# Normal exit | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters