Skip to content

twitwi/create-vue-customized

Repository files navigation

create-vue-customized

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

Use typically with (pnpx or npx, tiged or degit)

pnpx tiged twitwi/create-vue-customized          folder-to-create
# OR
pnpx tiged twitwi/create-vue-customized#yjs      folder-to-create
# OR
pnpx tiged twitwi/create-vue-customized#pwa      folder-to-create
# OR
pnpx tiged twitwi/create-vue-customized#yjs+pwa  folder-to-create

Then consider modifying:

  • git init .
  • modifying README.md (remove most of it)
  • modifying the name in package.json (and maybe the version)
  • modifying the title in index.html
  • modifying the logo or its colors in src/assets/logo.svg (main) public/logo.svg (pwa)
  • (#yjs) modifying the LOCAL_STORAGE_KEY in src/main-yjs.ts (and/or hardcode the configuration if desired)
  • (#yjs) modifying the persist key in src/store/simple.ts
  • (#pwa) modifying the information in vite.config.ts





Recommended IDE Setup

VSCode + Volar (and disable Vetur).

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 Volar to make the TypeScript language service aware of .vue types.

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

Lint with ESLint

pnpm lint

Internal, how to update this repo:

pnpm create vue@latest
# all but testing
# ◇  Project name (target directory):
# │  ,,base
# │
# ◇  Select features to include in your project: (↑/↓ to navigate, space to select, a to toggle all, enter to confirm)
# │  TypeScript, JSX Support, Router (SPA development), Pinia (state management), ESLint (error prevention), Prettier (code formatting)
# │
# ◇  Install Oxlint for faster linting? (experimental)
# │  No

meld ,,base .

About

Custom vue template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published