Created
January 19, 2015 16:02
-
-
Save ivankravchenko/0bf144996661624849b8 to your computer and use it in GitHub Desktop.
Procfile.dev-verstat and verstat2wp.sh
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
web: vendor/bin/heroku-php-nginx -C app_nginx.conf -F app_php-fpm.conf app | |
verstat: cd verstat ; npm install ; verstat --exec-after-generate 'cd .. ; ./verstat2wp.sh' serve |
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 | |
VERSTAT_SOURCE=verstat | |
WP_THEME=app/themes/ENTER_THEME_NAME_HERE | |
echo Converting Jade to PHP | |
jade2php --omit-php-runtime -o $WP_THEME/templates/blocks $VERSTAT_SOURCE/src/blocks | |
jade2php --omit-php-runtime -o $WP_THEME/templates/layouts $VERSTAT_SOURCE/src/layouts | |
echo Copying generated assets | |
cp -r $VERSTAT_SOURCE/out/assets $WP_THEME/ | |
# echo Converting preloader assets | |
# stylus -u nib $VERSTAT_SOURCE/src/assets/styles/preloading.styl -o $WP_THEME/templates/preloader/ | |
# coffee -o $WP_THEME/templates/preloader/ -c $VERSTAT_SOURCE/src/assets/scripts/head-loader.coffee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment