From the course: WordPress: Building Progressive Themes with WP Rig

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Advanced build features

Advanced build features - WordPress Tutorial

From the course: WordPress: Building Progressive Themes with WP Rig

Start my 1-month free trial

Advanced build features

- [Speaker] For advanced users and advanced uses, there are some additional build processes I have not covered in this course. They're found under package.json all the way at the bottom under scripts. Here you'll see we have dev, which is the process we've been running so far. This is the process that builds the entire theme then spins up a browser sync and watches all of your files. In addition, we have bundle which bundles out the theme and creates a separate folder and separate zip archive for when you're done building. You also have build as a build process. So npm-run build. This runs the entire build process without running browser, sync and watch. So if you just want to spin up the theme once to see what it produces, you just say npm-run build and you have npm-run gulp if you want to target specific gulp processes. Those gulp processes sit inside the gulp folder. You seen me use it once earlier in the course and here you can see a list of all the available process that can be…

Contents