This is a Vagrant configuration template designed for the agile development of WordPress themes.
A SCSS and CoffeeScript version of _s is included for your convienience.
- Debug mode is enabled by default
- Automatic installation & activation of plugins
- default plugins: theme-check, plugin-check, mp6
- Optional import of theme unit test data
- Uses Grunt to manage your theme.
-
Install NodeJS / NPM.
-
Install Grunt.
-
Install VirtualBox.
-
Install Vagrant.
-
Install the vagrant-hostsupdater plugin.
$ vagrant plugin install vagrant-hostsupdater
-
Clone the repository into a local directory.
$ git clone https://github.com/keichan34/vagrant-wp-theme-template.git new-project
-
Change into a new directory.
$ cd new-project
-
Initialize your NodeJS modules.
$ npm install
-
Compile the sources (and watch for changes).
$ grunt watch
-
Start the Vagrant environment.
$ vagrant up
-
Visit http://wordpress.dev/ !
This command will automatically compile your SCSS / CoffeeScript when the file is saved.
$ grunt watch
(TODO) This command will package your theme into a zip
file, ready to send off to theme review!
$ grunt theme-package
This tool installs a WordPress environment with these settings by default.
- Default user
- Username: admin
- Password: admin
- Debug mode is enabled (
WP_DEBUG
) - Default plugins
- theme-check
- plugin-check
- wp-multibyte-patch (
ja
locale only) - mp6
- Allowed ports on iptables
- 22 - SSH
- 80 - HTTP
- 443 - HTTPS
- 3306 - MySQL
- CentOS 6.4.x
- PHP 5.3.x
- MySQL 5.1.x
- Apache 2.2.x
Let me know if you have any feedback! Open a new issue if you want to share your tips or report a bug.
- @miya0001 for the initial idea and vagrant-chef-centos-wordpress
- @naokomc
- @keichan34