Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Last active April 2, 2024 20:18
Show Gist options
  • Save garybernhardt/63c21e45e18dba4e1eaddd4d09debaef to your computer and use it in GitHub Desktop.
Save garybernhardt/63c21e45e18dba4e1eaddd4d09debaef to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
if [ -e static ]; then
rm -r static
fi
mkdir -p static
sass src/sass/main.scss > static/application.css
$(npm bin)/browserify src/js/main.js > static/application.js
cp -r src/html/* static
serveit -s static -i node_modules -i .git -i .gem -i .sass-cache bin/rebuild
https://github.com/garybernhardt/serveit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment