atomic-design-button
Version:
Primary Button component using Atomic Design principles
36 lines (28 loc) • 670 B
Markdown
# Atomic Button
React button based in Atomic Design.
## Steps to create a npm package
1. Create component - PrimaryButton.
2. Modify Index.ts exporting that new component.
3. Modify Package.json adding: name, version, description, main, types, files and scripts:build.
4. Modify tsconfig.json (just copy file content)
5. Run following commands.
Install:
```bash
npm install
```
Build:
```bash
npm run build
```
Login to npmjs.com:
```bash
npm login
```
Publish package:
```bash
npm publish --access public
```
6. Check the version and code tab in your library page: https://www.npmjs.com/
## Install in your React project
```bash
npm install atomic-design-button