Written by: John | 20th Oct 2016
Set up Roots Sage on your local host for WordPress development.
Open a Terminal and follow the steps below:
Step 1: Set up Bit Bucket
Step 2: Init Git locally
cd /path/to/your/project git init git remote add origin https://your-account@bitbucket.org/your-instance/project-name.git
Step 3: Set up Sage.
cd /path-to-themes-dir composer create-project roots/sage your-theme-name 8.5.0
Step 4: Set up Gulp + bower
cd /path-to-new-theme-dir npm install bower install
Step 5: alter assets/manifest.json devUrl: copy-local-url-fom-browser
{ "dependencies": { "main.js": { "files": [ "scripts/main.js" ], "main": true }, "main.css": { "files": [ "styles/main.scss" ], "main": true }, "customizer.js": { "files": [ "scripts/customizer.js" ] }, "jquery.js": { "bower": ["jquery"] } }, "config": { "devUrl": "http:YOUR_LOCAL_URL" } }