Git Product home page Git Product logo

vue-starter's Introduction

laboratory

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:

  1. 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)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
pnpm build

# Runs the end-to-end tests
pnpm test:e2e
# Runs the tests only on Chromium
pnpm test:e2e --project=chromium
# Runs the tests of a specific file
pnpm test:e2e tests/example.spec.ts
# Runs the tests in debug mode
pnpm test:e2e --debug

Lint with ESLint

pnpm lint

vue-starter's People

Contributors

dhoniaridho avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

apips1

vue-starter's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @vue/eslint-config-typescript to v11.0.3
  • chore(deps): update dependency husky to v8.0.3
  • chore(deps): update dependency vite to v3.2.7
  • chore(deps): update dependency @rushstack/eslint-patch to v1.3.0
  • chore(deps): update dependency @types/node to v16.18.34
  • chore(deps): update dependency @vue/eslint-config-prettier to v7.1.0
  • chore(deps): update dependency @vue/test-utils to v2.3.2
  • chore(deps): update dependency @vue/tsconfig to v0.4.0
  • chore(deps): update dependency eslint to v8.41.0
  • chore(deps): update dependency eslint-plugin-cypress to v2.13.3
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update dependency unplugin-vue-components to ^0.24.0
  • chore(deps): update dependency vite-plugin-vue-layouts to ^0.8.0
  • chore(deps): update dependency vitest to v0.31.1
  • fix(deps): update dependency @vueuse/core to v9.13.0
  • fix(deps): update dependency axios to v1.4.0
  • fix(deps): update dependency pinia to v2.1.3
  • chore(deps): update dependency @types/jsdom to v21
  • chore(deps): update dependency @types/node to v18
  • chore(deps): update dependency @vitejs/plugin-vue to v4
  • chore(deps): update dependency @vitejs/plugin-vue-jsx to v3
  • chore(deps): update dependency cypress to v12
  • chore(deps): update dependency jsdom to v22
  • chore(deps): update dependency start-server-and-test to v2
  • chore(deps): update dependency typescript to v5
  • chore(deps): update dependency vite to v4
  • fix(deps): update dependency @vueuse/core to v10
  • fix(deps): update dependency @vueuse/head to v1
  • chore(deps): lock file maintenance
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

npm
package.json
  • @vue/compiler-sfc 3.2.40
  • @vueuse/core 9.2.0
  • @vueuse/head 0.7.11
  • axios 1.1.3
  • nprogress 0.2.0
  • pinia 2.0.28
  • vue 3.2.40
  • vue-i18n 9.2.2
  • vue-query 1.26.0
  • vue-router 4.1.5
  • @intlify/vite-plugin-vue-i18n 6.0.3
  • @rushstack/eslint-patch 1.1.4
  • @types/jsdom 20.0.0
  • @types/node 16.11.59
  • @types/nprogress 0.2.0
  • @vitejs/plugin-vue 3.2.0
  • @vitejs/plugin-vue-jsx 2.0.1
  • @vue/eslint-config-prettier 7.0.0
  • @vue/eslint-config-typescript 11.0.0
  • @vue/test-utils 2.0.2
  • @vue/tsconfig 0.1.3
  • cypress 10.11.0
  • eslint 8.23.0
  • eslint-plugin-cypress 2.12.1
  • eslint-plugin-vue 9.7.0
  • husky 8.0.1
  • jsdom 20.0.1
  • npm-run-all 4.1.5
  • prettier 2.7.1
  • react 18.2.0
  • start-server-and-test 1.14.0
  • typescript 4.8.3
  • unplugin-auto-import 0.11.2
  • unplugin-vue-components ^0.22.7
  • vite 3.2.5
  • vite-plugin-pages 0.26.0
  • vite-plugin-pwa ^0.13.1
  • vite-plugin-svg-icons 2.0.1
  • vite-plugin-vue-layouts ^0.7.0
  • vitest 0.23.4
  • vue-tsc 1.0.9

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.