Giter Club home page Giter Club logo

gulp-wordpress's Introduction

Gulp + WordPress

Version: 2.0.8

Author

Jase Warner ( https://jase.io )

If this project has been a helping hand to you, feel free to buy this grateful developer a beer 🍻

Synopsis

Gulp + WordPress is a blank slate WordPress theme for those Developers wishing to start a project with the bare minimum.

The theme has been built according to WordPress Coding Standards. All functions, includes and templates are placed in their respective directory and divided into separate files accordingly.

Gulp + WordPress is packaged with Gulp v4 for watching, compiling, and minifying SCSS and JS files.

A selection of helpful mixins is also included, most of which are featured in this useful article by @seb_ekstrom.

You may also write your JavaScript in ES6 – The Gulp scripts task utilises Babel, so you can use new syntax without worrying about browser support.

Installation

Clone the project into wp-content/themes and rename it accordingly.

You’ll want to update style.css in the theme root with all the relevant bits of information, as well as assets/package.json (specifically name and author) and lastly assets/gulpfile.js (change the themePrefix variable accordingly).

Now, in Terminal, cd into the assets directory and install the Gulp packages (if you haven't already installed Gulp, you’ll need to do so first):

npm install

Once you have installed the packages, in Terminal and while still in the assets directory, run gulp watch. Note that you may want to run the default task (gulp) to do an initial build of the assets.

SCSS files in assets/scss/ are compiled and minified over to assets/css.

JavaScript files in assets/js/scripts/ are uglified, concatenated and sent over to assets/js/.

Note: If you would like to specify scripts per WordPress template (e.g. posts, pages etc.), you can tweak the js Gulp task to create separate JavaScript files.

Features

The Gulp build features the following helpful packages:

There are also a selection of useful WordPress functions located in the functions directory to get you started, including the following:

  • Change admin credit in footer
  • Change default “Howdy” greeting
  • Enqueue scripts and styles
  • Pretty printing debugging tool for PHP
  • Register custom navigation menu

Credits

gulp-wordpress's People

Contributors

jasewarner 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.