wemakecustom / wp-skeleton
Wordpress skeleton using composer, bower, plugin dependencies and various config files
Installs: 74
Dependents: 1
Suggesters: 1
Security: 0
Stars: 4
Watchers: 10
Forks: 0
Open Issues: 0
Language:ApacheConf
Requires
- leafo/lessphp: *
- wemakecustom/wp-skeleton-installer: ~3.0
- wemakecustom/wp-skeleton-theme: *
- wpackagist-plugin/w3-total-cache: *
- wpackagist-plugin/wordpress-seo: *
Requires (Dev)
Suggests
- wp-plugins/cred: Custom Types Form Builder
- wp-plugins/gravityforms: Form builder
- wp-plugins/gravityforms-multilingual: Form builder multilingual support
- wp-plugins/gravityforms-paypal: Form builder PayPal support
- wp-plugins/sitepress-multilingual-cms: Mutlilingual support
- wp-plugins/types-access: Custom Types Access List
- wp-plugins/wp-views: Custom Types Views
- wp-plugins/wpml-string-translation: Mutlilingual String Translation
- wp-plugins/wpml-translation-analytics: Mutlilingual Translation Analytics
- wp-plugins/wpml-translation-management: Mutlilingual Translation Management
- wpackagist-plugin/types: Custom Types
Replaces
- wemakecustom/wp-skeleton: v1.1
README
Thin wrapper around wp-skeleton-installer to easly install WordPress and get it works.
What it does
Install selected plugins and a custom theme for a clean starting WordPress:
- wemakecustom/wp-skeleton-installer (version ^3.0) is needed for this wrapper to work properly
- wpackagist-plugin/w3-total-cache (version ^0.9)
- wpackagist-plugin/wordpress-seo (version ^3.0)
- wemakecustom/wp-skeleton-theme
- wemakecustom/wp-skeleton-theme-demo
- leafo/lessphp (version ^0.5) to compile LESS files
- and an
.htaccess
that include rewriterules for LESS files, compression and expires headers.
Install libraries for an easy custom integration:
- bootstrap (version ~3.0) is a front-end framework for faster and easier web development.
- font-awesome (version ~4.0) is an iconic font for easy scalable vector graphics.
- jquery (version <2.0) is the most used javascript library.
- modernizr (version ~3.0) is a javascript library that detects HTML5 and CSS3 in user browser.
- underscore provides a lot of useful javascript helpers.
- console-polyfill is a light library to makes it safe to do
console.log()
.
Installation
$ git clone git@github.com:wemakecustom/wp-skeleton.git <project>
$ cd <project>
$ composer install
If you doesn't need the wp-skeleton-theme-demo
theme:
$ composer install --no-dev
By default, at the end, you will get WordPress and all configs files installed in <project>/htdocs/
subfolder. To configure another subfolder, please see section configuration bellow.
After that, you have to create the WordPress tables in the database with wp-cli, a command-line tools for managing WordPress.
You can read more information here about wp core install
command.
$ bin/wp core install --path=htdocs/ --url=<url> --title=<site-title> --admin_user=<username> --admin_password=<password> --admin_email=<email>
Then, finish by running bower to get all recent script up to date in <project>/htdocs/wp-content/components/
.
$ bower install
Configuration
The following section in composer.json
allow you to change the folder where WordPress and the config files are installed.
For details about this section, please see wp-skeleton-installer.
{ "extra": { "wordpress-install-dir": "vendor/wordpress/wordpress", "web-dir": "htdocs", "installer-paths": { "htdocs/wp-content/plugins/{$name}/": ["type:wordpress-plugin"], "htdocs/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"], "htdocs/wp-content/themes/composer/{$name}/": ["type:wordpress-theme"] } } }