2017 © Pedro Pelรกez
 

wordpress-theme base-camp

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

image

suomato/base-camp

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  • Friday, July 27, 2018
  • by suomato
  • Repository
  • 10 Watchers
  • 68 Stars
  • 193 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 1 Open issues
  • 20 Versions
  • 66 % Grown

The README.md

, (*1)

Dependency Status Dependency Status License , (*2)

About Base Camp

Awesome WordPress starter theme with own CLI for developers based on modern web technologies., (*3)

Features

  • Bulma (Responsive CSS framework based on Flexbox)
  • Timber
    • Twig Template Engine
    • Cleaner and better code
    • Separates the logic from presentation
  • Webpack
    • Sass / Scss for stylesheets (Minimize in production)
    • ES6 for Javascript (Minimize in production)
    • Automatic Cache Busting
    • Split javascript code to two chunks, app.js and vendor.js
    • Vuejs for boosting frontend development
    • BrowserSync for synchronised browser testing
  • Luna (Command-line interface included with Base Camp)
  • WooCommerce support with basic boilerplate.

Requirements

Installation

  • Go your themes folder and runcomposer create-project suomato/base-camp
  • cd base-camp
  • yarn or npm install
  • define your custom webpack config to build/config.js file
  • yarn watch or npm run watch
  • Happy developing :)

Structure

base-camp/                                          # Theme root
โ”œโ”€โ”€ app/                                            # Theme logic
โ”‚   โ”œโ”€โ”€ config/                                     # Theme config
โ”‚   โ”‚   โ”œโ”€โ”€ wp/                                     # WordPress specific config
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ admin-page.php                      # Register here WordPress Admin Page config
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ image-sizes.php                     # Register here WordPress Custom image sizes
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ login-page.php                      # Register here WordPress Login Page config
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ maintenance.php                     # Maintenance mode config
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ menus.php                           # Register here WordPress navigation menus
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ scripts-and-styles.php              # Register here WordPress scripts and styles
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ security.php                        # Things that increase the site security
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sidebars.php                        # Register here WordPress sidebars
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ theme-supports.php                  # Register here WordPress theme features
โ”‚   โ”‚   โ”œโ”€โ”€ autoload.php                            # Includes all config files (DON'T REMOVE THIS)
โ”‚   โ”‚   โ”œโ”€โ”€ timber.php                              # Timber specific config
โ”‚   โ”‚   โ””โ”€โ”€ woocommerce.php                         # Init woocommerce support
โ”‚   โ”œโ”€โ”€ models/                                     # Wrappers for Timber Classes
โ”‚   โ”œโ”€โ”€ timber-extends/                             # Extended Timber Classes
โ”‚   โ”‚   โ””โ”€โ”€ BaseCampSite.php                        # Extended TimberSite Class
โ”‚   โ”œโ”€โ”€ bootstrap.php                               # Bootstrap theme
โ”‚   โ”œโ”€โ”€ helpers.php                                 # Common helper functions
โ”œโ”€โ”€ build/                                          # Theme assets and views
โ”‚   โ”œโ”€โ”€ config.js                                   # Custom webpack config
โ”‚   โ”œโ”€โ”€ webpack.config.js                           # Webpack config
โ”œโ”€โ”€ resources/                                      # Theme assets and views
โ”‚   โ”œโ”€โ”€ assets/                                     # Front-end assets
โ”‚   โ”‚   โ”œโ”€โ”€ js/                                     # Javascripts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ components/                         # Vue Components
โ”‚   โ”‚   โ”œโ”€โ”€ sass/                                   # Styles
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ components/                         # Partials
โ”‚   โ”œโ”€โ”€ languages/                                  # Language features
โ”‚   โ”‚   โ”œโ”€โ”€ base-camp.pot                           # Template for translation
โ”‚   โ”‚   โ””โ”€โ”€ messages.php                            # Language strings
โ”‚   โ”œโ”€โ”€ views/                                      # Theme Twig files
โ”‚   โ”‚   โ”œโ”€โ”€ components/                             # Partials
โ”‚   โ”‚   โ”œโ”€โ”€ footer/                                 # Theme footer templates
โ”‚   โ”‚   โ””โ”€โ”€ header/                                 # Theme header templates

Models

Models are wrapper classes for Wordpress Post Types and Taxonomies. They provide very simple interface to interact with the database., (*4)

How to use

// index.php

<?php

use Basecamp\Models\Post;

// returns an array of TimberPost objects
Post::all();

// returns TimberPost object with the ID 1 (if it exists)
Post::find(1);

// returns first two posts;
Post::take(2)->get();

// skips first two posts;
Post::skip(2)->get();

// returns published posts;
// Supported values: https://codex.wordpress.org/Post_Status#Default_Statuses
Post::status('publish')->get();

// returns all posts except post with ID 1;
Post::exclude([1])->get();

// returns only posts with ID 1;
Post::include([1])->get();

// returns an array of posts descending order by author;
// Supported Values: https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Post::orderby('author', 'desc')->get();

// returns an array of posts authored by admin;
Post::author('admin')->get();

// returns an array of posts which are in category 'cars' or 'vehicles';
Post::inCategory(['cars', 'vehicles'])->get();

All queries are chainable. For example you can get three first incomplete posts authored by admin:, (*5)

Post::status('draft')->author('admin')->take(3)->get();

All models are able to use almost every methods. However there are some exceptions:, (*6)

  • Only Post model has inCategory() method
  • Taxonomies (Category, Tag) have hideEmpty() method

Luna (Command-line interface)

Docs, (*7)

The Versions

27/07 2018

dev-master

9999999-dev

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

27/07 2018

v1.8.0

1.8.0.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

27/07 2018

dev-develop

dev-develop

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

01/07 2018

v1.7.0

1.7.0.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

13/05 2018

v1.6.1

1.6.1.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

30/03 2018

v1.6.0

1.6.0.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

29/03 2018

dev-woocommerce_integration

dev-woocommerce_integration

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

07/12 2017

v1.5.2

1.5.2.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

26/11 2017

v1.5.1

1.5.1.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

19/11 2017

v1.5.0

1.5.0.0

Awesome WordPress starter theme with own CLI for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

16/11 2017

v1.4.2

1.4.2.0

Awesome WordPress starter theme for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

11/11 2017

v1.4.1

1.4.1.0

Awesome WordPress starter theme for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

11/11 2017

v1.4.0

1.4.0.0

Awesome WordPress starter theme for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

07/11 2017

v1.3.1

1.3.1.0

Awesome WordPress starter theme for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

05/11 2017

v1.3.0

1.3.0.0

Awesome WordPress starter theme for developers based on modern web technologies.

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

22/10 2017

v1.2.0

1.2.0.0

WordPress starter theme for developer based on Timber-library

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

01/10 2017

v1.1.0

1.1.0.0

WordPress starter theme for developer based on Timber-library

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

13/09 2017

v1.0.1

1.0.1.0

WordPress starter theme for developer based on Timber-library

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

12/09 2017

v1.0.0

1.0.0.0

WordPress starter theme for developer based on Timber-library

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen

wordpress composer bulma timber webpack starter-theme

13/08 2017

1.0.0-beta.1

1.0.0.0-beta1

WordPress starter theme for developer based on Timber-library

  Sources   Download

MIT

The Requires

 

by Toni Suomalainen