Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Latest commit

 

History

History
110 lines (94 loc) · 1.87 KB

readme.md

File metadata and controls

110 lines (94 loc) · 1.87 KB

Primer Child Theme Development Library

Common tools to facilitate the development and testing of Primer child themes.

Installing

From your project root, add this repo as a submodule, then run the setup.sh script:

git submodule add -b master https://github.com/godaddy/wp-primer-child-dev-lib.git .dev/lib
bash .dev/lib/setup.sh

Updating

From your project root, run:

grunt update-dev-lib
git push

Grunt Tasks & Targets

Run a task against all targets: grunt imagemin

Or a specific target: grunt imagemin:screenshot

autoprefixer
 |-- :editor
 |-- :main
clean
 |-- :build
copy
 |-- :build
cssjanus
 |-- :assets
 |-- :editor
 |-- :main
cssmin
 |-- :assets
devUpdate
 |-- :packages
imagemin
 |-- :assets
 |-- :screenshot
jshint
 |-- :assets
 |-- :gruntfile
replace
 |-- :php
 |-- :readme
 |-- :sass
sass
 |-- :assets
 |-- :editor
 |-- :main
shell
 |-- :merge_packages
 |-- :update_dev_lib
uglify
 |-- :assets
watch
 |-- :images
 |-- :js
 |-- :sass
wp_readme_to_markdown
 |-- :main

Grunt Task Groups

Run an ordered group of tasks with one command: grunt build

default
 |-- sass
 |-- autoprefixer
 |-- cssjanus
 |-- cssmin
 |-- jshint
 |-- imagemin
build
 |-- default
 |-- version
 |-- clean:build
 |-- copy:build
check
 |-- devUpdate
readme
 |-- wp_readme_to_markdown
update-dev-lib
 |-- shell:update_dev_lib
 |-- shell:merge_packages
 |-- merge_yaml
version
 |-- replace
 |-- readme

Travis CI Builds

Job PHP PHPUnit WordPress Multisite
#1 5.3 4.8.x 4.4 No
#2 5.3 4.8.x Latest No
#3 5.3 4.8.x Trunk No
#4 7.1 6.0.x Latest No
#5 7.1 6.0.x Trunk No