97 lines
2.5 KiB
JSON
97 lines
2.5 KiB
JSON
{
|
|
"name": "vue3-realworld-example-app",
|
|
"version": "1.1.0",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"serve": "vite preview",
|
|
"lint:script": "eslint \"{src/**/*.{ts,vue},cypress/**/*.js}\"",
|
|
"lint:tsc": "vue-tsc --noEmit",
|
|
"lint": "concurrently \"yarn build\" \"yarn lint:tsc\" \"yarn lint:script\"",
|
|
"test:unit": "jest",
|
|
"test:e2e": "yarn build && concurrently -rk -s first \"yarn serve\" \"cypress run -c baseUrl=http://localhost:5000\"",
|
|
"test:e2e:ci": "cypress run -C cypress.prod.json",
|
|
"test": "yarn test:unit && yarn test:e2e"
|
|
},
|
|
"dependencies": {
|
|
"@harlem/core": "^2.3.6",
|
|
"insane": "^2.6.2",
|
|
"marked": "^4.0.16",
|
|
"vue": "^3.2.37",
|
|
"vue-router": "^4.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.18.2",
|
|
"@testing-library/jest-dom": "^5.16.4",
|
|
"@testing-library/vue": "^6.4.2",
|
|
"@types/jest": "^28.1.1",
|
|
"@types/marked": "^4.0.3",
|
|
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
"@typescript-eslint/parser": "^5.5.0",
|
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
"@vue/compiler-sfc": "^3.2.37",
|
|
"babel-jest": "^28.1.1",
|
|
"concurrently": "^7.2.1",
|
|
"cypress": "^10.0.3",
|
|
"eslint": "^8.17.0",
|
|
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"eslint-plugin-import": "^2.25.3",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^6.0.0",
|
|
"eslint-plugin-vue": "^8.2.0",
|
|
"husky": "^4.3.8",
|
|
"jest": "^28.1.1",
|
|
"jsdom": "^19.0.0",
|
|
"lint-staged": "^13.0.0",
|
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
"ts-jest": "^28.0.4",
|
|
"typescript": "^4.7.3",
|
|
"vite": "^2.9.10",
|
|
"vue-tsc": "^0.37.2",
|
|
"vue3-jest": "^27.0.0-alpha.2"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged",
|
|
"pre-push": "yarn lint"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{ts,vue}": "eslint --fix",
|
|
"cypress/**/*.js": "eslint --fix"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest",
|
|
"globals": {
|
|
"ts-jest": {}
|
|
},
|
|
"testEnvironment": "jsdom",
|
|
"transform": {
|
|
"^.+\\.vue$": "vue3-jest",
|
|
"^.+\\js$": "babel-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"<rootDir>/src/**/*.{ts,vue}",
|
|
"!<rootDir>/src/config.ts"
|
|
],
|
|
"moduleFileExtensions": [
|
|
"vue",
|
|
"ts",
|
|
"js",
|
|
"json",
|
|
"node"
|
|
],
|
|
"testMatch": [
|
|
"<rootDir>/src/**/*.spec.ts"
|
|
],
|
|
"modulePaths": [
|
|
"<rootDir>"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/src/setup-test.ts"
|
|
]
|
|
}
|
|
}
|