{"id":19215594,"url":"https://github.com/alwaysblank/blade-generate","last_synced_at":"2025-05-12T23:28:09.556Z","repository":{"id":94010020,"uuid":"83581609","full_name":"alwaysblank/blade-generate","owner":"alwaysblank","description":"Forces generation of Blade template cache files for Sage9.","archived":false,"fork":false,"pushed_at":"2019-09-05T20:20:54.000Z","size":48,"stargazers_count":64,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T19:37:57.644Z","etag":null,"topics":["blade-template","hacktoberfest","sage","wordpress","wordpress-theme","wp-cli"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alwaysblank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-01T17:24:58.000Z","updated_at":"2024-08-21T19:52:39.000Z","dependencies_parsed_at":"2023-03-13T17:08:24.181Z","dependency_job_id":null,"html_url":"https://github.com/alwaysblank/blade-generate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwaysblank%2Fblade-generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwaysblank%2Fblade-generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwaysblank%2Fblade-generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwaysblank%2Fblade-generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alwaysblank","download_url":"https://codeload.github.com/alwaysblank/blade-generate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253839468,"owners_count":21972326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blade-template","hacktoberfest","sage","wordpress","wordpress-theme","wp-cli"],"created_at":"2024-11-09T14:14:09.512Z","updated_at":"2025-05-12T23:28:09.547Z","avatar_url":"https://github.com/alwaysblank.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"alwaysblank/blade-generate\n================================\n\n\n\n[![Build Status](https://travis-ci.org/alwaysblank/blade-generate.svg?branch=master)](https://travis-ci.org/alwaysblank/blade-generate)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing)\n\n## Using\n\nBefore using this plugin, make sure you have installed and activated a theme built on [Sage 9](https://github.com/roots/sage). 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.\n\n**Note:** Sage 10 will make heavy use of the [Acorn project](https://github.com/roots/acorn), which looks to provide this functionality internally (take a look at the `ViewCacheCommand.php` and `ViewClearCommand.php` files [here](https://github.com/roots/acorn/tree/master/src/Acorn/Console/Commands)). 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.\n\n### Compiling\n\n#### `compile`\n\nThe primary function of this plugin is to compile Blades on demand.\n\n```\nwp blade compile\n```\n\nThis will iterate through all `.blade.php` files in your theme directory and generate compiled versions.\n\nIf you only want to compile some of your templates, you can specify a directory using the `directory` parameter:\n\n```\nwp blade compile --directory=path/to/files\n```\n\nThe directory is relative to your theme root.\n\n### Clearing\n\nSometimes you want to clear out your Blade cache! This plugin can help you do that too.\n\n#### `clear`\n\n```\nwp blade clear\n```\n\nThis 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.\n\nIt 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:\n\n```\nwp blade clear --directory=path/to/files\n```\n\nThen _only_ the cached versions of files in `path/to/files` will be deleted.\n\nIf you want to clear out your entire cache (i.e. you have removed a Blade template), then use `wipe`.\n\n#### `wipe`\n\n```\nwp blade wipe\n```\n\nThis 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')`;\n\n## Installing\n\nInstalling this package requires WP-CLI v1.1.0 or greater. Update to the latest stable release with `wp cli update`.\n\nCurrently WP-CLI is not accepting new package submissions, but you can install this package directly from github with the following command: `wp package install git@github.com:alwaysblank/blade-generate.git`.\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing 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.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\n\nBefore you create a new issue, you should [search existing issues](https://github.com/alwaysblank/blade-generator/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\nOnce 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](https://github.com/alwayblank/blade-generator/issues/new) with the following:\n\n1. What you were doing (e.g. \"When I run `wp post list`\").\n2. What you saw (e.g. \"I see a fatal about a class being undefined.\").\n3. What you expected to see (e.g. \"I expected to see the list of posts.\")\n\nInclude as much detail as you can, and clear steps to reproduce if possible.\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/alwaysblank/blade-generator/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce 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:\n\n1. Create a feature branch for each contribution.\n2. Submit your pull request early for feedback.\n3. Include functional tests with your changes. [Read the WP-CLI documentation](https://wp-cli.org/docs/pull-requests/#functional-tests) for an introduction.\n4. Follow the [WordPress Coding Standards](http://make.wordpress.org/core/handbook/coding-standards/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwaysblank%2Fblade-generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falwaysblank%2Fblade-generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwaysblank%2Fblade-generate/lists"}