Skip to content

Latest commit

 

History

History
145 lines (91 loc) · 3.57 KB

notes.md

File metadata and controls

145 lines (91 loc) · 3.57 KB

Tech Stack

Styling

Having Theming and Uvodo Design System requirments.

Stiches.js CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

Accessible primitive components

Radix-UI Unstyled, accessible components for building high‑quality design systems and web apps in React.

React-Aria A library of React Hooks that provides accessible UI primitives for your design system.

watch: https://www.youtube.com/watch?v=dxDcBB7Xoxs

Documentation for Components

Storybook is an open source tool for building UI components and pages in isolation. It streamlines UI development, testing, and documentation.

Code Quality and Code Style Guide

ESLint and Prettier are used to enforce code quality and style guide. and additonal rule plugins are used.

Resouces https://nextui.org - uses Stiches.js

https://react-spectrum.adobe.com/architecture.html

https://hope-ui.com - Build with Vite

https://mantine.dev - good api

https://quatrochan.github.io/Equal/ - Build with Vite

Semantic Release

https://semantic-release.gitbook.io/semantic-release https://dev.to/baruchiro/how-to-setup-auto-semantic-release-4fd8 https://egghead.io/lessons/javascript-automating-releases-with-semantic-release

Other Tools

np - https://github.com/sindresorhus/np

Links

brandUrl: "https://uvodo.com", barSelectedColor: "#8979e8", brandTitle: "Uvodo Design",

  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "**/*.{js,jsx,ts,tsx}": [
      "yarn format:check",
      "yarn lint"
    ]
  }

   "prepare": "husky install",

TODO:

  • Add .md doc file for each component for git
  • Check SSR compitability of components
  • Provide General for settings and i18n
  • Setup Dark mode theme and provide Stichesjs theme and SSR feature

How to start to create component

You can view your rendered component by running Demo Example App which uses Vite.

Example App is for showing how to use Planum UI Library components in real cases.

yarn dev

or document your component with Storybook

yarn storybook

Then import component in Example Demo or Storybook and see how it works.

import { Component } from 'src'

// then render <Component /> with desired props.

 


How to develop UI component alongside with Admin App

You need to run yarn start

This command will build and watch Planum UI lib in Dev mode and will generate ./dist folder.

in parallel, it will start to build and watch Types in prod mode.

Then, You must link @uvodohq/planum package in Admin App.

(in ./admin folder run npm link ../planum)

Checkout Admin App readme for How to integrate Planum UI Library with Admin App.

 

How to deploy Planum Stroybook and Demo to Netlify

  1. You should run visual regression tests with chromatic to ensure that your UI is consistent with the design and not broken.
    You need to add Chromatic Project id in .env file. and Has right Permission see .env.example and chromatic doc
yarn chromatic:check
  1. After Reviewing your UI, you can deploy your UI to Netlify. You need netlify access token.
yarn deploy:storybook
yarn deploy:example

TODO: