Skip to content

Commit

Permalink
feat: Reimplemented Core
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Uses WP-Hook-DI
  • Loading branch information
seebeen committed Jan 13, 2024
1 parent e6b78d3 commit c7dd24d
Show file tree
Hide file tree
Showing 14 changed files with 449 additions and 5,983 deletions.
2 changes: 0 additions & 2 deletions .github/CODEOWNERS

This file was deleted.

8 changes: 0 additions & 8 deletions .github/scripts/release.sh

This file was deleted.

33 changes: 10 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Release
on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -9,30 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.OBLAK_BOT_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
- name: Publish a composer package
uses: better-php-actions/publish-composer-package@v1
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM dependencies
run: npm install
- name: Release
env:
GIT_AUTHOR_NAME: "oblakbot"
GIT_AUTHOR_EMAIL: "sibin.grasic+bot@oblak.studio"
GIT_COMMITTER_NAME: "oblakbot"
GIT_COMMITTER_EMAIL: "sibin.grasic+bot@oblak.studio"
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }}
run: npm run semantic-release
package_slug: "extremis-core"
package_name: "Extremis Core"
with_gpg: true
gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
59 changes: 6 additions & 53 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,57 +1,10 @@
<?xml version="1.0"?>
<ruleset name="WordPress Plugin">
<config name="minimum_supported_wp_version" value="6.0" />
<config name="testVersion" value="8.0-"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress-Core">
<!-- a couple of excldes since I dont want any issues with composer packages -->
<!-- <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen"/> -->
<!-- <exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" /> -->
<!-- <exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis" /> -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<rule ref="WordPress-Docs">
<type>warning</type>
</rule>
<rule ref="WordPress-Extra" />
<!-- <rule ref="VariableAnalysis" /> -->
<rule ref="WordPress.WP.I18n">
<properties>
<!-- CONFIGURE HERE YOUR text-domain -->
<property name="text_domain" type="array" value="" />
</properties>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode.Found">
<severity>0</severity>
</rule>
<ruleset name="WordPress Theme">
<config name="minimum_supported_wp_version" value="6.0"/>
<config name="testVersion" value="8.0-"/>

<rule ref="Oblak"/>
<rule ref="Oblak-Advanced"/>


<!-- CONFIGURE HERE THE PATHS YOU WANT TO CHECK -->
<file>src</file>

<!-- Show sniff codes in all reports -->
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="parallel" value="8"/> <!-- Enables parallel processing when available for faster results. -->
<arg name="colors"/>
<arg name="extensions" value="php"/>

<!-- Configure here the paths you want to IGNORE -->
<exclude-pattern>/docker/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>

<rule ref="WordPress">
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
</rule>

<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
<file>src/</file>
</ruleset>
44 changes: 0 additions & 44 deletions .releaserc

This file was deleted.

Binary file removed .yarn/install-state.gz
Binary file not shown.
874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

8 changes: 0 additions & 8 deletions build/release.sh

This file was deleted.

13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@
},
"require": {
"php": ">=8.0",
"oblak/wp-asset-loader": "^2.0.0"
"oblak/wp-asset-loader": "^3.0.0",
"oblak/wp-hook-di": "^1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.*",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"wp-coding-standards/wpcs": "^2",
"phpcompatibility/phpcompatibility-wp": "^2"
"oblak/wordpress-coding-standard": "^1.0.1"
},
"suggest": {
"oblak/composer-autoconstructor-plugin": "Automatically construct theme classes"
"oblak/composer-wp-di-finder-plugin": "Automatically find Hookable classes"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"oblak/composer-wp-di-finder-plugin": true
}
}
}
Loading

0 comments on commit c7dd24d

Please sign in to comment.