Skip to content

Instantly share code, notes, and snippets.

@BlazerYoo
Created July 10, 2021 18:53
Show Gist options
  • Save BlazerYoo/d47169c4e3625d161af593cbf50ffaaa to your computer and use it in GitHub Desktop.
Save BlazerYoo/d47169c4e3625d161af593cbf50ffaaa to your computer and use it in GitHub Desktop.
Generating static files for web app running on ExpressJs and Bulma (main folder is public and follows https://bulma.io/documentation/customize/with-node-sass/)
#!/bin/bash
DIR="./build"
if [ -d "$DIR" ]; then
rm -r "$DIR"
fi
mkdir build
cd build
cp -r ../public/elements .
cp -r ../public/Icons .
cp -r ../public/Images .
cp -r ../public/js .
cp -r ../public/mybulma/sass .
cp -r ../public/mybulma/css .
cp ../public/index.html .
echo "Build done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment