We use semantic versioning.
A commit that changes the public API of the SDK must come with a changelog entry and an update to the API documentation. The entry in the changelog should follow the “Keep a Changelog” format.
For additions the API documentation must end with “In upcoming release”. If a new version, say v1.2.3, is released this must be changed to “Since v1.2.3” in the release commit.
For API changes the documentation must end with “Changed in upcoming release”. If a new version, say v1.2.3, is released this must be changed to “Changed in v1.2.3” in the release commit.
We use Stylus to build the stylessheets from lib/styles
. The task make styles
will create dist/cf-widget-api.css
.
We also use KSS to turn comments in the style files into a styleguide. You
can build the styleguide with make styleguide
which will create HTML files in
dist/styleguide
.
We use Github Pages to distribute the styleguide from the ./docs
folder.
If you make any changes to the stylesheets run make build-pages
to
update the ./docs
directory and add it to your commit.
For backwards compatibility we also distribute the code and styles for v2.1.0
from Github Pages. These are not updated automatically anymore since we use
unpkg.com
.
- Add new release to changelog by renaming “Upcoming” to “v1.2.3”.
- Update API documentation for added methods to include the version they were added in (e.g. “Since v1.2.3”, “Changed in v1.2.3”)
- Update the version in
package.json
. - Update the [
files
][npm-files] property inpackage.json
if necessary. - Commit to master.
- Tag commit as
vX.Y.Z
and push tag to GitHub - Publish new version of package on
npm