2017 © Pedro Peláez
 

project wordpress-starter

3ev's WordPress starter kit

image

3ev/wordpress-starter

3ev's WordPress starter kit

  • Tuesday, September 19, 2017
  • by 3ev
  • Repository
  • 6 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

3ev WordPress Starter

A modern Wordpress environment, (*1)

This is the base WordPress environment that we use at 3ev. It borrows heavily from many of the ideas in the excellent Bedrock project., (*2)

What's included?

Tools and Setup

Wordpress Plugins

Requirements

  • PHP >=5.5.9
  • Composer
  • Node.js
  • Ruby/Rubygems/Bundler if you want to use Capistrano deployments

Installation

$ composer create-project 3ev/wordpress-starter -s dev
$ cd wordpress-starter/
$ bin/init

This will install dependencies, prompt you for any configuration, compile assets, install Wordpress and start your site running on Apache., (*3)

Building from an existing site

Once you've setup your WordPress site, you can easily create new builds for development or production. First, dump out your database with:, (*4)

$ bin/phing db:structure:dump
$ bin/phing db:data:dump

and push to S3 to distribute the files, then all developers have to do is:, (*5)

$ git clone git@github.com:you/your-wordpress.git my-wordpress-site/
$ cd my-wordpress-site/
$ bin/build

to get a working copy of your site., (*6)

Frontend Workflow

Wordpress Starter comes with a single theme, "3ev Starter Wordpress Theme" (public/app/themes/starter/), which is ready to use., (*7)

This theme includes the following:, (*8)

  • Bootstrap v4-alpha-2 (via NPM)
  • jQuery v2.2.2 (via CDN)
  • Modernzir v3 with touch detection and mq API (included in this repo)

Where possible, you should always try to use NPM to install frontend packages. They're bundled with Browserify, and you can use Browserify Shim (configure at public/app/themes/starter/assets/js/shim.js) to bundle any incompatible libraries., (*9)

Wordpress Starter includes some Gulp tasks to make it easy to compile your assets. These are run automatically when building locally or deploying with Capistrano., (*10)

# Compile JS from `public/app/themes/starter/assets/js/main.js`

$ node_modules/.bin/gulp build:js

# Compile Sass from `public/app/themes/starter/assets/css/main.sass`

$ node_modules/.bin/gulp build:css

You can also compile all assets or watch for changes during development - just use gulp -T to see all available tasks., (*11)

Deploying with Capistrano

Capistrano comes setup and ready to go with this project to make deployment as straightforward as possible. Just run:, (*12)

$ bundle install

first., (*13)

Next, follow the guides to setting up a deployment user and the initial directory on http://capistranorb.com/. Then, modify the :application and :repo_url settings in config/deploy.rb and create a stage file in config/deploy/ (the production.rb file is there as an example for you to start with)., (*14)

After that you can deploy your site with a single command:, (*15)

$ bundle exec cap [stage] deploy

Note: You'll need to setup your database separately after your first deployment., (*16)

Deploying a different branch

By default, your master branch will be deployed, but you can deploy a different branch for testing by setting the BRANCH environment variable, like:, (*17)

$ BRANCH=cool-new-feature bundle exec cap [stage] deploy

License

MIT © 3ev, (*18)

The Versions

19/09 2017

dev-master

9999999-dev https://github.com/3ev/wordpress-starter

3ev's WordPress starter kit

  Sources   Download

MIT

The Requires

 

17/10 2014

dev-use-our-theme

dev-use-our-theme https://github.com/3ev/wordpress-starter/

3ev's WordPress starter kit

  Sources   Download

MIT

The Requires