1.0.2 • Published 4 years ago

@roommate/rm-time-utils v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

RoomMate Time Utils

This package want to provide some utility methods to handle time in RoomMate codebase. It has also been the first package to be published on npm @roommate and helped me to understand how package publishing works. There are still things I need to discover.

  • Integrate this package on package.json as dependency
  • Setup this package for CI

Visit RoomMate here

Technologies

Since this will be a small package, I'm using this as a test repository for integration and best practises. These are not limited to:

  • Testing with JEST
  • Format and linting with prettier and tslint
  • Npm versioning and publishing

Install

Simply type

$ npm install

Run

Since it's an utility package, there's nothing to run :)

Versioning

A nice feature of NPM thanks to package.json is to deploy a new version on github when needed.

$ npm version versionnumber

This will run the test, the linter, will update package.json and will publish the commit on github. The presence of git push --tags on the script will publish a release with the package version as a tag.

Deploy

Be sure to be logged in npm to publish in our organization

$ npm adduser

Then publish the package with

$ npm publish
1.0.2

4 years ago

1.0.0

4 years ago