If you wish to contribute to AlloyEditor these guidelines will be important for you. They cover instructions for setup, information on how the repository is organized, as well as contribution requirements.
TBD
TBD
- All pull requests should be sent to the
develop
branch, as themaster
branch should always reflect the most recent release. - Any merged changes will remain in the
develop
branch until the next scheduled release. - The only exception to this rule is for emergency hot fixes, in which case the
pull request can be sent to the
master
branch. - A Github issue should also be created for any bug fix or feature, this helps when generating the CHANGELOG.md file.
- All commits in a given pull request should start with the
Fixes #xxx -
message for traceability purposes.
Any change (be it an improvement, a new feature or a bug fix) needs to include a test, and all tests from the repo need to be passing. To run the tests you can use our npm script:
npm test
This will run the complete test suite on Chrome. For a full test pass, you can
add local browsers to the root karma.js
file and re-run the command.
Additionally, you can also run the test suite via Saucelabs with the following npm script:
npm testSaucelabs
This last command is the one used by our CI integration.
TBD
All methods should be documented, following google's format.
Collaborators with publish permissions should follow these steps.
There are two different workflows for publishing this project, one for scheduled releases, and one for emergency hot fixes.
- Create a release branch from the updated
develop
branch
git checkout develop
git pull upstream develop
git checkout -b release/vX.X.X
-
Send release PR to
master
-
Wait to see that all tests pass and then merge with merge commit
-
Checkout and pull
master
locally
git checkout master && git pull upstream master
- Update npm version
npm version patch|minor|major
- Generate and commit dist files
gulp release
git add .
git commit -m "Build Files (auto-generated)"
- Publish npm modules and push release tags
npm publish
git push && git push --tags
- Generate changelog
github_changelog_generator (https://github.com/skywinder/github-changelog-generator)
- Commit changelog and push to
master
git add CHANGELOG.md
git commit -m "Updates CHANGELOG for vX.X.X"
git push
- Sync
develop
withmaster
git checkout develop
git merge master
- Do GitHub release using the pushed vX.X.X tag and the appropriate portion of CHANGELOG.md
- Create a feature branch from
master
(assuming hot fix has already been merged)
git checkout master
git pull upstream master
git checkout -b feature/fix_foo
-
Send a fix PR to
master
-
Follow steps 3-11 of a scheduled release
-
Open your favourite browser and navigate to https://ckeditor.com/cke4/builder.
-
On this page you should see a button labelled "Upload build-config.js", click it:
This will open a file dialog letting you choose CKEditor's build configuration file:
This file is located in
lib/ckeditor/build-config.js
, select it to upload it. -
Optionally if you want to add more plugins, scroll down and you should see two panels:
On the left you'll see the list of selected plugins (automatically detected by parsing the
build-config.js
file uploaded previously) and on the right a list of the available plugins. Click on the plugins you wish to add and on the left arrow button ("<"), this will add the new plugins into the "selected plugins" panel. -
Finally, scroll to the bottom of the page, agree to the terms of use and click the "Download CKEditor" button.
-
Once the file downloaded, unzip it and replace the
lib/ckeditor
directory with the new directory you unzipped. -
Run
gulp release
and have a look at the demo to make sure everything is working correctly.