Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created February 22, 2015 22:24
Show Gist options
  • Select an option

  • Save jc00ke/99bee78f058e1b5f2147 to your computer and use it in GitHub Desktop.

Select an option

Save jc00ke/99bee78f058e1b5f2147 to your computer and use it in GitHub Desktop.
simple build system
#!/bin/bash
for app in apps/**; do
app_dir=$(basename "$app")
jsx -x jsx -w "apps/$app_dir/public/javascripts/jsx" "$app/public/javascripts"
done
#!/bin/bash
for app in apps/*; do
sass --no-cache \
--scss \
--watch \
"$app/public/stylesheets:$app/public/assets/"
done
#!/bin/bash
for app in apps/**; do
app_dir=$(basename "$app")
watchify "apps/$app_dir/public/javascripts/app.js" \
-o "apps/$app_dir/public/assets/app.js" \
-v
watchify "spec/javascripts/$app_dir/**/*.js" \
-o "spec/javascripts/$app_dir/build/specs.js" \
-v
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment