snapshot of https://github.com/RocketChat/Rocket.Chat.git (develop, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
This commit is contained in:
164
fuselage.sh
Executable file
164
fuselage.sh
Executable file
@@ -0,0 +1,164 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "--help" || $1 == "-h" ]]; then
|
||||
echo "==================================================================================================
|
||||
Usage: yarn fuselage -a [action] -p [package]
|
||||
Options:
|
||||
-a | --action [link|undo|unlink|link-all|unlink-all|next|latest|next-all|latest-all]
|
||||
Specify the action to be performed by the script.
|
||||
- link : Creates a symbolic link for the fuselage package
|
||||
- undo|unlink : Removes the symbolic link for the fuselage package
|
||||
- link-all : Creates symbolic links for all packages in ../fuselage/packages
|
||||
- unlink-all : Removes symbolic links for all packages in ../fuselage/packages
|
||||
- next : Update dependencies with the @next npm package version
|
||||
- latest : Update dependencies with the @latest npm package version
|
||||
- next-all : Update ALL fuselage dependencies with the @next npm packages version
|
||||
- latest-all : Update ALL fuselage dependencies with the @latest npm packages version
|
||||
|
||||
-p | --package [package1;package2]
|
||||
Specify the package where the symbolic link for the fuselage script should be created.
|
||||
This option can contain multiple packages separated by a semicolon (;).
|
||||
|
||||
Example usage:
|
||||
- Create a symbolic link in multiple fuselage packages:
|
||||
yarn fuselage -a link -p fuselage;fuselage-icons;message-parser
|
||||
|
||||
- Remove the symbolic link:
|
||||
yarn fuselage -a undo
|
||||
|
||||
- Update dependencies to the @rocket.chat/fuselage@next npm package version
|
||||
yarn fuselage -a next -p fuselage
|
||||
|
||||
- Update dependencies to the @rocket.chat/fuselage@latest npm package version
|
||||
yarn fuselage -a latest -p fuselage
|
||||
|
||||
- Update ALL fuselage dependencies with the @next npm packages version:
|
||||
yarn fuselage -a next-all
|
||||
|
||||
- Update ALL fuselage dependencies with the @latest npm packages version:
|
||||
yarn fuselage -a latest-all
|
||||
|
||||
- Create symbolic links for all local fuselage packages:
|
||||
yarn fuselage -a link-all
|
||||
|
||||
- Remove symbolic links for all local fuselage packages:
|
||||
yarn fuselage -a unlink-all
|
||||
=================================================================================================="
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while getopts ":a:p:" opt; do
|
||||
case $opt in
|
||||
a)
|
||||
action="$OPTARG"
|
||||
;;
|
||||
p)
|
||||
packages="$OPTARG"
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option -$OPTARG" >&2
|
||||
echo "Run yarn fuselage --help for more information"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
case $OPTARG in
|
||||
-*)
|
||||
echo "Option $opt needs a valid argument"
|
||||
echo "Run yarn fuselage --help for more information"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
action="${action:-link}"
|
||||
packages="${packages:-fuselage}"
|
||||
|
||||
if [[ $action != "link" && $action != "undo" && $action != "unlink" && $action != "link-all" && $action != "unlink-all" && $action != 'next' && $action != 'next-all' && $action != 'latest' && $action != 'latest-all' ]]; then
|
||||
echo "Invalid action"
|
||||
echo "Run yarn fuselage --help for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $action == "link-all" || $action == "unlink-all" ]]; then
|
||||
if [[ ! -d "../fuselage/packages" ]]; then
|
||||
echo "Could not find ../fuselage/packages"
|
||||
echo "Make sure the fuselage repository is available at the project root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
packages=$(find "../fuselage/packages" -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | paste -sd ";" -)
|
||||
|
||||
if [[ -z "$packages" ]]; then
|
||||
echo "No packages found in ../fuselage/packages"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $action == "link-all" ]]; then
|
||||
action="link"
|
||||
else
|
||||
action="unlink"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $action == "next-all" || $action == "latest-all" ]]; then
|
||||
if [ "$action" = "next-all" ]; then
|
||||
targetVersion="next"
|
||||
else
|
||||
targetVersion="latest"
|
||||
fi
|
||||
|
||||
echo "📦 @rocket.chat/fuselage-toastbar [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/fuselage-tokens [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/css-in-js [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/styled [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/fuselage [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/fuselage-hooks [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/icons [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/logo [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/onboarding-ui [UPDATING to $targetVersion version...]
|
||||
📦 @rocket.chat/layout [UPDATING to $targetVersion version...]"
|
||||
|
||||
eval "yarn up @rocket.chat/fuselage-toastbar@$targetVersion @rocket.chat/fuselage-tokens@$targetVersion @rocket.chat/css-in-js@$targetVersion @rocket.chat/styled@$targetVersion @rocket.chat/fuselage@$targetVersion @rocket.chat/fuselage-hooks@$targetVersion @rocket.chat/icons@$targetVersion @rocket.chat/logo@$targetVersion @rocket.chat/onboarding-ui@$targetVersion @rocket.chat/layout@$targetVersion"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $action == "next" || $action == "latest" ]]; then
|
||||
for i in $(echo $packages | tr ";" "\n"); do
|
||||
echo "Updating $i package to @rocket.chat/$i@$action ..."
|
||||
eval "yarn up @rocket.chat/$i@$action"
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
cd ./node_modules/@rocket.chat
|
||||
|
||||
for i in $(echo $packages | tr ";" "\n"); do
|
||||
rm -rf $i
|
||||
if [[ $action != "undo" && $action != "unlink" ]]; then
|
||||
ln -s "../../../fuselage/packages/$i" $i
|
||||
fi
|
||||
done
|
||||
|
||||
cd ../..
|
||||
cd ./apps/meteor/node_modules/@rocket.chat
|
||||
|
||||
for i in $(echo $packages | tr ";" "\n"); do
|
||||
if [[ $action != "undo" && $action != "unlink" ]]; then
|
||||
echo "Linking @rocket.chat/$i package to local project ..."
|
||||
rm -rf $i
|
||||
ln -s "../../../../../fuselage/packages/$i" $i
|
||||
echo "Local package @rocket.chat/$i linked successfully"
|
||||
else
|
||||
echo "Unlinking @rocket.chat/$i package to local project ..."
|
||||
rm -rf $i
|
||||
echo "Local package @rocket.chat/$i was unlinked successfully"
|
||||
fi
|
||||
done
|
||||
|
||||
cd ../../../../
|
||||
if [[ $action == "undo" || $action == "unlink" ]]; then
|
||||
yarn
|
||||
fi
|
||||
Reference in New Issue
Block a user