60 lines
2.1 KiB
JSON
60 lines
2.1 KiB
JSON
{
|
|
"name": "vue3-realworld-example-app",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"prepare": "simple-git-hooks",
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"serve": "vite preview --port 4173",
|
|
"type-check": "vue-tsc --noEmit",
|
|
"lint": "eslint --fix .",
|
|
"test": "npm run test:unit && npm run test:e2e:ci",
|
|
"test:e2e": "npm run build && concurrently -rk -s first \"npm run serve\" \"cypress open --e2e -c baseUrl=http://localhost:4173\"",
|
|
"test:e2e:ci": "npm run build && concurrently -rk -s first \"npm run serve\" \"cypress run --e2e -c baseUrl=http://localhost:4173\"",
|
|
"test:e2e:local": "cypress open --e2e -c baseUrl=http://localhost:5173",
|
|
"test:e2e:prod": "cypress run --e2e -c baseUrl=https://vue3-realworld-example-app-mutoe.vercel.app",
|
|
"test:unit": "vitest run",
|
|
"generate:api": "curl -sL https://raw.githubusercontent.com/gothinkster/realworld/main/api/openapi.yml -o ./src/services/openapi.yml && sta -p ./src/services/openapi.yml -o ./src/services -n api.ts"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "npm exec lint-staged",
|
|
"pre-push": "npm run lint && npm run build"
|
|
},
|
|
"lint-staged": {
|
|
"*": "eslint --fix"
|
|
},
|
|
"dependencies": {
|
|
"insane": "^2.6.2",
|
|
"marked": "^12.0.0",
|
|
"pinia": "^2.1.7",
|
|
"vue": "^3.4.27",
|
|
"vue-router": "^4.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@mutoe/eslint-config": "^2.4.5",
|
|
"@pinia/testing": "^0.1.3",
|
|
"@testing-library/cypress": "^10.0.1",
|
|
"@testing-library/user-event": "^14.5.1",
|
|
"@testing-library/vue": "^8.0.1",
|
|
"@vitejs/plugin-vue": "^4.5.0",
|
|
"@vitest/coverage-v8": "^1.0.4",
|
|
"concurrently": "^8.2.2",
|
|
"cypress": "^13.6.0",
|
|
"eslint": "^8.54.0",
|
|
"eslint-plugin-cypress": "^2.15.1",
|
|
"happy-dom": "^12.10.3",
|
|
"lint-staged": "^15.2.0",
|
|
"msw": "^2.0.11",
|
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
"simple-git-hooks": "^2.9.0",
|
|
"swagger-typescript-api": "^13.0.3",
|
|
"typescript": "~5.2.2",
|
|
"vite": "^5.0.7",
|
|
"vitest": "^1.0.4",
|
|
"vitest-dom": "^0.1.1",
|
|
"vue-tsc": "^1.8.25"
|
|
}
|
|
}
|