npm.io
1.0.2 • Published 5 years ago

@roommate/rm-time-utils

Licence
ISC
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0

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