-
-
Save jc00ke/99bee78f058e1b5f2147 to your computer and use it in GitHub Desktop.
simple build system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for app in apps/*; do | |
| sass --no-cache \ | |
| --scss \ | |
| --watch \ | |
| "$app/public/stylesheets:$app/public/assets/" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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