Add bundling script.
This commit is contained in:
22
scripts/create-bundle.sh
Executable file
22
scripts/create-bundle.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ ! -d .git ]]; then
|
||||
echo 'Not in the root, bailing!' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Refresh all dependencies
|
||||
yarn
|
||||
composer install --no-dev
|
||||
|
||||
# Build the JS files
|
||||
yarn run webpack --mode production
|
||||
|
||||
# Create the archive
|
||||
tar -czf isdefoobaropen.nl.tar.gz \
|
||||
--transform 's/^/isdefoobaropen.nl\//' \
|
||||
src \
|
||||
vendor \
|
||||
public \
|
||||
templates \
|
||||
config
|
||||
Reference in New Issue
Block a user