Skip to content

Instantly share code, notes, and snippets.

@MiquelAdell
Last active March 2, 2016 15:40
Show Gist options
  • Save MiquelAdell/ac9e19f2419c192dcc86 to your computer and use it in GitHub Desktop.
Save MiquelAdell/ac9e19f2419c192dcc86 to your computer and use it in GitHub Desktop.
how to develop on cordills
  1. set up a regular VVV You could set some other environment but the migration sql assumes:

    local.wordpress.dev as a host

and

  /srv/www/wordpress-default

as the path to the files

  1. go to ./www/wordpress-default/wp-content/themes on mounted vagrant filesystem

  2. clone the theme into the develop branch

    git clone -b develop https://github.com/MiquelAdell/cordills cordills

  3. there should be a migration.sql on ./cordills/ execute it on the database

  4. on ./www/wordpress-default/wp-content/themes/cordills execute the following:

     composer update
     npm install
     bower install
     gulp
    

(if you don't have bower and gulp but you have npm you can just npm install -g gulp bower ) 6. donwload the uploads folder and extract it to ./vagrant-local/www/wordpress-default/wp-content/uploads

  1. right now everything should work. If not let me know.

  2. every sass and js that needs editing is in assets

  3. All the front end libraries are on bower_components. For example there is a boostrap behind that has tons of defaults on bower_components/boostrap-sass. The usual thing is to overwrite them on assets if needed.

BONUS:

  1. if instead of gulp you run gulp && gulp watch a browser sync (I'm not sure if you need to install it. If you need you can do it by

     npm install -g browser-sync
    

but it's totally worth it.

Using gulp watch gulp auto triggers and reloads the website as you code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment