mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
3b3aa8a86e
As I was testing, I found it useful to see when I was using the ext/ directory or not.
27 lines
707 B
Bash
Executable File
27 lines
707 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
PROJECT=""
|
|
if [[ -e ext/app ]]; then
|
|
PROJECT="tsconfig-ext.json"
|
|
echo "Using extra app directory"
|
|
else
|
|
echo "No extra app directory found"
|
|
fi
|
|
|
|
WEBPACK_CONFIG=buildtools/webpack.config.js
|
|
if [[ -e ext/buildtools/webpack.config.js ]]; then
|
|
# Allow webpack config file to be replaced (useful
|
|
# for grist-static)
|
|
WEBPACK_CONFIG=ext/buildtools/webpack.config.js
|
|
fi
|
|
|
|
set -x
|
|
tsc --build $PROJECT
|
|
buildtools/update_type_info.sh app
|
|
webpack --config $WEBPACK_CONFIG --mode production
|
|
webpack --config buildtools/webpack.check.js --mode production
|
|
webpack --config buildtools/webpack.api.config.js --mode production
|
|
cat app/client/*.css app/client/*/*.css > static/bundle.css
|