Skip to content

1. Installation

DK edited this page Mar 14, 2019 · 6 revisions

Requirements

  1. PHP5.6+
  2. NodeJs (v10 +) (optional)

Installation

There are two ways to install this theme:

  1. Generate your theme using following link https://solidbunch.github.io/starter-kit-generator/, then unzip it into wp-content\themes\ directory

OR

  1. Simply clone this repo to your wp-content\themes\*your-theme-name*

Setup

  1. run npm i or yarn command (setup node depencies)
  2. to replace names use command
    • npm run replaceNames - doing replacement by config object (edit first in gulpfile.js)

  3. to run webpack use next commands
    • npm run prod or yarn prod - build minified assets

    • npm run dev or yarn dev- build assets with source maps (for development)

    • npm run watch or yarn watch- start watcher

    • npm run browser-sync or yarn browser-sync - to start watcher with broser sync

    • To use browser sync make sure that you copied build/broswer-sync.config.js.sample to build/broswer-sync.config.js - and configured your local domain

Composer PHP

If you want to use composer as php dependency manager, make sure that you have installed it in your system (Download Composer)

  1. go to your theme directory
  2. simply run composer install
Clone this wiki locally