Skip to content

perpetual-education/vue-three-cookbook

Repository files navigation

vue-three-cookbook

GOAL: Create a series of minimal examples that aren't burried in tons of other code. We could use StackBlitz - but this will be more fun for the students to work on and get practice using Git in a group.

The main branch should stay clean and as minimal as possible (or as needed to suite our purpose). We can updated site-wide CSS there / and push into other branches as nessesary / or setup a sub-module?

  • basic examples of common interface patterns
  • various routing examples
  • examples of different ways to compose stores
  • basic testing examples

Everything will be in Vue 3 and use the composition api and setup pattern.

Examples

Structure

User interface

Routing





Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Push to staging / Surge

npm run deploy

will build and then push to surge

https://vue-three-cookbook.surge.sh/

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint

Although prettier and ESLint should be doing their job while you work.

Known unknowns

  • not sure how we'll structure this yet... will it be many branches / or will we be able to group things by folder? (the router will get way too huge though?)

  • we don't know why we need a CNAME in the root and in public for the CLI to pick it up for surge

  • we're afraid of submodules

Ideas

  • something to explain why you'd want to lazyload a route
  • common main-menu toggle for small screens
  • sub routes
  • anything that is confusing with links to useful conversation and solution ideas

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published