@anastshak/custom-components-lib
v1.5.0
Published
Innowise Lab Internship: Custom components lib
Readme
custom-components-lib
Task
Innowise Lab Internship: Custom-components-lib
The essence of the application is to create your own component library and publish it as an NPM package. |
Суть приложения: создание собственной библиотеки компонентов и публикация ее, как NPM пакет.
Technologies used
- webpack
- react
- typescript
- eslint, prettier, husky
- jest, react testing library
- storybook
How to run the app
- Clone this repository
git clone https://github.com/anastshak/custom-components-lib.git- Install dependencies
npm installHow to use the library
Create a react app (template)
Install the library (link to npm package)
npm i @anastshak/custom-components-lib- Example of using a component from the library:
import React from "react";
import { Button } from "@anastshak/custom-components-lib";
export const App = () => {
return <Button variant="contained" size="small">Click me</Button>;
};Useful scripts
- For component preview:
npm run storybook- For identifying coding style issues and potential errors:
npm run lint- For fixing errors:
npm run lint:fix- For checking coding style issues:
npm run prettier- For code formatting and ensuring uniform code style:
npm run format:fix- For testing:
npm run test