Skip to content

Commit

Permalink
feat: Improvements and tweaks
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires PHP 8.0
  • Loading branch information
seebeen committed Jan 4, 2024
1 parent f2fed4d commit 3632fe5
Show file tree
Hide file tree
Showing 16 changed files with 386 additions and 5,518 deletions.
9 changes: 0 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,5 @@ insert_final_newline = true
[*.php]
indent_size = 4

[*.scss]
indent_size = 2

[*.js]
indent_size = 2

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

[*.md]
trim_trailing_whitespace = false
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
/.yarnrc.yml export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/LICENSE export-ignore
/README.md export-ignore
/SECURITY.md export-ignore
/package.json export-ignore
/yarn.lock export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore

/yarn.lock export-ignore
13 changes: 0 additions & 13 deletions .github/scripts/release.sh

This file was deleted.

39 changes: 11 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,25 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- master
paths:
- '.github/**'
- 'src/**'
- '.releaserc'
- 'composer.lock'
- 'composer.json'
- 'package.json'
- 'yarn.lock'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
token: ${{ secrets.OBLAK_BOT_TOKEN }}
- name: Publish a composer package
uses: better-php-actions/publish-composer-package@v1
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'
GH_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release

package_slug: "wp-asset-loader"
package_name: "WP Asset Loader"
with_gpg: true
gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
22 changes: 0 additions & 22 deletions .releaserc

This file was deleted.

Binary file removed .yarn/install-state.gz
Binary file not shown.
828 changes: 0 additions & 828 deletions .yarn/releases/yarn-4.0.0-rc.32.cjs

This file was deleted.

8 changes: 0 additions & 8 deletions .yarnrc.yml

This file was deleted.

55 changes: 25 additions & 30 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
{
"name": "oblak/wp-asset-loader",
"description": "Simple Asset Loader for WordPress",
"license": "GPL-2.0-only",
"version": "2.0.4",
"autoload": {
"psr-4": {
"Oblak\\WP\\": "src"
}
},
"require": {
"php": ">=7.3"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/phpcompatibility-wp": "*"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"post-install-cmd": [
"@install-codestandards"
]
"name": "oblak/wp-asset-loader",
"description": "Simple Asset Loader for WordPress",
"license": "GPL-2.0-only",
"version": "2.0.4",
"autoload": {
"psr-4": {
"Oblak\\WP\\": "src"
}
},
"require": {
"php": ">=8.0"
},
"require-dev": {
"oblak/wordpress-coding-standard": "^1"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
},
"config": {
"classmap-authoritative": true,
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit 3632fe5

Please sign in to comment.