Getting started
Where to start?
PorterWP is relatively unopinionated, but the skeleton theme is supplied with a gulpfile.js
and package.json
which are structured in the "PorterWP way".
Setup Gulp
Navigate to your theme folder
Change the theme name in
package.json
andstyle.css
to something more appropriate for your project. - Change the text domain too, while you're there.In terminal, run
npm install
in the theme folder.Then run
gulp watch
to begin.
The first thing you should see, is the generation of /assets/dist/**
and the compilation of SASS and JS. The gulpfile.js
also runs a build script to generate a $colors
map from the color palette in theme.json
Last updated