36 lines
1.5 KiB
Markdown
36 lines
1.5 KiB
Markdown
# Connector for Mobilizon
|
|
|
|
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.
|
|
|
|
More details can be found in the [WordPress Plugin Directory](https://wordpress.org/plugins/connector-mobilizon/).
|
|
|
|
## Development
|
|
|
|
### Setup
|
|
1. Make sure `npm` and `composer` are installed.
|
|
2. Run: `npm install`
|
|
3. Run: `php composer.phar install`
|
|
|
|
### Development build
|
|
1. Build: `npm run build-dev`
|
|
2. Make sure to keep `changelog.txt` up-to-date.
|
|
|
|
### Release procedure
|
|
1. Make sure `changelog.txt` is up-to-date. Use a new version number and copy over the new section into `readme.txt`.
|
|
2. Update `package.json` with the same version number.
|
|
3. Update the `package-lock.json`: `npm i --package-lock-only`
|
|
4. Build: `npm run build-prod`
|
|
5. Determine minimum PHP version for code and update package.json if needed: `./vendor/bin/phpcompatinfo analyser:run ./source`
|
|
6. Make sure screenshots are up-to-date.
|
|
7. Copy the built plugin into `/trunk` of SVN.
|
|
8. Create a new tag of the new version: `svn cp trunk tags/<version>`
|
|
9. Check the version number occurences in both folders.
|
|
10. Commit everything together to the release SVN: `svn ci -m "release version <version>"`
|
|
11. Commit and tag the new version in `git` too.
|
|
|
|
### Other commands
|
|
- Run ESLint: `npm run eslint`
|
|
- Run JavaScript code coverage with tests: `npm run coverage`
|
|
- Run tests: `npm test`
|
|
- Delete build folder: `gulp clean`
|