๐Ÿ“ฆ liunnn1994 / eShop

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/liunnn1994/eShop.git
HTTPS git clone https://github.com/liunnn1994/eShop.git
SSH git clone git@github.com:liunnn1994/eShop.git
CLI gh repo clone liunnn1994/eShop
liu liu add login 973eb74 3 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ cypress
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .env.development
๐Ÿ“„ .env.production
๐Ÿ“„ .eslintrc.cjs
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ auto-imports.d.ts
๐Ÿ“„ components.d.ts
๐Ÿ“„ cypress.config.ts
๐Ÿ“„ env.d.ts
๐Ÿ“„ index.html
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ postcss.config.js
๐Ÿ“„ README.md
๐Ÿ“„ tailwind.config.js
๐Ÿ“„ tsconfig.app.json
๐Ÿ“„ tsconfig.json
๐Ÿ“„ vite.config.ts
๐Ÿ“„ README.md

e-shop

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  • Disable the built-in TypeScript Extension
1) Run Extensions: Show Built-in Extensions from VSCode's command palette 2) Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  • Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Cypress

npm run build
npm run test:e2e # or `npm run test:e2e:ci` for headless testing

Lint with ESLint

npm run lint