View Code? Open in Web Editor
NEW
Home Page: https://sky172839465.github.io/cwa-shop/
JavaScript 98.26%
Shell 0.11%
CSS 0.03%
HTML 1.60%
cwa-shop's Introduction
CWA SHOP
- fork repo
- clone repo from your account
git clone https://github.com/YOUR_ACCOUNT/cwa-shop.git
- open in vscode
- install dependencies
- start dev server
- create change and commit to your remote branch
- send pull-request
- wait for status check success
- merge pr
- trigger
main
branch push ci
- check linter
- bump version
- upload to github page
package |
description |
tailwindcss |
style element in classname |
daisyui |
styled component with tailwindcss |
i18next |
i18n package |
react-router-dom |
single page application router |
recoil |
global react state management |
swr |
request status management |
formik |
control form flow |
yup |
form validation using in formik |
dev package |
description |
husky |
git commit hook |
lint-staged |
git hook trigger when staged files |
vite |
modern frontend development toolkit |
script |
description |
npm run dev |
localhost start dev server |
npm run dev:mock |
localhost start dev server and mock api by `vite-plugin-mock` |
npm run dev:mockapi |
localhost start dev server and mock api in promise object WITHOUT SEND REQUEST
|
npm run build |
build in production |
npm run build:gh |
build in production for github page special environment(BrowerRoute not working) |
npm run lint |
check {js,jsx} coding style |
npm run lint:fix |
fix {js,jsx} incorrect coding style if possible |
npm run preview |
local start server for bundled file under `/dist` folder |
npm run prepare |
run on `npm i` / `npm install`, auto install `husky` for git hook |
npm run prettier |
check {json,md,yml,sh} coding style |
npm run prettier:fix |
fix {json,md,yml,sh} incorrect coding style if possible |
npm run style |
check {css} coding style |
npm run style:fix |
fix {css} incorrect coding style if possible |
variable |
description |
MOCK |
- `npm run dev` mock jsonplaceholder api
- `npm run build` using mock data when fetch data failed
|
MOCK_AWS_API |
mock aws api url start with `/${VITE_AWS_HOST_PREFIX}`(variable from env file) |
BASENAME |
replace route basename to `/cwa-shop` (only for github page) |
cwa-shop's People
Watchers