Initial commit: core-prestashop module v1.1.1

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fatequod
2026-07-07 14:30:30 +02:00
co-authored by Cursor
commit f163100ad4
33 changed files with 2605 additions and 0 deletions
Executable
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
PACKAGE_NAME=$(node -p "require('./package.json').name")
if [ -z "$PACKAGE_NAME" ]; then
echo "Błąd: Nie można odczytać nazwy z package.json"
exit 1
fi
ZIP_FILE="${PACKAGE_NAME}.zip"
if [ -f "$ZIP_FILE" ]; then
rm "$ZIP_FILE"
echo "Usunięto stary plik: $ZIP_FILE"
fi
echo "Tworzenie archiwum: $ZIP_FILE"
zip -r "$ZIP_FILE" \
package.json \
index.js \
.npmrc \
src/ \
methods/ \
pages/
if [ $? -eq 0 ]; then
echo "✓ Sukces! Utworzono: $ZIP_FILE"
echo "Zawartość archiwum:"
zip -sf "$ZIP_FILE"
else
echo "✗ Błąd podczas tworzenia archiwum"
exit 1
fi