mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 09:56:44 +08:00
* Updated Learn More links with UTM's * Tweaked Pointer strings Icon and CTA * dismissible notice strings * sticky notice strings * updated upgrade flow design for pointer, notices, introduction modal, and confirmation modal * added build script
33 lines
1.2 KiB
Bash
Executable file
33 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
echo "Web Accessibility build script:"
|
|
echo "basename: [$(basename "$0")]"
|
|
echo "dirname : [$(dirname "$0")]"
|
|
echo "pwd : [$(pwd)]"
|
|
BUILD_FILE="pojo-accessibility.zip"
|
|
|
|
#change working dir to the directory containing your package.json and composer.json
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
|
|
# Remove old build file
|
|
echo "Removing old build file..."
|
|
rm -f $BUILD_FILE
|
|
|
|
# Run npm install
|
|
echo "Running npm install..."
|
|
npm install
|
|
|
|
# Run npm build
|
|
echo "Running npm install..."
|
|
npm run build
|
|
|
|
# Run composer install
|
|
echo "Running composer install..."
|
|
composer install --no-dev
|
|
|
|
# Pack everything excluding dev stuff
|
|
echo "Packing everything excluding .git folder into a zip file..."
|
|
zip -r pojo-accessibility.zip . -x "*.bpg.json" -x "*.babelrc" -x "*ruleset.xml" -x "*webpack.config.js" -x "*phpunit.xml.dist" -x "*.git*" -x "*.DS_Store" -x "node_modules/*" -x "*.gitignore" -x "*.gitmodules" -x "*.editorconfig" -x "*.gitattributes" -x "*.eslintrc" -x "*.eslintignore" -x "*.phpcs.xml.dist" -x "*.phpunit.xml.d" -x "*coverage/*" -x "*assets/dev*" -x ".phpunit.result*" -x "bin*" -x "*tests/*" -x "package.json" -x "composer.json" -x "composer.lock" -x "package-lock.json"
|
|
|
|
#
|
|
echo "Done."
|