1.1.0 • Published 3 years ago

@dotintent/intentbase-ui-auth v1.1.0

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

License CI NPM Bundle Size NPM Downloads semantic-release

Table of Contents

About

UI React components for Log in, Register and Forgot password, to use with auth providers like Cognito

Getting started

Prerequisites

Installation

yarn install

Prepare and fill secrets

Copy and paste .env.example into .env and fill all secrets.

Important Note: AWS secrets must be filled before starting storybook.

SecretDescriptionDefault
NODE_ENVDefine current environment-
AWS_COGNITO_REGIONeu-west-1
AWS_COGNITO_USER_POOL_ID-
AWS_COGNITO_USER_POOL_CLIENT_ID-

Running the app

yarn storybook

Conventional Commits

Commitlint checks if your commit messages meet the conventional commit format.

Example:

feat(blog): add comment section

Common types according to commitlint-config-conventional (based on the Angular convention) can be: conventional-commit-types.

Available scripts

To run script, in terminal type yarn {script}.

ScriptDescriptionNote
prepublishBuilds componentsIt runs automatically before every publish
preinstallChecks is yarn was used package managerIt runs automatically before every install
startStarts app locally
cleanRemoves build directory if it exists
buildBuilds app
serveServes locally app from build directoryBefore serve, run yarn build
testRuns test for utils and helpers
type-checkChecks TypeScript types
format:checkChecks prettier rules
formatFix prettier
lintFix linter
lint:checkChecks linter rules

Publishing

npm publish --access=public

Useful docs

License

Copyright 2020 Intent. Licensed under the MIT license.