|
|
1 yıl önce | |
|---|---|---|
| .. | ||
| cypress | 1 yıl önce | |
| public | 1 yıl önce | |
| src | 1 yıl önce | |
| .editorconfig | 1 yıl önce | |
| .env | 1 yıl önce | |
| .env.development | 1 yıl önce | |
| .gitignore | 1 yıl önce | |
| .prettierrc.json | 1 yıl önce | |
| LICENSE.md | 1 yıl önce | |
| README.md | 1 yıl önce | |
| auto-imports.d.ts | 1 yıl önce | |
| components.d.ts | 1 yıl önce | |
| cypress.config.ts | 1 yıl önce | |
| env.d.ts | 1 yıl önce | |
| eslint.config.js | 1 yıl önce | |
| index.html | 1 yıl önce | |
| package.json | 1 yıl önce | |
| tsconfig.app.json | 1 yıl önce | |
| tsconfig.json | 1 yıl önce | |
| tsconfig.node.json | 1 yıl önce | |
| tsconfig.vitest.json | 1 yıl önce | |
| typed-router.d.ts | 1 yıl önce | |
| unocss.config.js | 1 yıl önce | |
| vite.config.ts | 1 yıl önce | |
| vitest.config.ts | 1 yıl önce | |
A minimal template for new Vue3 projects
Features | Installation | Development | Production | Continuous Integration
The template runs in bun, a NodeJS compatible JavaScript environment.
git clone https://github.com/FjellOverflow/vue3-starter.git
cd vue3-starter
bun install
To install the recommended extensions for VSCode, open the Extensions tab and type @recommended.
To start the dev-server run bun run dev. All commands are called with bun run <command>, the most common ones are:
dev: start dev serverbuild: build projecttest:unit: run unit teststest:e2e:dev: interactive e2e testsFor a full list of all commands, check the scripts section in package.json.
[!WARNING]
While the scripts can also be run with justbun <script>, thebuildcommands needs to be run withbun run build, asbun buildwill instead use bun's built-in builder, instead of Vite.
To build the project for production, use
bun install --production --frozen-lockfile
bun run build-only
To build a Docker image with the provided Dockerfile, use
docker build -t vue3-starter .
docker run -p 80:80 vue3-starter
which will start an nginx container that serves the application at localhost:80
A CI pipeline for Github is configured in .github/workflows/ci.yaml. When changes are pushed to Github, a Github action will run typecheck, lint as well as test:unit and test:e2e. On any errors, the pipeline fails.