connector-wordpress/README.md

53 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2021-01-09 20:34:36 +01:00
# Connector for Mobilizon
2021-01-08 14:08:40 +01:00
2021-04-05 17:18:02 +02:00
Connector for Mobilizon allows you to display the upcoming events of [Mobilizon](https://joinmobilizon.org/), which is a federated event listing platform, on your WordPress website.
2021-03-28 22:21:09 +02:00
More details can be found in the [WordPress Plugin Directory](https://wordpress.org/plugins/connector-mobilizon/).
2022-06-09 20:24:04 +02:00
The current changelog can be found under [source/changelog.txt](source/changelog.txt).
2022-01-09 12:58:27 +01:00
2021-01-08 14:08:40 +01:00
## Development
### Setup
2021-12-09 19:46:19 +01:00
2021-01-08 14:08:40 +01:00
1. Make sure `npm` and `composer` are installed.
2. Run: `npm install`
2021-08-26 22:30:43 +02:00
3. Run: `composer install`
2021-01-08 14:08:40 +01:00
### Development build
2021-12-09 19:46:19 +01:00
2021-01-08 14:08:40 +01:00
1. Build: `npm run build-dev`
2. Make sure to keep `changelog.txt` up-to-date.
2021-01-08 14:08:40 +01:00
### Release procedure
2021-12-09 19:46:19 +01:00
1. Make sure `changelog.txt` is up-to-date.
2024-04-06 08:27:24 +02:00
2. Create a new section with a new version number.
3. Copy over the new section into `readme.txt`.
4. Update `package.json` with the same version number.
5. Update the `package-lock.json`: `npm i --package-lock-only`
6. Build: `npm run build-prod`
7. Make sure screenshots are up-to-date.
8. Copy the built plugin into `/trunk` of SVN.
9. Create a new tag of the new version: `svn cp trunk tags/<version>`
10. Check the version number occurrences in both folders.
11. Make sure to handle exclamation and question marks in `svn status`.
12. Commit everything together to the release SVN: `svn ci -m "release version <version>"`
13. Commit the new version in git with the same message.
14. Tag the new version: `git tag v<version>`
15. Push the new tag to the repository: `git push --tags`
16. Append `-next` to the version number in `package.json`.
17. Update the `package-lock.json`: `npm i --package-lock-only`
18. Commit: `git commit -am "prepare next release"`
2021-01-08 14:08:40 +01:00
### Other commands
2021-12-09 19:46:19 +01:00
2021-04-05 17:53:47 +02:00
- Run ESLint: `npm run eslint`
2021-04-09 13:08:29 +02:00
- Run JavaScript code coverage with tests: `npm run coverage`
2021-01-08 14:08:40 +01:00
- Run tests: `npm test`
- Delete build folder: `npm run clean`
2021-08-26 22:30:43 +02:00
- Update PHP dependencies: `composer update`
- Check for direct PHP dependency updates: `composer outdated --direct`
2021-12-09 19:46:19 +01:00
- Format code with prettier: `npm run format`
2024-04-05 23:26:11 +02:00
- Generate `vendor/autoload.php` file after creating new class: `composer dump-autoload`