Skip to content

Instantly share code, notes, and snippets.

@ivankravchenko
Created January 19, 2015 16:02
Show Gist options
  • Save ivankravchenko/0bf144996661624849b8 to your computer and use it in GitHub Desktop.
Save ivankravchenko/0bf144996661624849b8 to your computer and use it in GitHub Desktop.
Procfile.dev-verstat and verstat2wp.sh
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
#!/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