Giter VIP home page Giter VIP logo

wp-eelknots's Introduction

WordPress Eelknots

A variation on Marc Jaquith's excellent WordPress Skeleton. Helps getting a WordPress project bootstrapped quickly.

Installation

Composer is used to install WordPress.

$ composer install

NPM installs Grunt & friends

$ npm install

Build theme assets

// While developing.
$ grunt watch

// Prepare for distribution.
$ grunt dist

Folder structure

WordPress is installed in a subfolder and the theme, plugins, uploads and other data are kept in the content folder in the root directory.

+-- content/
|   +-- mu-plugins/ (Contains an example plugin and theme)
|   +-- plugins/
|   +-- themes/ (Empty, an example theme is included in the example mu-plugin)
|   +-- uploads/ (Content is not tracked in the repository)
|   +-- ...
+-- wp/ (WordPress package)
+-- wp-config-local.php (Configuration and MySQL settings for the local development site)
+-- wp-config-production.php (MySQL server settings for the production site)
+-- wp-config.php (General configuration settings)
+-- ...

WordPress Coding Standards

The included example plugin tries to adhere to the WordPress Coding Standards. Compliance can be checked by using the PHP_CodeSniffer script and installing the WordPress Coding Standards Ruleset.

A phpcs.ruleset.xml file is included in the project root folder.

Run phpcs --standard=phpcs.ruleset.xml --report-file=phpcs.log in the project root folder to check WPCS complaince on all of the plugin and theme's PHP and CSS files. For reference, a phpcs.log error log file will be written to the root folder.

A grunt jshint Grunt task is available to check against the WordPress JavaScript coding standards.

Theme in a plugin?

WordPress allows you to specify additional theme folders. This feature is used by the example plugin to include the theme inside the plugin folder. Usually my WordPress project code mainly consists of a theme and a site-specific plugin. I find including the theme in the plugin keeps the project code nicely bundled together.

Deployment

To get up and running quickly, I like to deploy stuff using the dandelion gem. An example dandelion.yml file is included.

wp-eelknots's People

Contributors

barryceelen avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gamer7569

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.