All Projects → alwaysblank → blade-generate

alwaysblank / blade-generate

Licence: other
Forces generation of Blade template cache files for Sage9.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
Gherkin
971 projects

Projects that are alternatives of or similar to blade-generate

sage-next
familiar-zebra.surge.sh
Stars: ✭ 18 (-71.87%)
Mutual labels:  wordpress-theme, sage
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+17917.19%)
Mutual labels:  wordpress-theme, sage
selene
A opinionated Wordpress base theme based on Sage.
Stars: ✭ 31 (-51.56%)
Mutual labels:  wordpress-theme, sage
The-Standards
WordPress theme based on the U.S. Web Design System
Stars: ✭ 14 (-78.12%)
Mutual labels:  wordpress-theme
wp-cli-themecheck
Run Themecheck in WP_CLI
Stars: ✭ 39 (-39.06%)
Mutual labels:  wp-cli
FAU-Einrichtungen
WordPress-Theme für zentrale Einrichtungen der Friedrich-Alexander-Universität Erlangen-Nürnberg
Stars: ✭ 15 (-76.56%)
Mutual labels:  wordpress-theme
primer-child-escapade
Escapade is a Primer child theme with a unique sidebar navigation.
Stars: ✭ 15 (-76.56%)
Mutual labels:  wordpress-theme
lean-theme
No description or website provided.
Stars: ✭ 38 (-40.62%)
Mutual labels:  wordpress-theme
Slice-Library
Slice-Library is a CodeIgniter library that simulates Laravel's Blade templating system!
Stars: ✭ 60 (-6.25%)
Mutual labels:  blade-template
wp-spa-boilerplate
A JavaScript single page WordPress theme boilerplate using Vue.js and the WordPress REST API.
Stars: ✭ 13 (-79.69%)
Mutual labels:  wordpress-theme
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+28.13%)
Mutual labels:  wp-cli
wordpress
📚 Recursos para aprender WordPress
Stars: ✭ 20 (-68.75%)
Mutual labels:  wordpress-theme
wpe-cli
WP-CLI extension to interact with WP Engine installs.
Stars: ✭ 28 (-56.25%)
Mutual labels:  wp-cli
air
A hyper-minimal WordPress starter theme for developers built with Tailwind CSS.
Stars: ✭ 45 (-29.69%)
Mutual labels:  wordpress-theme
starter-kit-theme
WordPress starter theme with a modern development stack for launching projects faster and easily
Stars: ✭ 25 (-60.94%)
Mutual labels:  wordpress-theme
Hypermarket
If you are looking for a stylish and elegant website template for your online store, Hypermarket is the perfect choice for you.
Stars: ✭ 49 (-23.44%)
Mutual labels:  wordpress-theme
bootstrap-basic
Bootstrap 3 css framework theme for wordpress. For theme developer can start build their theme very fast. To download for use with your project, please go to wordpress.org themes page in the link.
Stars: ✭ 22 (-65.62%)
Mutual labels:  wordpress-theme
core-command
Downloads, installs, updates, and manages a WordPress installation.
Stars: ✭ 41 (-35.94%)
Mutual labels:  wp-cli
jarvis
A speedy Gutenberg ready theme
Stars: ✭ 50 (-21.87%)
Mutual labels:  wordpress-theme
win10exp
WordPress win10exp主题
Stars: ✭ 25 (-60.94%)
Mutual labels:  wordpress-theme

alwaysblank/blade-generate

Build Status

Quick links: Using | Installing | Contributing

Using

Before using this plugin, make sure you have installed and activated a theme built on Sage 9. While in theory this plugin could be modified to work with other blade-based WordPress systems, it is currently only designed to work with Sage 9.

Note: Sage 10 will make heavy use of the Acorn project, which looks to provide this functionality internally (take a look at the ViewCacheCommand.php and ViewClearCommand.php files here). Consequently, I do not currently intend to update this plugin to work with Sage 10, unless the Acorn functionality that it would replicate is removed or proves otherwise problematic.

Compiling

compile

The primary function of this plugin is to compile Blades on demand.

wp blade compile

This will iterate through all .blade.php files in your theme directory and generate compiled versions.

If you only want to compile some of your templates, you can specify a directory using the directory parameter:

wp blade compile --directory=path/to/files

The directory is relative to your theme root.

Clearing

Sometimes you want to clear out your Blade cache! This plugin can help you do that too.

clear

wp blade clear

This will look at all your Blades and remove their cached versions. It will only remove cached files for existing Blades; it will not clear out everything in your Blade cache directory.

It takes the same --directory argument as compile, and will only remove cached files for those Blades in the passed directory. For instance, if you pass:

wp blade clear --directory=path/to/files

Then only the cached versions of files in path/to/files will be deleted.

If you want to clear out your entire cache (i.e. you have removed a Blade template), then use wipe.

wipe

wp blade wipe

This function takes no arguments, and simply removes every file it finds in your Blade cache. It determines where the cache is by calling Sage's App\config('view.compiled');

Installing

Installing this package requires WP-CLI v1.1.0 or greater. Update to the latest stable release with wp cli update.

Currently WP-CLI is not accepting new package submissions, but you can install this package directly from github with the following command: wp package install [email protected]:alwaysblank/blade-generate.git.

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue with the following:

  1. What you were doing (e.g. "When I run wp post list").
  2. What you saw (e.g. "I see a fatal about a class being undefined.").
  3. What you expected to see (e.g. "I expected to see the list of posts.")

Include as much detail as you can, and clear steps to reproduce if possible.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:

  1. Create a feature branch for each contribution.
  2. Submit your pull request early for feedback.
  3. Include functional tests with your changes. Read the WP-CLI documentation for an introduction.
  4. Follow the WordPress Coding Standards.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].