Clone the repository from GitHub.
$ git clone https://github.com/github/time-elements
Now just cd into the directory and run make to install the development dependencies.
$ cd time-elements/
$ make
Lint tools and headless tests can be ran via make.
$ make test
The QUnit test suite can also be ran in the browser.
$ open test/test.html
To publish a new version to npm, create a GitHub release with the new version tag. If the tag does not exist yet, create it from the release page while creating the release.
Publishing the release automatically triggers the Publish workflow, which tests the package and publishes the tagged version to npm.