@odecloud/helpers
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Official Site of @odecloud/helpers

pipeline statusLicense: MIT

Summary

Package contain helper functions currently utilized by a varieties of apps developed @odecloud.

Requirements

The package currently depend on these versions of Node and NPM.

$ node --version
v0.10.24

$ npm --version
v1.3.21

Installation

Make you are currently in a Node project that contains a valid package.json file. Run the following below to download the package.

npm install @odecloud/helpers

Usage Example

The example below assumes that your current project is using the latest ES6.

import { capitalizeFirstLetter } from '@odecloud/helpers';

capitalizeFirstLetter('test'); // => 'Test'

Local Testing/Development

You can download the package locally to your machine using:

$ git clone https://gitlab.com/odetech/helpers.git @odecloud/helpers

Publishing to NPM

  1. On the root of the directory, open up package.json
  2. Bump the version by the following guideline:
    • Our version numbering follows Major.Minor.Patch (e.g. v2.10.1)
      • Major: Stable release.
      • Minor: Incremental changes--including new functions, remove functions, or change of behavior of functions.
      • Patch: Small efficient changes--including a fixed to a bug.
    • Note: in regards to Patch if the old functionality was always erroneous, then it will be considered a Patch.
  3. Publish a new tag on the repository by going to https://gitlab.com/odetech/helpers/-/tags/new.
    • Note: make sure that the "Tag Name" is an exact match to the version inside package.json on step #2.
    • In regards to the "Release notes": we encourage detail and consistent format in order for other developers to understand the new version update.

Commands

  • npm test - Run tests with linting and coverage results.
  • npm type-check - TypeScript checking
  • type-check:watch - TypeScript checking and watching
  • npm run build - Babel will transpile ES6 and TypeScript => ES5 and minify the code.

License

MIT © OdeCloud, Inc

Readme

Keywords

none

Package Sidebar

Install

npm i @odecloud/helpers

Weekly Downloads

19

Version

0.1.0

License

ISC

Unpacked Size

36.4 kB

Total Files

29

Last publish

Collaborators

  • lekosfmi