# Prepare working tree
cd "$REPO_DIR" &&
+git reset composer.json && git checkout composer.json &&
git reset $TARGET_DIR && git checkout $TARGET_DIR && git fetch origin &&
git checkout -B upstream-oojs-ui origin/master || exit 1
# * the Apex theme files,
# * the minimised distribution files, and
# * the RTL sheets for non-CSSJanus environments
+# * the raster- and vector-only distribution sheets
rsync --force --recursive --delete \
--exclude '*apex*' \
--exclude 'oojs-ui*.min.*' \
--exclude 'oojs-ui*.rtl.css' \
+ --exclude 'oojs-ui*.raster.css' \
+ --exclude 'oojs-ui*.vector.css' \
./node_modules/oojs-ui/dist/ "$REPO_DIR/$TARGET_DIR" || exit 1
# Clean up temporary area
END
)
+# Update composer.json as well
+composer require oojs/oojs-ui $OOJSUI_VERSION --no-update
+
# Stage deletion, modification and creation of files. Then commit.
-git add --update $TARGET_DIR && git add $TARGET_DIR && git commit -m "$COMMITMSG" || exit 1
+git add --update $TARGET_DIR && git add $TARGET_DIR && git add composer.json && git commit -m "$COMMITMSG" || exit 1