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:vti": "echo \"vti diagnostics\"",
|
|
"lint": "concurrently 'yarn tsc' 'yarn lint:script' 'yarn lint:vti'",
|
|
"test:unit": "jest --coverage",
|
|
"test:e2e": "yarn build && concurrently -k \"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": "^1.2.3",
|
|
"insane": "^2.6.2",
|
|
"marked": "^2.0.1",
|
|
"vue": "^3.0.11",
|
|
"vue-router": "^4.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.13.14",
|
|
"@testing-library/jest-dom": "^5.11.10",
|
|
"@testing-library/vue": "^6.4.0",
|
|
"@types/jest": "^26.0.22",
|
|
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
|
"@typescript-eslint/parser": "^4.20.0",
|
|
"@vitejs/plugin-vue": "^1.2.1",
|
|
"@vue/compiler-sfc": "^3.0.11",
|
|
"babel-jest": "^26.6.3",
|
|
"concurrently": "^6.0.0",
|
|
"cypress": "^6.8.0",
|
|
"eslint": "^7.23.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.8.0",
|
|
"husky": "^4.3.8",
|
|
"jest": "^26.6.3",
|
|
"jsdom": "^16.5.2",
|
|
"lint-staged": "^10.5.4",
|
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
"ts-jest": "^26.5.4",
|
|
"typescript": "^4.2.3",
|
|
"vite": "^2.1.5",
|
|
"vti": "^0.1.1",
|
|
"vue-jest": "^5.0.0-alpha.8"
|
|
},
|
|
"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$": "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"
|
|
]
|
|
}
|
|
}
|