0.0.8 • Published 3 years ago
av-ui-library-test v0.0.8
Assembly Voting UI Library
TO-DO
Description...
Setup
npm i npm-package-nameyarn add npm-package-name
Importing library as a plugin
In the main file:
import * as UILibrary from "npm-package-name"; // Imports components
import "npm-package-name/styles"; // Imports styles
const app = createApp(App);
app.use(UILibrary.default); // Plugin-in the library
app.mount("#app");Importing components individually
In the file you want to use it:
import { ComponentName } from 'npm-package-name'
<component-name />Project Setup
yarnCompile and Hot-Reload for Development
yarn devType-Check, Compile and Minify for Production
yarn buildRun Unit Tests with Vitest
yarn testLint with ESLint
yarn lintStart Storybook for Development
yarn storybookCompile Storybook for Production
yarn build-storybookCreating new components
Remember to include them on the component index at:
@app/src/components.index.tsand then add them in the Library (both as plugin component and as regular export) at:
@app/src/UILibrary.ts