Skip to content

Latest commit

 

History

History
100 lines (70 loc) · 2.96 KB

README.en.md

File metadata and controls

100 lines (70 loc) · 2.96 KB

vue-template


English | Chinese Simplified


Introduction


Vitesse requires Node version >=14.18 Vue3 only supports browsers that natively support ES2015

Introduction

Project structure

|—— docs/       //Documentation for the project
|—— public/     //public static resources
|—— src/
  |—— APIS/         //Various encapsulated API interfaces
  |—— assets/       //common style and static assets
  |—— components/   //Components in various packages
  |—— language/     //all kinds of language files
  |—— layouts/      //Customized template
  |—— modules/      //Imported modules
  |—— pages/        //A file that automatically generates routes
  |—— stores/       //pinia
  |—— App.vue
  |—— auto-imports.d.ts
  |—— components.d.ts
  |—— main.ts       //Entry file
|—— .env.development//environment variable
|—— .env.production //environment variable
|—— .gitignore      //Git configuration file
|—— .npmrc          //npm configuration file
|—— build-test.sh   //build-test
|—— index.html
|—— package.json
|—— pnpm-lock.yaml
|—— README.en.md
|—— README.md
|—— serve.js        //build-test to package the test server script
|—— tsconfig.json   //typeScript
|—— tsconfig.node.json
|—— vite.config.ts  //vite

Use

Development

Just execute the following command to see it in http://localhost:3333

pnpm dev

build

To build the app, you only need to execute the following command

pnpm build

Then you'll see the 'dist' folder for publishing generated.

To build a test, run the following command:

pnpm build-test

Then you'll see the 'dist' folder for publishing generated. and execute an execution that simulates a static file server