0.0.3 โ€ข Published 12 months ago

@mo0on/react-library-template v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

React Library Template

This is library template with ReactJS v18, storybook v7, Typescript, SCSS, Rollup.js.

Guide

๐Ÿงฉ Make Your Library Project with this template

Click Use this template button to create new repository using this template Then clone that repository locally

git clone "[github url using this template]"

โš™๏ธ Set Library Info

You can change library information in package.json

{
	"name": "[library name]",
	"author": {
		"name": "[your name]",
		"email": "[your email]"
	},
	"version": "[library version]",
}

โ˜•๏ธ Install Packages

Install related packages.

yarn

๐Ÿ› Customize Your Library

  • working directory : ./src
  • export your components, functions, etc. from ./src/index.ts

๐Ÿงช Test Your Library

You can test your UI components with Storybook

yarn storybook

๐Ÿ”จ Build

Build your library with Rollup.js.

yarn build
  • Your library build file will generate on ./dist

๐ŸŽ‰ Publish Your Library to NPM

npm login
yarn publish --access public
  • Login with your npm account * to create a new account ๐Ÿ‘‰ https://www.npmjs.com/
  • Publish your library When publishing for the first time, the access property must be set to public. The next publication should always be a higher version than the previous publication.
0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.0

12 months ago