for easy reservation
# node setup
nvm install
nvm use
# package install
pnpm install
# install [pre-commit](https://pre-commit.com/) to restrict commit
# rule is defined in [.pre-commit-config.yaml](.pre-commit-config.yaml)
pnpm pre-commit:install
# setup .env
cp .env.example .env
# start
pnpm run dev
# ETC
## test command list
pnpm run test
pnpm run test:watch
## icon auto generate
pnpm run build:ts-icons
We are using @t3-oss/env-nextjs and zod for env management. If you want to add new env variable, please check env.ts at the root of the project.
You need to set up tailwindcss intellisense setting
for vscode. add the following
-
Install the "Tailwind CSS IntelliSense" Visual Studio Code extension
-
Add the following to your settings.json
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
],
"tailwindCSS.classAttributes": ["class", "className", ".*Variants"],
- Do not declare type: "module" in package.json. It will break the build process. 1.1. Because some of the packages still need dynamic import.
- @TODO -> comment for what to do in the future
- @WARN -> comment for preventing modification or explaining the reason for the controversial code
- create active button using comopoundVariants of cva
- re design button component
- Remove required field in FromLabel. and detect required field from useFormContext(need to check possibility)