From 57ee61938d2abb5f40dd22aa902fcd2bda633fd5 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Tue, 25 Mar 2025 09:19:48 +0100 Subject: [PATCH] build(copy-trilium): delete now unused script all of its functionality has been "absorbed" by the cross-platform copy-dist and cleanupNodeModules scripts, that can be used for all of our builds now --- bin/copy-trilium.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 bin/copy-trilium.sh diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh deleted file mode 100755 index f6030a6ec..000000000 --- a/bin/copy-trilium.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -set -e # Fail on any command error -shopt -s globstar - -BUILD_DIR="./build" - -if ! [[ $(which npm) ]]; then - echo "Missing npm" - exit 1 -fi - -if [[ -d "$BUILD_DIR"/node_modules ]]; then - # cleanup of useless files in dependencies - for d in \ - '@excalidraw/excalidraw/dist/dev' \ - 'mermaid/dist/mermaid.js' \ - 'boxicons/svg' 'boxicons/node_modules' 'boxicons/src' 'boxicons/iconjar' \ - '@jimp/plugin-print/fonts' 'jimp/dist/browser'; do - [[ -e "$BUILD_DIR"/node_modules/"$d" ]] && rm -r "$BUILD_DIR"/node_modules/"$d" - done -fi - -find $BUILD_DIR/libraries -name "*.map" -type f -delete - -unset f d BUILD_DIR