retrosockets-ui-utils v0.1.0
Component Library Starter
a library of common utils for RetroSockets
Installation
This package is available on npm as retrosockets-ui-utils, and you can find it here.
To install the latest stable version with yarn:
$ yarn add retrosockets-ui-utilsor with npm:
$ npm install retrosockets-ui-utils --saveUp & Running
To install dependencies with Yarn, run:
$ yarnor to install with npm, run:
$ npm installLocal Development
Module Development Workflow
Helpful information on development workflow in this library lives here.
Linting
This assumes you have eslint and eslint-watch installed. If you don't, run the following:
$ npm i -g eslint eslint-watchor if you need permissions:
$ sudo npm i -g eslint eslint-watchTo run the linter once:
$ yarn lintTo run the watch task:
$ yarn lint:watchReview
If you'd like to run the linters and tests at once (this is a nice check before pushing to Github or deploys), you can run:
$ npm run reviewBuild
NOTE: When you run build, Babel will create a build directory. This is what your users
will interact with when they use your library. Nothing in lib gets shipped with your
published module.
Run once:
$ npm run buildRun the watch script:
$ npm run build:watchNOTE: the build script runs in the prepublish script just before you publish to npm.
Publishing
If you already have an account with npm, you can simply run:
$ npm login
$ npm publishIf you don't have an account with npm:
NOTE: Your email address is public
$ npm set init.author.name "Your Name"
$ npm set init.author.email "you@example.com"
$ npm set init.author.url "http://yourblog.com"
$ npm adduser
$ npm publishContributing
I am thankful for any contributions made by the community. By contributing you agree to abide by the Code of Conduct in the Contributing Guidelines.
License
8 years ago