0.0.3 • Published 6 months ago

@ehubbell/utils v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Overview

A lightweight vite-based NPM package starter.

Installation

npm install @ehubbell/adapters

Usage

import React from 'react';

import { H6 } from '@ehubbell/html';
import { formatDate } from '@ehubbell/utils';

const FormattedDate = ({ date }) => <H6>{formatDate(date, 'DDDD, MO, YYYY @ HH:MMa')}</H6>;

export { FormattedDate };

Development

This project uses yalc for local development.

  • npm run dev
  • switch to project
  • npx yalc add @ehubbell/utils
  • After that, this library should hot reload into the consuming application

Scripts

  • We've included a couple of helpful scripts for faster development.
  • deploy: npm run deploy -- 'commit message'
  • publish: npm run publish -- 'commit message' [major|minor|patch]

Husky

  • Husky configuration is setup to lint and format the repo on every commit
  • Edit the .husky/pre-commit file to change your settings

Author

Notes

To see this library in action, checkout the following projects:

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago