A new project boilerplate.
- _s (Sass fork) (automattic, gregrickaby)
- CMB (webdevstudios)
- Taxonomy Core (jtsternberg)
- CPT Core (jtsternberg)
- Basic MU Plugin
- Sample Class-based Plugin
npm install -g yo generator-wd-s
- Install Yeoman and the wd_s generator
yo wd-s
- In the wp-content folder of a new project, follow the prompts and a new magically created wd_s install with your project name in it's place!
You'll need to clone recursive this repo, not download the zip! (It includes other Github submodules and they won't be included in the zip)
-
Via command line / Terminal:
git clone --recursive git@github.com:WebDevStudios/wd_s.git
-
Via SourceTree/Tower:
Clone normally, but select "Recurse submodules"
You'll need to change all instances of the names: _s
.
- Search for:
'_s'
and replace with:'project-name'
- (inside single quotations) to capture the text domain
- Search for:
_s_
and replace with:project-name_
- to capture all the function names
- Search for:
Text Domain: _s
and replace with:Text Domain: project-name
in style.css. - Search for:
_s
and replace with:Project Name
- (with a space before it) to capture DocBlocks.
- Search for:
_s-
and replace with:project-name-
- to capture prefixed handles
- Search for
_S_
and replace with:Project_Name_
- to capture class names
grunt javascript
- Concatenate and minify javascript files.
grunt styles
- Comb, compile, prefix, combine media queries, and minify scss files.
grunt watch
- Automatically handle changes to javascript and css files.
grunt imageminnewer
- Minify images
grunt
- Do it all once!