Common tools to facilitate the development and testing of Primer child themes.
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
From your project root, run:
grunt update-dev-lib
git push
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
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
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 |