This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
forked from ualib-deploy/roots-ualib
-
Notifications
You must be signed in to change notification settings - Fork 3
0. Quick Start
Will Jones edited this page Apr 11, 2016
·
27 revisions
Before you begin editing the theme, please read through the rest of this wiki.This section will only help you setup a basic dev environment.
- Download and install Bitnami
- On Windows, you may get a "Windows Security" prompt for firewall permissions. Uncheck all boxes by any type of network, then click 'Cancel'.
- Goto Bitnami's WordPress folder (
C:\Bitnami\wordpress-<VERSON_NUMBER>\apps\wordpress\htdocs\
in Windows). Openwp-config.php
file and add this line to the top:define('WP_ENV', 'development');
- This puts Bitnami Worpress in DEV mode for roots-ualib theme development
- Download and install Node.js
- Run the Bitnami Worpress manager (may just be named
wordpress-manager.exe
) - Click
Go to Application
- this opens the browser tohttp://localhost/wordpress
- Login to you local Wordpress and set the University Libraries' theme as active.
- Download and install PhpStorm website.
- If you don't already have a PhpStorm License, complete a TRF to purchase on and submit it to ACS.
NOTE: Any IDE will work, but PhpStorm is the only one these documents cover, as it integrates all the required dev tools.
- Open PhpStorm.
VCS -> Check out from Version Control -> Github
- Choose the
ualibweb/roots-ualib
repo from the dropdown - Set the
Parent Directory
you local WordPressthemes
folder (C:\Bitnami\wordpress-<VERSON_NUMBER>\apps\wordpress\htdocs\wp-content\themes
in Windows). - Click 'Clone' button.
- In PhpStorm open the embedded terminal using any of the following commands/menus:
- Press Alt+F12
- Click the Terminal tool button at the bottom left of the PhpStorm window.
- If the Terminal tool button isn't visible:
- Click or hover over the
show_tool_window_bars
icon at the very bottom left (It looks like a nondescript box icon). - Click the Terminal button.
- Click or hover over the
- If the Terminal tool button isn't visible:
- Type the following command into the terminal prompt. This will allow the
grunt
command to run *globally from any directory on your system.
npm install -g grunt-cli
- Now install the required Grunt tools for this project (defined in the
package.json
file).
npm install
- Type the following command to install Bower globally
npm install -g bower
- Now install all dependencies (defined in the
bower.json
file).
bower install
Grunt and Bower both run off the Node.js platform. Node uses it's "Node Package Manage" (npm) to allow developers to download various software packages.
- Start Bitnami and go to http://localhost/workpress
- Then, from PhpStorm, Select the
default
task from the Grunt panel
- Running
grunt default
in your terminal works as well
- Editing any of the theme's JS, Styles, or PHP files will auto-refresh you local WordPress in your browser.