feat: Initial commit

This commit is contained in:
Sibin Grasic 2022-10-23 17:52:37 +02:00
commit c503ec5635
477 changed files with 6947 additions and 0 deletions

23
.editorconfig Normal file
View file

@ -0,0 +1,23 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.php]
indent_size = 4

[*.scss]
indent_size = 2

[*.js]
indent_size = 2

[{composer.json,package.json}]
indent_size = 4

15
.gitattributes vendored Normal file
View file

@ -0,0 +1,15 @@
/.github export-ignore
.yarn export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.releaserc export-ignore
/.yarnrc.yml export-ignore
/CHANGELOG.md export-ignore
/LICENSE export-ignore
/README.md export-ignore
/package.json export-ignore
/yarn.lock export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore

8
.github/scripts/release.sh vendored Normal file
View file

@ -0,0 +1,8 @@
#/bin/bash

NEXT_VERSION=$1
CURRENT_VERSION=$(cat composer.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')

sed -i "s/\"version\": \"$CURRENT_VERSION\"/\"version\": \"$NEXT_VERSION\"/g" composer.json

zip -r /tmp/release.zip composer.json composer.lock README.md CHANGELOG.md src templates

30
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.5.0
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3.5.0
with:
node-version: 16
cache: yarn
- name: Install Yarn dependencies
run: yarn 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: yarn release

12
.gitignore vendored Normal file
View file

@ -0,0 +1,12 @@
node_modules
vendor
test.php
php_errors.log

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

24
.releaserc Normal file
View file

@ -0,0 +1,24 @@
{
"branches": ["master", "next"],
"plugins": [
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"prepareCmd": "sh ./.github/scripts/release.sh ${nextRelease.version}"
}],
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "composer.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
["@semantic-release/github", {
"assets": [{
"path": "/tmp/release.zip",
"name": "wp-plugin-installer-${nextRelease.version}.zip",
"label": "Version ${nextRelease.version}"
}]
}]
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more