60 lines
2.3 KiB
JSON
60 lines
2.3 KiB
JSON
{
|
|
"name": "vue3-realworld-example-app",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"serve": "vite preview --port 4137",
|
|
"lint:script": "eslint \"{src/**/*.{ts,vue},cypress/**/*.ts}\"",
|
|
"lint:tsc": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
"lint": "concurrently \"npm run lint:tsc\" \"npm run lint:script\"",
|
|
"test:unit": "cypress open --component",
|
|
"test:unit:ci": "cypress run --component --quiet --reporter spec",
|
|
"test:e2e": "npm run build && concurrently -rk -s first \"npm run serve\" \"cypress open --e2e -c baseUrl=http://localhost:4137\"",
|
|
"test:e2e:local": "cypress open --e2e -c baseUrl=http://localhost:5173",
|
|
"test:e2e:ci": "npm run build && concurrently -rk -s first \"npm run serve\" \"cypress run --e2e -c baseUrl=http://localhost:4137\"",
|
|
"test:e2e:prod": "cypress run --e2e -c baseUrl=https://vue3-realworld-example-app-mutoe.vercel.app",
|
|
"test": "npm run test:unit:ci && npm run test:e2e:ci",
|
|
"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"
|
|
},
|
|
"dependencies": {
|
|
"insane": "^2.6.2",
|
|
"marked": "^4.2.3",
|
|
"pinia": "^2.0.27",
|
|
"vue": "^3.2.45",
|
|
"vue-router": "^4.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@mutoe/eslint-config-preset-vue": "~2.1.2",
|
|
"@pinia/testing": "^0.0.14",
|
|
"@testing-library/cypress": "^8.0.7",
|
|
"@testing-library/vue": "^6.6.1",
|
|
"@types/marked": "^4.0.7",
|
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
"@vue/compiler-sfc": "^3.2.45",
|
|
"@vue/test-utils": "^2.2.5",
|
|
"@vue/tsconfig": "^0.1.3",
|
|
"concurrently": "^7.6.0",
|
|
"cypress": "^11.2.0",
|
|
"eslint": "^8.29.0",
|
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"happy-dom": "^7.7.0",
|
|
"husky": "^8.0.2",
|
|
"lint-staged": "^13.0.4",
|
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
"swagger-typescript-api": "^12.0.2",
|
|
"typescript": "~4.9.3",
|
|
"vite": "^3.2.4",
|
|
"vitest": "^0.25.3",
|
|
"vitest-fetch-mock": "^0.2.1",
|
|
"vue-tsc": "^1.0.11"
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{ts,vue}": "eslint --fix",
|
|
"cypress/**/*.ts": "eslint --fix"
|
|
}
|
|
}
|