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

WIP Bedrock support #31

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from
Draft

WIP Bedrock support #31

wants to merge 15 commits into from

Conversation

dingo-d
Copy link
Owner

@dingo-d dingo-d commented Nov 10, 2023

Description

Added support for Bedrock.

Still a WIP, as I'm still getting some errors when running the tests on Bedrock-type installs.

Also, need to update the changelog.

Closes #30

Checklist:

  • My code is tested.
  • My code follows the code style set by the project.
  • I've included documentation for the changes.

@dingo-d dingo-d self-assigned this Nov 10, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #31 (dbbc031) into develop (b1e8df6) will increase coverage by 0.02%.
The diff coverage is 94.23%.

@@              Coverage Diff              @@
##             develop      #31      +/-   ##
=============================================
+ Coverage      88.70%   88.73%   +0.02%     
- Complexity        44       56      +12     
=============================================
  Files              1        1              
  Lines            186      222      +36     
=============================================
+ Hits             165      197      +32     
- Misses            21       25       +4     
Flag Coverage Δ
unittests 88.73% <94.23%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/Command/InitCommand.php 88.73% <94.23%> (+0.02%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Notice about PHP 7 version was updated, as PHP 8 will be EOL soon.
Still a WIP. Need to fix tests, and test on bedrock projects for plugin and themes, and check if it will work in a regular projects like it did before.
Replace dirname with __FILE__ to __DIR__ and create a separate bootstrap files for bedrock, as the vendor file is usually at the project root, not where the theme or plugin is located.
Adding a required theme slug parameter is a bc change, as the command would fail if we just run it with theme option.
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.

None yet

1 participant