96 lines
2.4 KiB
JSON
96 lines
2.4 KiB
JSON
{
|
|
"name": "vue3-realworld-example-app",
|
|
"version": "1.1.0",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"check-ts-errors": "yarn tsc --noEmit && yarn vti diagnostics",
|
|
"lint": "eslint \"{src,cypress}/**/*.{js,ts,vue}\"",
|
|
"test:unit": "jest --coverage",
|
|
"test:e2e": "cypress run",
|
|
"test": "yarn check-ts-errors && yarn lint && yarn test:unit && yarn test:e2e"
|
|
},
|
|
"dependencies": {
|
|
"@harlem/core": "^1.1.0",
|
|
"deepmerge": "^4.2.2",
|
|
"dompurify": "^2.2.6",
|
|
"marked": "^1.2.9",
|
|
"vue": "^3.0.6",
|
|
"vue-router": "^4.0.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.13.1",
|
|
"@testing-library/jest-dom": "^5.11.9",
|
|
"@testing-library/vue": "^6.3.4",
|
|
"@types/dompurify": "^2.2.1",
|
|
"@types/jest": "^26.0.20",
|
|
"@types/marked": "^1.2.2",
|
|
"@typescript-eslint/eslint-plugin": "^4.15.2",
|
|
"@typescript-eslint/parser": "^4.15.2",
|
|
"@vitejs/plugin-vue": "^1.1.4",
|
|
"@vue/compiler-sfc": "^3.0.5",
|
|
"@vue/test-utils": "^2.0.0-rc.1",
|
|
"babel-jest": "^26.6.3",
|
|
"cypress": "^6.5.0",
|
|
"eslint": "^7.20.0",
|
|
"eslint-config-standard": "^16.0.2",
|
|
"eslint-config-standard-with-typescript": "^20.0.0",
|
|
"eslint-plugin-cypress": "^2.11.2",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^4.3.1",
|
|
"eslint-plugin-vue": "^7.6.0",
|
|
"husky": "^5.1.1",
|
|
"jest": "^26.6.3",
|
|
"jsdom": "^16.4.0",
|
|
"lint-staged": "^10.5.4",
|
|
"ts-jest": "^26.5.1",
|
|
"typescript": "~4.1.5",
|
|
"vite": "^2.0.2",
|
|
"vti": "^0.0.24",
|
|
"vue-jest": "^5.0.0-alpha.8"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged",
|
|
"pre-push": "yarn check-ts-errors"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{ts,vue}": "eslint --fix",
|
|
"cypress/**/*.js": "eslint --fix"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest",
|
|
"globals": {
|
|
"ts-jest": {}
|
|
},
|
|
"testEnvironment": "jsdom",
|
|
"transform": {
|
|
"^.+\\.vue$": "vue-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"
|
|
]
|
|
}
|
|
}
|