demo
open http://localhost:8080/demo && npx http-server .
build
cross-env NODE_ENV=production vite build
dev
cross-env NODE_ENV=development vite
deploy-demo
NODE_DEBUG=gh-pages gh-pages -d dist/demo
lint:eslint
eslint --cache --max-warnings 0 "{src,types,demo}/**/*.{js,ts,tsx}" --fix
lint:prettier
prettier --write "{src,types,docs/assets}/**/*.{js,ts,json,tsx,css,less,scss,vue,html}"
lint:stylelint
stylelint --cache --fix "{src,types,demo}/**/*.{vue,css,scss,postcss,less}" --cache --cache-location node_modules/.cache/stylelint/
lint
pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint
format
pnpm lint:prettier