-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add backstage configuration and update relevant documentation.
- Loading branch information
1 parent
0d841d5
commit fc7ef7f
Showing
6 changed files
with
133 additions
and
24 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: nuk-wp-phpcs-config | ||
description: PHPCS configuration for WordPress VIP plugins and themes. | ||
tags: | ||
- wordpress | ||
- phpcs | ||
- php | ||
- coding-standards | ||
- bu:newsuk | ||
annotations: | ||
circleci.com/project-slug: github/newsuk/nuk-wp-phpcs-config | ||
jira/project-key: CPNT | ||
spec: | ||
type: library | ||
lifecycle: development | ||
owner: group:newsuk |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Contributing | ||
|
||
This package is maintained by the Times CMS team. | ||
|
||
## Code Contribution | ||
|
||
Developers from outside the team are encouraged to contribute back to this package as part of fix and feature requests. In doing so, developers should ensure their changes adhere to established naming conventions within the package. | ||
|
||
## Branching | ||
|
||
The `main` branch is the source of truth for the repo. Example: `feat/JIRA-ID-magic-wand` branch should be cut from `main` and used as the base for any development work. Feature and fix branches should be cut from the `main` branch, and follow the `feat/JIRA-ID-*`, `fix/JIRA-ID-*` naming convention. Pull requests for these branches should be targeted at the `main` branch. The branching strategy and the release process is documented [here](https://nidigitalsolutions.jira.com/wiki/spaces/NCP/pages/2329149445/Branching+and+Deployment). | ||
|
||
## Commit Messages | ||
|
||
Commit messages should follow the Conventional Commits spec, `type(issue-ref): description` | ||
|
||
For example, a feature update for issue CPNT-123 that adds a new text box might have a commit message like "feat(CPNT-123): add new text box" |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Getting Started | ||
|
||
This reference is intended for developers prior to starting work on this package. | ||
|
||
## Development Tools | ||
|
||
Developers should have the following installed at a minimum: | ||
|
||
- Git | ||
- PHP | ||
- Composer | ||
|
||
## Branching and Release | ||
|
||
Please review the documentation about tagging and release process be found in the [README](../README.md#tagging-and-releasing) prior to starting development. More details on branching can be found in [CONTRIBUTING](./CONTRIBUTING.md#branching). | ||
|
||
## File Structure | ||
|
||
PHP: PHP files should primarily be organized in the top-level `inc` directory. | ||
|
||
JavaScript: JS files should be organized in the top-level `src` directory. | ||
|
||
## Additional Support | ||
|
||
Further questions can be directed to the Times CMS team in the [`#tm-timescms-team` Slack channel](https://newscorp.enterprise.slack.com/archives/C03JD1PU44B). | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Help Wanted | ||
|
||
This file should contain any TODO items for the project with which the Times CMS team would appreciate assistance. |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Package Extensibility | ||
|
||
This package provides many ways for developers to customise the behaviour. | ||
|
||
## Ruleset overriding and adding custom rules | ||
|
||
You can also override or add custom rules to the config as follows. | ||
|
||
```xml | ||
<?xml version="1.0"?> | ||
<ruleset name="NewsUK WP PHPCS Rules"> | ||
<rule ref="NewsUK"/> | ||
<!-- Overriding the existing text_domain --> | ||
<rule ref="WordPress.WP.I18n"> | ||
<properties> | ||
<property name="text_domain" type="array"> | ||
<element value="your_plugin_domain"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
</ruleset> | ||
``` |