Giter VIP home page Giter VIP logo

wp-gulp-env's Introduction

WP-Gulp-Env

A Gulp environment to build and deploy Wordpress themes.

I needed a simple Gulp-based collection of tasks to develop Wordpress themes in a local dev directory, automatically deploy to a local staging environment and finally push to the production server. So far, this includes CSS-, JavaScript- and image minification including watch tasks, browser sync, and automatic generation of style.css and .pot files.

Before you get started

Copy build-default.json as build.json and fill in the settings documented below.

Settings

build.json holds several settings, both general for this tool and information for style.css:

  • localStagingDir: the path to the local staging directory, i.e. from where MAMP or the like runs, down to the themes folder
  • localStagingURI: the URI the local staging server runs on
  • productionHost: the FTP host for the production server
  • productionUser: the FTP user for the production server
  • productionPath: the path to the themes folder on the production server
  • according to WP theme development guidelines: name, themeURI, author, authorURI, description, version, license, licenseURI, textDomain

Tasks

Several tasks can be run from the CLI. See gulpfile.js for a complete overview.

  • $ gulp dev: default task which runs all minification tasks, generates a .pot file, deploys to the local staging server, runs browser sync and watches for changes
  • $ gulp build: all of the above but does not run browser sync nor watches for changes
  • $ gulp deployProduction: deploys the contents of the staging environment to the production server. Prompts for confirmation and for the password to access the FTP server specified in build.json

wp-gulp-env's People

Contributors

thisancog avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.