Skip to content

Commit 2d76792

Browse files
committed
feat: Initial commit
0 parents  commit 2d76792

File tree

16 files changed

+1614
-0
lines changed

16 files changed

+1614
-0
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.php]
14+
indent_size = 4
15+
16+
[*.scss]
17+
indent_size = 2
18+
19+
[*.js]
20+
indent_size = 2
21+
22+
[*.md]
23+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.github export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.releaserc export-ignore
5+
/composer.lock

.github/renovate.json

Whitespace-only changes.

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
- alpha
8+
- beta
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
token: ${{ secrets.OBLAKBOT_PAT }}
20+
- name: Import GPG key
21+
uses: crazy-max/ghaction-import-gpg@v6
22+
id: gpg
23+
with:
24+
gpg_private_key: ${{ secrets.OBLAKBOT_GPG_KEY }}
25+
passphrase: ${{ secrets.OBLAKBOT_GPG_PASS }}
26+
git_config_global: true
27+
git_user_signingkey: true
28+
git_commit_gpgsign: true
29+
- name: Semantic Release
30+
uses: cycjimmy/semantic-release-action@v4
31+
with:
32+
extra_plugins: |
33+
@semantic-release/github
34+
@semantic-release/exec
35+
env:
36+
GIT_AUTHOR_NAME: ${{ steps.gpg.outputs.name}}
37+
GIT_AUTHOR_EMAIL: ${{ steps.gpg.outputs.email}}
38+
GIT_COMMITTER_NAME: ${{ steps.gpg.outputs.name}}
39+
GIT_COMMITTER_EMAIL: ${{ steps.gpg.outputs.email}}
40+
GITHUB_TOKEN: ${{ secrets.OBLAKBOT_PAT }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
composer.lock
2+
vendor
3+
phpcs.xml
4+
!/phpcs.xml
5+
/test.php

.releaserc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"branches": [
3+
"master",
4+
{
5+
"name": "beta",
6+
"prerelease": true
7+
}
8+
],
9+
"plugins": [
10+
"@semantic-release/commit-analyzer",
11+
"@semantic-release/release-notes-generator",
12+
[
13+
"@semantic-release/exec",
14+
{
15+
"prepareCmd": "zip -r '/tmp/release.zip' ./src README.md"
16+
}
17+
],
18+
[
19+
"@semantic-release/github",
20+
{
21+
"assets": [
22+
{
23+
"path": "/tmp/release.zip",
24+
"name": "xwp-hook-invoker-${nextRelease.version}.zip",
25+
"label": "xWP Hook Invoker v${nextRelease.version}"
26+
}
27+
]
28+
}
29+
]
30+
]
31+
}

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Whitespace-only changes.

composer.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "x-wp/wc-settings-api",
3+
"description": "Collection of various helper components used by xWP packages",
4+
"license": "GPL-2.0-only",
5+
"type": "library",
6+
"keywords": [
7+
"Utilities",
8+
"classes",
9+
"decoupling",
10+
"interfaces",
11+
"interoperability",
12+
"standards",
13+
"extended-wp",
14+
"woocommerce",
15+
"config-service"
16+
],
17+
"authors": [
18+
{
19+
"name": "Sibin Grasic",
20+
"email": "[email protected]"
21+
}
22+
],
23+
"require": {
24+
"php": ">=8.0",
25+
"x-wp/helper-functions": "^1.15",
26+
"x-wp/helper-traits": "^1.15"
27+
},
28+
"require-dev": {
29+
"oblak/wordpress-coding-standard": "^1",
30+
"php-stubs/woocommerce-stubs": "^9.0",
31+
"php-stubs/wordpress-stubs": "^6.5",
32+
"phpstan/extension-installer": "^1.3",
33+
"phpstan/phpstan": "^1.10",
34+
"phpstan/phpstan-deprecation-rules": "^1.1",
35+
"swissspidy/phpstan-no-private": "^0.2.0",
36+
"szepeviktor/phpstan-wordpress": "^1.3",
37+
"automattic/jetpack-constants": "^2.0"
38+
},
39+
"suggest": {
40+
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
41+
},
42+
"autoload": {
43+
"psr-4": {
44+
"XWC\\": "src/"
45+
},
46+
"files": [
47+
"src/Functions/xwc-settings-init.php"
48+
],
49+
"classmap": [
50+
"src/Core"
51+
]
52+
},
53+
"config": {
54+
"allow-plugins": {
55+
"dealerdirect/phpcodesniffer-composer-installer": true,
56+
"phpstan/extension-installer": true
57+
},
58+
"platform": {
59+
"php": "8.0"
60+
}
61+
}
62+
}

phpcs.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WordPress Module">
3+
<config name="minimum_wp_version" value="6.4"/>
4+
<config name="testVersion" value="8.0-"/>
5+
6+
<rule ref="Oblak"/>
7+
<rule ref="Oblak-Advanced"/>
8+
9+
<rule ref="Squiz.Commenting.FunctionComment.IncorrectTypeHint">
10+
<severity>0</severity>
11+
</rule>
12+
13+
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
14+
<severity>0</severity>
15+
</rule>
16+
17+
<file>./</file>
18+
</ruleset>

0 commit comments

Comments
 (0)