Skip to content

Commit b77d26d

Browse files
committed
feat: Initial semi-workable implementation
0 parents  commit b77d26d

30 files changed

+2794
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
[*.md]
17+
trim_trailing_whitespace = false

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/.github export-ignore
2+
/docs export-ignore
3+
/tests export-ignore
4+
/.codeclimate.yml export-ignore
5+
/.editorconfig export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/CHANGELOG.md export-ignore
9+
/CODE_OF_CONDUCT.md export-ignore
10+
/composer.lock export-ignore
11+
/CONTRIBUTING.md export-ignore
12+
/LICENSE export-ignore
13+
/README.md export-ignore
14+
/SECURITY.md export-ignore
15+
/package.json export-ignore
16+
/.phpcs.xml export-ignore
17+
/phpunit.xml export-ignore

.github/workflows/release.yml

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

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
vendor
3+
test.php
4+
php_errors.log
5+
old
6+
.yarn/*
7+
!.yarn/cache
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/sdks
12+
!.yarn/versions

.phpcs.xml

+18
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_supported_wp_version" value="6.4"/>
4+
<config name="testVersion" value="8.1-"/>
5+
6+
<rule ref="Oblak"/>
7+
<rule ref="Oblak-Advanced"/>
8+
9+
<file>src/</file>
10+
11+
<rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing">
12+
<severity>0</severity>
13+
</rule>
14+
15+
<rule ref="Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound">
16+
<severity>0</severity>
17+
</rule>
18+
</ruleset>

.releaserc

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"branches": [
3+
"master",
4+
{
5+
"name": "develop",
6+
"prerelease": true
7+
},
8+
{
9+
"name": "alpha",
10+
"prerelease": true
11+
},
12+
{
13+
"name": "beta",
14+
"prerelease": true
15+
}
16+
],
17+
"plugins": [
18+
"@semantic-release/commit-analyzer",
19+
"@semantic-release/release-notes-generator",
20+
[
21+
"@semantic-release/exec",
22+
{
23+
"prepareCmd": "zip -r '/tmp/release.zip' ./src README.md"
24+
}
25+
],
26+
[
27+
"@semantic-release/github",
28+
{
29+
"assets": [
30+
{
31+
"path": "/tmp/release.zip",
32+
"name": "xwp-asset-loader-${nextRelease.version}.zip",
33+
"label": "xWP Asset Loader v${nextRelease.version}"
34+
}
35+
]
36+
}
37+
]
38+
]
39+
}

CHANGELOG.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
## [3.0.1](https://github.com/oblakstudio/wp-asset-loader/compare/v3.0.0...v3.0.1) (2024-01-04)
2+
3+
4+
### Bug Fixes
5+
6+
* Fixed typo ([e6f0542](https://github.com/oblakstudio/wp-asset-loader/commit/e6f05420b5062edea174126fd7a804d75436faae))
7+
8+
# [3.0.0](https://github.com/oblakstudio/wp-asset-loader/compare/v2.1.0...v3.0.0) (2024-01-04)
9+
10+
11+
### Features
12+
13+
* Improvements and tweaks ([3632fe5](https://github.com/oblakstudio/wp-asset-loader/commit/3632fe5ff4efe14c1ff1865312eaafc7edbf376e))
14+
15+
16+
### BREAKING CHANGES
17+
18+
* Requires PHP 8.0
19+
20+
# [2.1.0](https://github.com/oblakstudio/wp-asset-loader/compare/v2.0.4...v2.1.0) (2023-08-08)
21+
22+
23+
### Features
24+
25+
* Added getter trait ([f2fed4d](https://github.com/oblakstudio/wp-asset-loader/commit/f2fed4dbaebd999726a1e329038d6ee75ed45ab7))
26+
27+
## [2.0.4](https://github.com/oblakstudio/wp-asset-loader/compare/v2.0.3...v2.0.4) (2023-02-03)
28+
29+
30+
### Bug Fixes
31+
32+
* Fixed phpdoc ([617a80f](https://github.com/oblakstudio/wp-asset-loader/commit/617a80f8acd2df9d87268d5673130695d2f8258a))
33+
34+
## [2.0.3](https://github.com/oblakstudio/wp-asset-loader/compare/v2.0.2...v2.0.3) (2022-12-12)
35+
36+
37+
### Bug Fixes
38+
39+
* Fixed manifest URI ([97c93a6](https://github.com/oblakstudio/wp-asset-loader/commit/97c93a68b6301c2be8b2f9d10e0ee8119f2a7f1e))
40+
41+
## [2.0.2](https://github.com/oblakstudio/wp-asset-loader/compare/v2.0.1...v2.0.2) (2022-12-11)
42+
43+
44+
### Bug Fixes
45+
46+
* Fixed basename resolving ([9ebb2fc](https://github.com/oblakstudio/wp-asset-loader/commit/9ebb2fc910b8e500eb9504cb164def9b413845d1))
47+
48+
## [2.0.1](https://github.com/oblakstudio/wp-asset-loader/compare/v2.0.0...v2.0.1) (2022-12-06)
49+
50+
51+
### Bug Fixes
52+
53+
* Fixed loader filters ([26af68c](https://github.com/oblakstudio/wp-asset-loader/commit/26af68c2f9c063d9f1e65c0bcb6943e45e18146e))
54+
55+
# [2.0.0](https://github.com/oblakstudio/asset-loader/compare/v1.2.0...v2.0.0) (2022-12-02)
56+
57+
58+
### Bug Fixes
59+
60+
* **Build:** Fixed build file ([b3fce0c](https://github.com/oblakstudio/asset-loader/commit/b3fce0cc1b6aac5ffc22fc1ba45fd2bac8f67519))
61+
* Fixed gitignore ([07c7ae0](https://github.com/oblakstudio/asset-loader/commit/07c7ae027ccd5b3fde010ec87a7627b40f0cb3f3))
62+
63+
64+
### Features
65+
66+
* Complete rework ([4e0cc16](https://github.com/oblakstudio/asset-loader/commit/4e0cc16430f894e3558266796790deaa01176a6f))
67+
* Complete rework ([37ae307](https://github.com/oblakstudio/asset-loader/commit/37ae3079d3d0b887c98853ec050c3a669c793be2))
68+
69+
70+
### BREAKING CHANGES
71+
72+
* Reworked the entire asset loader
73+
* Reworked the entire asset loader
74+
75+
# [1.2.0](https://github.com/oblakstudio/asset-loader/compare/v1.1.0...v1.2.0) (2021-12-14)
76+
77+
78+
### Features
79+
80+
* Reduced minimum PHP version ([b56467d](https://github.com/oblakstudio/asset-loader/commit/b56467d6e2f54a11581ceab285a9e6fdf7dfd2b8))
81+
82+
# [1.1.0](https://github.com/oblakstudio/asset-loader/compare/v1.0.1...v1.1.0) (2021-06-28)
83+
84+
85+
### Features
86+
87+
* **loader:** Added the ability to dequeue specific assets ([8552e5a](https://github.com/oblakstudio/asset-loader/commit/8552e5a227eac70d1c1e02e1cf419d3d32176b79))
88+
89+
## [1.0.1](https://github.com/oblakstudio/asset-loader/compare/v1.0.0...v1.0.1) (2021-06-14)
90+
91+
92+
### Bug Fixes
93+
94+
* **core:** Fixed a typo on wrong variable being used ([5485317](https://github.com/oblakstudio/asset-loader/commit/54853175d61772b0b27f0b7c2bccf024ae8e738b))
95+
96+
# 1.0.0 (2021-04-20)
97+
98+
99+
### Bug Fixes
100+
101+
* **build:** Fixed yarn caching ([94ac3ec](https://github.com/oblakstudio/asset-loader/commit/94ac3ec52bb9f4e22d4119fbf306a716d9133f13))
102+
* **core:** Fixed package.json ([aa306c2](https://github.com/oblakstudio/asset-loader/commit/aa306c213768743ee1cabbd11653296ee7ba116d))
103+
104+
105+
### Features
106+
107+
* **core:** Initial commit ([d18b37a](https://github.com/oblakstudio/asset-loader/commit/d18b37a4ef76499f6c64adc786738cbf29a19a5c))

CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contribution Guidelines
2+
3+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
4+
5+
## Reporting bugs / Feature requests
6+
7+
If you think you have found a bug, please [open an issue](https://github.com/oblakstudio/wp-asset-loader/issues/new) and provide as much information as possible.
8+
9+
## Contributing
10+
11+
If you would like to contribute code to this project you can do so through GitHub by forking the repository and sending a pull request.
12+
13+
## Coding standards
14+
15+
This project follows the [WordPress Coding Standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/). Pull requests should follow these standards as well, and are run against PHPCS to ensure this.
16+
17+
## Unit tests
18+
19+
This project wants to use [PHPUnit](https://phpunit.de/) for unit testing - but no tests are written so far. If you would like to contribute tests, please do so.
20+
21+
## Commit messages
22+
23+
This project follows the [AngularJS commit message conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit) for commit messages. This gives us more readable history, and easy follow of changes across versions. It also enables automatic versioning and changelog generation.
24+
25+
## Documentation
26+
27+
This project uses [Docsify](https://docsify.js.org/) for documentation. If you would like to contribute to the documentation, please do so.

0 commit comments

Comments
 (0)