1.0.0 • Published 2 years ago

@freakin-ward/kmx-aux-legos-mui v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

kmx-aux-legos-mui


Getting Started

This package has not been published to a repository, yet.

To run locally, this library will need to be linked to the consuming app.

  1. Both projects must live within sibling directories
    1. /dev/kmx-aux-legos-mui
    2. /dev/auctions-checkin-site
  2. Create symlinks for both projects
# link the apps react version
cd /dev/kmx-aux-legos-mui
npm link ../auctions-checkin-site/node_modules/react

# create link for the package
npm link

# link to the library from the site
cd /dev/auctions-checkin-site
npm link kmx-aux-legos-mui

# go back to the library to build
cd /dev/kmx-aux-legos-mui
npm run build
# run within the target project

# https://stackoverflow.com/questions/65259040/react-antd-rollup-component-library-error-invalid-hook-call-hooks-can-onl
npm link node_modules/react

npm link kmx-aux-legos-mui
# run within this project

npm link react

npm run build
npm link
# to unlink, run within the target project
npm unlink kmx-aux-legos-mui
// add to a project

import { Button } from 'kmx-aux-legos-mui';

<Button text="My Button" />