Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Acorn commands support for WordPress (roots/acorn) #2448

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eduwass
Copy link
Contributor

@eduwass eduwass commented Sep 5, 2024

Introduce a series of new commands under the "wp acorn" command to enhance WordPress functionality.

These commands include:

  • clear-compiled: Remove the compiled class file
  • completion: Dump the shell completion script
  • env: Display the current framework environment
  • help: Display help for a command
  • list: List commands
  • optimize: Cache the framework bootstrap files
  • acorn-init: Initializes required paths in the base directory
  • config:cache: Create a cache file for faster configuration loading
  • config:clear: Remove the configuration cache file
  • optimize:clear: Remove the cached bootstrap files
  • make:command: Create a new Artisan command
  • make:component: Create a new view component class
  • make:composer: Create a new view composer class
  • make:provider: Create a new service provider class
  • package:discover: Rebuild the cached package manifest
  • vendor:publish: Publish any publishable assets from vendor packages
  • view:cache: Compile all of the application's Blade templates
  • view:clear: Clear all compiled view files

https://roots.io/acorn/
https://roots.io/acorn/docs/wp-cli/

Introduce a series of newcommands under the "acorn" command to enhance
WordPress functionality. These commands include:

- clear-compiled: Remove the compiled class file
- completion: Dump the shell completion script
- env: Display the current framework environment
- help: Display help for a command
- list: List commands
- optimize: Cache the framework bootstrap files
- acorn-init: Initializes required paths in the base directory
- config:cache: Create a cache file for faster configuration loading
- config:clear: Remove the configuration cache file
- optimize:clear: Remove the cached bootstrap files
- make:command: Create a new Artisan command
- make:component: Create a new view component class
- make:composer: Create a new view composer class
- make:provider: Create a new service provider class
- package:discover: Rebuild the cached package manifest
- vendor:publish: Publish any publishable assets from vendor packages
- view:cache: Compile all of the application's Blade templates
- view:clear: Clear all compiled view files

These additions aim to provide robust tools for WordPress developers to enhance
workflow efficiency and code management.
@withfig-bot
Copy link
Collaborator

withfig-bot commented Sep 5, 2024

Overview

src/node.ts:

Info:

src/wp.ts:

Info:

@withfig-bot
Copy link
Collaborator

Hello @eduwass,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

Improve generateSpec function to check for both .adonisrc.json and adonisrc.ts files. This ensures compatibility with projects using either configuration file.

- Refactor the use of executeShellCommand to check for .adonisrc.json.
- Add a new check for the presence of adonisrc.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants