mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Exclude build files
This commit is contained in:
parent
11ad6c6bef
commit
35b9835fd5
3
ElectronClient/.gitignore
vendored
3
ElectronClient/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
build/
|
||||
app/node_modules/
|
||||
dist/
|
||||
app/lib/
|
||||
app/lib/
|
||||
app/gui/*.min.js
|
@ -5,16 +5,19 @@ BUILD_DIR="$ROOT_DIR/app"
|
||||
|
||||
rsync -a "$ROOT_DIR/../ReactNativeClient/lib/" "$BUILD_DIR/lib/"
|
||||
|
||||
for JSX_FILE in "$BUILD_DIR"/gui/*.jsx; do
|
||||
JS_FILE="${JSX_FILE::-4}.min.js"
|
||||
if [ $JSX_FILE -nt $JS_FILE ]; then
|
||||
echo "Compile $JS_FILE..."
|
||||
"$ROOT_DIR/app/node_modules/.bin/babel" --presets react "$JSX_FILE" > "$JS_FILE"
|
||||
if [[ $? != 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
cd "$BUILD_DIR"
|
||||
npm run compile
|
||||
|
||||
# for JSX_FILE in "$BUILD_DIR"/gui/*.jsx; do
|
||||
# JS_FILE="${JSX_FILE::-4}.min.js"
|
||||
# if [ $JSX_FILE -nt $JS_FILE ]; then
|
||||
# echo "Compile $JS_FILE..."
|
||||
# "$ROOT_DIR/app/node_modules/.bin/babel" --presets react "$JSX_FILE" > "$JS_FILE"
|
||||
# if [[ $? != 0 ]]; then
|
||||
# exit 1
|
||||
# fi
|
||||
# fi
|
||||
# done
|
||||
|
||||
# TRANSLATION_BUILD_SCRIPT="$ROOT_DIR/../CliClient/build/build-translation.js"
|
||||
# if [[ ! -f $TRANSLATION_BUILD_SCRIPT ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user