54 lines
2.0 KiB
JSON
54 lines
2.0 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": "sta -p https://raw.githubusercontent.com/gothinkster/realworld/main/api/openapi.yml -o ./src/services -n api.ts"
|
|
},
|
|
"dependencies": {
|
|
"insane": "^2.6.2",
|
|
"marked": "^4.1.0",
|
|
"pinia": "^2.0.22",
|
|
"vue": "^3.2.39",
|
|
"vue-router": "^4.1.5"
|
|
},
|
|
"devDependencies": {
|
|
"@cypress/vue": "^4.2.0",
|
|
"@mutoe/eslint-config-preset-vue": "~1.4.0",
|
|
"@pinia/testing": "^0.0.14",
|
|
"@testing-library/cypress": "^8.0.3",
|
|
"@types/marked": "^4.0.7",
|
|
"@vitejs/plugin-vue": "^3.1.0",
|
|
"@vue/tsconfig": "^0.1.3",
|
|
"concurrently": "^7.4.0",
|
|
"cypress": "^10.8.0",
|
|
"eslint": "^8.23.1",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"husky": "^8.0.1",
|
|
"lint-staged": "^13.0.3",
|
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
"swagger-typescript-api": "^10.0.1",
|
|
"typescript": "~4.8.3",
|
|
"vite": "^3.1.3",
|
|
"vue-tsc": "^1.0.10"
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{ts,vue}": "eslint --fix",
|
|
"cypress/**/*.ts": "eslint --fix"
|
|
}
|
|
}
|