Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 3.4 KB

README.md

File metadata and controls

91 lines (62 loc) · 3.4 KB

Frontend

Getting Started

Prerequisites

Quick Start

  • Install dependencies with bun install
  • Copy .env.example to .env and update any values
  • Start the development server with bun vite.

Other Commands

  • bun build - Build the application for production
  • bun lint - Run ESLint
  • bun format - Run Prettier
  • bun test - Run Jest tests

VS Code Setup

To view dependencies in the editor install the ZipFS extension

You can setup VS Code to use Prettier for formatting by installing the Prettier extension

Formatting

  • Install the Prettier-Standard plugin: <cmd/ctrl + p> ext install prettier-standard-vscode
  • Right click in any typescript file and select Format Document With...
  • Select Configure Default Formatter...
  • Select prettier-standard-vscode

Local CI

The github actions can be ran locally using Act

The following command will run the github action locally, which is useful for debugging or testing new configuration: act -P ubuntu-22.04=cypress/included:12.17.3

Updating Components

The following will update all installed components to the latest version

for file in src/components/ui/*.tsx; do bunx shadcn-ui@latest add -y -o $(basename "$file" .tsx); done

Cool Stuff to Check Out

Old Readme

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list