This is a SDK-react for the BlockAuth project. Library written in javascript to provide a simple way to interact with the Block-Auth authentication service with users extensions, insights, and more.
Use the official documentation at block-auth.io to learn how to use the SDK.
Install dependencies
npm install
CI/CD
npm run ci
Start the development server
npm run dev
After making changes to the code, run the following command to format the code, run the linter, and start the development server:
npm run css && npm run lint && npm run format && npm run dev
Script | Description |
---|---|
dev |
Starts the development server |
css |
Builds the CSS |
css:dev |
Builds the CSS in development mode |
test |
Runs the tests and generates a coverage report |
lint |
Runs the linter |
lint:fix |
Runs the linter and fixes the errors |
format |
Formats the code |
build |
Builds the app for production |
preview |
Builds the app for production and previews it locally |
ci |
Runs the tests, linter, and code formatter |
stories |
Starts the Storybook server |
stories:build |
Builds the Storybook app for production |
docs |
Starts the documentation server |
docs:build |
Builds the documentation app for production |
clean |
Removes dist , dist-stories , dist-docs , package-lock.json , .coverage and node_modules
|
Block-Auth.io Team