Skip to content

jaakkolehtonen/jaakkolehtonen-wp-project

Repository files navigation

Jaakko Lehtonen WP Project

Requirements

Setup

  1. Remove http { ... } block from /usr/local/etc/nginx/nginx.conf
  2. brew services start --all or:
    • brew services start nginx
    • brew services start [email protected]
    • brew services start mariadb
  3. mysql -u root, CREATE DATABASE database_name;and exit
  4. Update environment variables in the .env file:
    • DB_NAME - Database name
    • composer install

Development

  1. heroku local
  2. cd /web/app/themes/jaakkolehtonen-wp-theme
  3. npm install

Gulp Tasks

gulp watch - Automatically handle changes to CSS and JS. Also kicks off BrowserSync.

gulp i18n - Scan the theme and create a POT file.

gulp sass:lint - Run Sass against code standards.

gulp js:lint - Run Javascript against code standards.

gulp scripts - Concatenate and minify javascript files.

gulp styles - Compile, prefix, combine media queries, and minify CSS files.

gulp - Runs the following tasks at the same time: i18n, scripts, styles.