GithubHelp home page GithubHelp logo

wp-starter's Introduction

#wp-starter

A WordPress starter template for bespoke themes, built around a modern tooling environment.

The project provides modern tooling and a base theme structure so you can jump straight into development. It does not make any stylistic or functional assumptions, just gives you the tools you need to get on with your job.

wp-starter make use of the following projects:

##Requirements for local dev

  • node.js v0.10.26 +
  • grunt.js v0.4.1 +
  • Bower v1.3.3 +

##Getting Setup Once Bower is installed (http://bower.io), you can then install all dependencies by running:

bower install

Once Grunt is installed (http://gruntjs.com/getting-started) you can install all dependencies by running (you may have to prefix this with 'sudo'):

npm install

note: please see Bower/Grunt documentation for help with installation.

##Using Grunt

You can use the Grunt watch task to watch .less and .js files for changes and automatically process them.

$ grunt watch

Alternatively, you can process them at anytime with the following commands.

$ grunt buildcss
$ grunt buildjs
$ grunt buildimg

The CSS build does the following tasks:

  • Compiles all the .less files imported into style.less
  • Autoprefixes the compiled style.css with vendor prefixes (by default it supports current browser version -2)
  • Checks the prefixed file for CSS Lint errors (based on .csslintrc config)
  • Minifies the file
  • Mac OSX / Linux Ubuntu users will then receive a notification upon successful build

The JS build does the following tasks:

  • jshints your project.js and Gruntfile.js files (based on .jshintrc config)
  • Searchs the project.js file for Modernizr references and generates a custom build with the tests you need
  • Concatinates all javascript files used in the site
  • Minifies the concatinated file
  • Mac OSX / Linux Ubuntu users will then receive a notification upon successful build

The IMG build does the following tasks:

  • Optimises all images
  • Mac OSX / Linux Ubuntu users will then receive a notification upon successful build

##Deployment

wp-starter is compatible with dploy - https://github.com/LeanMeanFightingMachine/dploy/

Example of dploy.yaml config (not part of the repository, but will be created when you install dploy)

staging:
    scheme: ftp
    host: yourhost.com
    port: 21
    user: yourusername
    pass: password123
    check: true
    exclude: ["*.yaml", "*.json", "js/**/*.js", "js/project.js", "**/*.less", "node_modules", "Gruntfile.js", "README.md", ".bowerrc", ".csslintrc", ".editorconfig", ".gitignore", ".jshintrc"]
    include:
        "style.css": "/",
        "js/production.js": "/js"
    path:
        remote: httpdocs/wp-content/themes/wp-starter/

wp-starter's People

Contributors

merlinmason avatar

Stargazers

Sudeep B avatar Kreig Durham avatar Areful Islam avatar Chazona Baum avatar Miguel A. Estrada avatar Shaun Wakashige avatar aartsyfaartsy avatar Roberto Di Marco avatar Paulo Truta avatar Yurii Didkovskyi avatar Tosin Afolabi avatar Bojan Petkovski avatar  avatar Fillipe Amorim avatar Emily Bowe avatar Sven avatar Francis Suarez avatar Alex avatar Benoit Ricaud avatar Chris Enns avatar John Pett avatar Amen Moja Ra avatar roybattyy avatar Pali Madra avatar Mac avatar  avatar Mark Bonnici avatar  avatar Brian J King avatar Martin Müller avatar Sandee Jackson avatar Washaweb avatar Rıfat Caner Anıltürk avatar  avatar  avatar Paul avatar James Aitken avatar

Watchers

Paul avatar James Cloos avatar  avatar Brian J King 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.