-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Reworked the entire plugin
- Loading branch information
Showing
33 changed files
with
1,791 additions
and
863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# 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 | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.* @seebeen | ||
*.* @oblakbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
name: Build and release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '.wordpress-org/**' | ||
- '.github/workflows/wp-deploy.yml' | ||
- '.github/workflows/wp-assets.yml' | ||
- '.github/scripts/deploy.sh' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.codeclimate.yml' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.4.0 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: 7.4 | ||
version: 2 | ||
dev: no | ||
quiet: yes | ||
args: --optimize-autoloader --classmap-authoritative --prefer-dist | ||
- name: Install Yarn dependencies | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: "yarn build:production" | ||
- 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 run semantic-release | ||
|
||
|
||
name: Build and release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '.wordpress-org/**' | ||
- '.github/workflows/wp-deploy.yml' | ||
- '.github/workflows/wp-assets.yml' | ||
- '.github/scripts/deploy.sh' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.codeclimate.yml' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: 7.3 | ||
version: 2 | ||
dev: no | ||
quiet: yes | ||
args: --optimize-autoloader --classmap-authoritative --prefer-dist | ||
- name: Install Yarn dependencies | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: "yarn build:production" | ||
- 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 run semantic-release | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
.woocommerce-checkout, | ||
.woocommerce-edit-address { | ||
.woocommerce-billing-fields, | ||
.woocommerce-address-fields { | ||
.entity-type-control { | ||
.woocommerce-input-wrapper { | ||
label { | ||
display: inline-block; | ||
margin-right: 10px; | ||
} | ||
} | ||
} | ||
|
||
.hide-if-person { | ||
display: none; | ||
|
||
&.shown { | ||
display: block; | ||
} | ||
} | ||
} | ||
} | ||
.woocommerce-checkout, | ||
.woocommerce-edit-address { | ||
.woocommerce-billing-fields, | ||
.woocommerce-address-fields { | ||
.entity-type-control { | ||
.woocommerce-input-wrapper { | ||
label { | ||
display: inline-block; | ||
margin-right: 10px; | ||
} | ||
|
||
.description { | ||
display: block !important; | ||
} | ||
} | ||
} | ||
|
||
.hide-if-person { | ||
display: none; | ||
|
||
&.shown { | ||
display: block; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,31 @@ | ||
{ | ||
"autoload": { | ||
"psr-4": { | ||
"Oblak\\WCRS\\": "lib/" | ||
} | ||
}, | ||
"require": { | ||
"oblak/serbian-validators": "^1.0", | ||
"oblak/asset-loader": "^1.1" | ||
"autoload": { | ||
"psr-4": { | ||
"Oblak\\WCRS\\": "lib/" | ||
} | ||
}, | ||
"require": { | ||
"oblak/asset-loader": "^1", | ||
"oblak/serbian-validators": "^1.0", | ||
"oblak/wp-plugin-installer": "^1" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", | ||
"wp-coding-standards/wpcs": "*", | ||
"phpcompatibility/phpcompatibility-wp": "*", | ||
"woocommerce/woocommerce-sniffs": "^0.1.2" | ||
}, | ||
"scripts": { | ||
"install-codestandards": [ | ||
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" | ||
], | ||
"post-install-cmd": [ | ||
"@install-codestandards" | ||
] | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
Oops, something went wrong.