chore: include node_modules in api slackware package (#1415)

instead of vendoring & uploading separately.

## Summary by CodeRabbit

- **Chores**
- Updated build process to retain the `node_modules` directory, removing
compression and archiving steps.
- Improved plugin installation by cleaning up outdated dependency
archives before reinstalling, enhancing system stability.
- Removed vendor store file references and related bundling steps from
the plugin build and installation process.
- Enhanced dependency restoration during service start to log warnings
without aborting on failure.
- Simplified dependency management scripts by removing vendor store URL
handling and download functionality.
- Streamlined build workflows by removing artifact upload/download and
validation steps related to node modules archives.
- Updated Docker Compose configuration to remove unused volume mounts
for node modules archives.
- Added repository cleanup commands to remove top-level `node_modules`
directories and common build artifact folders for easier maintenance.
This commit is contained in:
Pujit Mehrotra
2025-06-11 12:07:32 -04:00
committed by GitHub
parent c132f28281
commit 184b76de1c
12 changed files with 63 additions and 106 deletions
+3 -7
View File
@@ -9,8 +9,6 @@
<!ENTITY txz_sha256 "">
<!ENTITY txz_url "">
<!ENTITY txz_name "">
<!ENTITY vendor_store_url "">
<!ENTITY vendor_store_filename "">
<!ENTITY arch "x86_64">
<!ENTITY build "1">
<!ENTITY tag "">
@@ -47,10 +45,6 @@ exit 0
]]>
</INLINE>
</FILE>
<FILE Name="/boot/config/plugins/dynamix.my.servers/&vendor_store_filename;">
<URL>&vendor_store_url;</URL>
</FILE>
<!-- download main txz -->
<FILE Name="&source;">
@@ -223,7 +217,6 @@ exit 0
PKG_FILE="&source;" # Full path to the package file including .txz extension
PKG_URL="&txz_url;" # URL where package was downloaded from
PKG_NAME="&txz_name;" # Name of the package file
VENDOR_ARCHIVE="/boot/config/plugins/dynamix.my.servers/&vendor_store_filename;"
<![CDATA[
# Install the Slackware package
echo "Installing package..."
@@ -235,6 +228,9 @@ for txz_file in /boot/config/plugins/dynamix.my.servers/dynamix.unraid.net-*.txz
fi
done
# Clean up any old node_modules archives (on the boot drive) that don't match our current version
/etc/rc.d/rc.unraid-api cleanup-dependencies
# Remove existing node_modules directory
echo "Cleaning up existing node_modules directory..."
if [ -d "/usr/local/unraid-api/node_modules" ]; then