vue3-realworld-example-app/package.json

87 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/**/*.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\" \"./node_modules/.bin/cypress run -c baseUrl=http://localhost:4137\"",
"test:e2e:ci": "./node_modules/.bin/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",
"@mutoe/eslint-config-preset-vue": "^1.2.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/vue": "^6.4.2",
"@types/jest": "^28.1.1",
"@types/marked": "^4.0.3",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/compiler-sfc": "^3.2.37",
"@vue/tsconfig": "^0.1.3",
"babel-jest": "^28.1.1",
"concurrently": "^7.2.1",
"cypress": "^10.0.3",
"eslint": "^8.17.0",
"eslint-plugin-cypress": "^2.12.1",
"husky": "^8.0.0",
"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.2",
"vite": "^2.9.10",
"vue-tsc": "^0.37.3",
"vue3-jest": "^27.0.0-alpha.2"
},
"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"
]
}
}