v 1.8
Starting point for our wordpress themes
This works thanks to the great work of:
git clone git@github.com:interglobalvision/globie-wordpress-starter-pack.git /path/to/new-theme
cd /path/to/new-theme
rm -rf .git
git init
yarn
composer install --prefer-dist
webpack
To install new packages use yarn
E.g. Slick Slider
yarn add slick-carousel
Then import js files in main.js
:
import 'slick-carousel';
And import css files in site.styl
:
@import '~slick-carousel/slick/slick.css';
~
is used to ref node_modules
inside stylus
Each package is added differently depending on it's export and nature. Most modern packages are webpack friendly :)
git clone git@github.com:interglobalvision/globie-wordpress-starter-pack.git /path/to/new-theme
cd /path/to/new-theme
Locally exclude built files and stuff. Edit .git/info/exclude
:
composer.lock
dist/