Skip to content

Commit

Permalink
Establish quality standards (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion authored Aug 18, 2023
2 parents 26a63ef + b862997 commit 88eb0ed
Show file tree
Hide file tree
Showing 34 changed files with 2,293 additions and 446 deletions.
12 changes: 6 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{.jshintrc,*.json,*.yml}]
[*.md]
trim_trailing_whitespace = false

[{*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
13 changes: 13 additions & 0 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build, test & measure

on:
workflow_call:
pull_request:
push:
branches:
['main']

jobs:
call-workflow-build-test-measure:
uses: figuren-theater/code-quality/.github/workflows/build-test-measure.yml@main
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/ft-issue-gardening.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Issue gardening for figuren.theater

on:
issues:
types:
- opened
jobs:
call-workflow-ft-issue-gardening:
uses: figuren-theater/.github/.github/workflows/issue-gardening.yml@main
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/prerelease-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'pre-Release Changelog Update'

on:
workflow_call:
release:
types: [prereleased]

jobs:
call-workflow-update-changelog:
uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@main
secrets: inherit

19 changes: 19 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Draft or update the next release

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

jobs:
call-workflow-release-drafter:
uses: figuren-theater/.github/.github/workflows/release-drafter.yml@main
secrets: inherit
25 changes: 18 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
.DS_Store
phpcs.xml
phpunit.xml
Thumbs.db
wp-cli.local.yml
node_modules/
/build/
/node_modules
/vendor
*.sql
*.tar.gz
*.zip
/wiki
.vscode

# Generated via bin/transform-readme.php
/readme.txt
/.wp-env.override.json

# misc
.DS_Store
Thumbs.db

/vendor/
# is created during composer install,
# when package is tested
# and not running within ft-platform
/wp-content/
/wordpress/
33 changes: 33 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<ruleset name="ft-site-editing">
<description>Coding standards for ft-site-editing</description>

<file>.</file>

<!--
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern> -->

<!--
is created during composer install,
when package is tested
and not running within ft-platform
-->
<exclude-pattern>*/wp-content/*</exclude-pattern>
<exclude-pattern>*/wordpress/*</exclude-pattern>

<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />

<!-- Allow to use text-domain strings from required plugins -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="figurentheater"/>
<element value="image-source-control-isc"/>
</property>
</properties>
</rule>

</ruleset>
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased](https://github.com/figuren-theater/ft-site-editing/compare/1.2.2...HEAD)



34 changes: 13 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,24 @@
</p>
</div>

## About
## About


This is the long desc

* [x] *list closed tracking-issues or `docs` files here*
* [ ] Do you have any [ideas](/issues/new) ?
* [ ] Do you have any [ideas](https://github.com/figuren-theater/ft-site-editing/issues/new) ?

## Background & Motivation

...

## Install

1. Add this repository to your `composer.json`
```json
"repositories": [
{
"type": "git",
"url": "https://github.com/figuren-theater/ft-site-editing"
}
]
```

2. Install via command line
```sh
composer require figuren-theater/ft-site-editing
```
1. Install via command line
```sh
composer require figuren-theater/ft-site-editing
```

## Usage

Expand All @@ -60,7 +50,7 @@ Figuren_Theater::API\get_...()

## Plugins included

This package contains the following plugins.
This package contains the following plugins.
Thoose are completely managed by code and lack of their typical UI.

* [Abbreviation Button for the Block Editor](https://wordpress.org/plugins/abbreviation-button-for-the-block-editor/#developers)
Expand All @@ -85,7 +75,7 @@ Thoose are completely managed by code and lack of their typical UI.
* [figuren-theater/ft-network-block-patterns](https://github.com/figuren-theater/ft-network-block-patterns)
Replaces block-patterns taken from themes with customized versions for the figuren.theater WordPress multisite network.
* [carstingaxion/cbstdsys-post-subtitle](https://github.com/carstingaxion/cbstdsys-post-subtitle)
WordPress block to show and style a semantic subtitle.
WordPress block to show and style a semantic subtitle.


### as a --dev dependency
Expand All @@ -97,6 +87,8 @@ Thoose are completely managed by code and lack of their typical UI.
## Built with & uses

- [dependabot](/.github/dependabot.yml)
- [code-quality](https://github.com/figuren-theater/code-quality/)
A set of status checks to ensure high and consitent code-quality for the figuren.theater platform.
- ....

## Contributing
Expand All @@ -116,18 +108,18 @@ Don't forget to give the project a star! Thanks again!
## Versioning

We use [Semantic Versioning](http://semver.org/) for versioning. For the versions
available, see the [tags on this repository](/tags).
available, see the [tags on this repository](https://github.com/figuren-theater/ft-site-editing/tags).

## Authors

- **Carsten Bach** - *Provided idea & code* - [figuren.theater/crew](https://figuren.theater/crew/)

See also the list of [contributors](/contributors)
See also the list of [contributors](https://github.com/figuren-theater/ft-site-editing/contributors)
who participated in this project.

## License

This project is licensed under the [GPL-3.0-or-later](LICENSE.md), see the [LICENSE](LICENSE) file for
This project is licensed under the **GPL-3.0-or-later**, see the [LICENSE](/LICENSE) file for
details

## Acknowledgments
Expand Down
Loading

0 comments on commit 88eb0ed

Please sign in to comment.