Skip to content

JorreSpijker/gulp-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp-wp 💃

macOS Wordpress Gulp Local

Say you want to run a local wordpress environment to create wordpress themes. There are plenty of products that suits for you. But what if you want to use sass/scss and you want it to be automatically updated on your wordpress website. Then this product is the right product for you.

Theme from: Underscores.me

Installation

  1. Install Local from the website.

  2. Go to settings and change the "Default Sites Path" to: /Users/[username]/local-sites/.

  3. Create a new project. Choose the projectname wisely.

  4. Clone or download this project and put it in a place of choice.

  5. Open the "gulpfile.js".

  6. Change the following variables:

    theme_name: The name of your theme, on line 7.

    project_name: The name of your project, must be equal to the project you filled in step 2, on line 9.

    var theme_name		=	"test"; // This is the name of your theme
    var project_name	=	"test"; // This is the name of your wordpress project. It needs to be equal to the 'Local' folder where wordpress is installed.
  7. Run npm install in the Terminal.

  8. Make sure you started the local server from "Local".

  9. Run gulp, here you can see all the commands you can use.

  10. Run gulp build, this will compile all the files in the src folder.

  11. Run gulp deploy, this will send the /build folder to the local wordpress theme directory.

  12. Go to [projectname].dev and login with the admin information you filled in step 1.

  13. Go to Appearance > Themes and activate your theme.

Use

These steps needs to be done for daily usage:

  1. Open "Local" and start the server.
  2. Navigate to the folder where you cloned this project.
  3. Run gulp, here you can see all the commands you can use.
  4. Run gulp watch and start editing the files.
  5. Now the changes will compile automatically and deploy automatically to the local wordpress directory. The browser will reload automatically.

Version 1.0.0

About

Local development environment for Wordpress themes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published