feat: prima versione del plugin, blocco e shortcode con iframe stampato lato server
This commit is contained in:
commit
5c73bbc2b8
20 changed files with 1562 additions and 0 deletions
33
build.sh
Executable file
33
build.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
# Costruisce lo zip da caricare su WordPress.org e da mettere in download sul
|
||||
# sito. Dentro c'e' una sola cartella `piazza-in-festa/`, come si aspetta chi
|
||||
# installa da "Aggiungi plugin > Carica plugin".
|
||||
#
|
||||
# ./build.sh -> dist/piazza-in-festa.zip
|
||||
#
|
||||
# Nello zip finisce SOLO quello che serve a far girare il plugin: niente .git,
|
||||
# niente sorgenti di sviluppo, niente questo script.
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
SLUG="piazza-in-festa"
|
||||
VERSIONE=$(grep -m1 "^ \* Version:" piazza-in-festa.php | awk '{print $3}')
|
||||
DIST="dist"
|
||||
STAGE="$DIST/$SLUG"
|
||||
|
||||
rm -rf "$DIST"
|
||||
mkdir -p "$STAGE"
|
||||
|
||||
# Elenco esplicito invece di una lista di esclusioni: se domani si aggiunge un
|
||||
# file di sviluppo, non finisce nello zip per distrazione.
|
||||
cp piazza-in-festa.php uninstall.php readme.txt LICENSE "$STAGE/"
|
||||
cp -R includes blocks assets languages "$STAGE/"
|
||||
|
||||
# Le traduzioni sorgente (.po) non servono a chi installa, il .mo si'.
|
||||
rm -f "$STAGE/languages/"*.po
|
||||
|
||||
( cd "$DIST" && zip -qr "$SLUG.zip" "$SLUG" )
|
||||
rm -rf "$STAGE"
|
||||
|
||||
echo "$DIST/$SLUG.zip (versione $VERSIONE, $(du -h "$DIST/$SLUG.zip" | cut -f1))"
|
||||
Loading…
Add table
Add a link
Reference in a new issue