# Install dependencies
npm run install# Start development server
npm run dev# Run linter
npm run lint
# Run linter and autofix errors
npm run lint -- --fix
# Run unit tests
npm run test:unit
# Run lint and tests
npm run test:ci# Build for test environment
npm run build:stage
# Build for production environment
npm run build:prod
# Preview the build
npm run preview
# Preview the build + static resource analysis
npm run preview -- --reportRefer the vue-admin-template documentation for more information.
Github Actions are used for deployment.
-
On committing to the master branch, the staging workflow runs tests, builds a staging release and updates developer.staging.newfang.io.
-
On creating a new tag, the production workflow runs tests, builds a production release and updates developer.newfang.io.
The template is based on PanJiaChen's vue-admin-template.