mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
- Includes fixtures and mocks system for API and models as well as npm scripts for running tests, watch mode, coverage and UI - Adds test setup with JSDOM environment and utility function tests - Converts marker model tests from Mocha/Chai to Vitest
147 lines
4.8 KiB
JSON
147 lines
4.8 KiB
JSON
{
|
|
"name": "photoprism",
|
|
"version": "1",
|
|
"private": true,
|
|
"description": "AI-Powered Photos App",
|
|
"license": "AGPL-3.0",
|
|
"author": "PhotoPrism UG",
|
|
"scripts": {
|
|
"acceptance-local": "testcafe chromium --selector-timeout 5000 -S -s tests/acceptance/screenshots tests/acceptance",
|
|
"build": "webpack --node-env=production",
|
|
"build-analyze": "webpack --node-env=analyze",
|
|
"build-dev": "webpack --node-env=development",
|
|
"debug": "webpack --stats-error-details",
|
|
"dep-list": "npx npm-check-updates",
|
|
"fmt": "eslint --cache --fix src/ *.js eslint.config.mjs",
|
|
"fmt-npm": "prettier --write package.json",
|
|
"gettext-compile": "vue-gettext-compile",
|
|
"gettext-extract": "gettext-extract --output src/locales/translations.pot $(find ${SRC:-src} -type f \\( -iname \\*.vue -o -iname \\*.js \\) -not -path src/common/gettext.js)",
|
|
"lint": "eslint --cache src/ *.js",
|
|
"test": "karma start",
|
|
"test:vitest": "vitest run",
|
|
"test:vitest:watch": "vitest",
|
|
"test:vitest:coverage": "vitest run --coverage",
|
|
"test:vitest:ui": "vitest --ui",
|
|
"testcafe": "testcafe",
|
|
"trace": "webpack --stats-children",
|
|
"upgrade": "npm update && npm audit fix",
|
|
"watch": "webpack --watch"
|
|
},
|
|
"browserslist": [
|
|
">0.25% and last 2 years"
|
|
],
|
|
"dependencies": {
|
|
"@babel/cli": "^7.27.1",
|
|
"@babel/core": "^7.27.1",
|
|
"@babel/plugin-transform-runtime": "^7.27.1",
|
|
"@babel/preset-env": "^7.27.1",
|
|
"@babel/register": "^7.27.1",
|
|
"@babel/runtime": "^7.27.1",
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.26.0",
|
|
"@lcdp/offline-plugin": "^5.1.1",
|
|
"@mdi/font": "^7.4.47",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@vitejs/plugin-react": "^4.4.1",
|
|
"@vitest/coverage-v8": "^3.1.3",
|
|
"@vitest/ui": "^3.1.3",
|
|
"@vue/compiler-sfc": "^3.5.13",
|
|
"@vue/language-server": "^2.2.10",
|
|
"@vvo/tzdb": "^6.161.0",
|
|
"axios": "^1.9.0",
|
|
"axios-mock-adapter": "^2.1.0",
|
|
"babel-loader": "^10.0.0",
|
|
"babel-plugin-istanbul": "^7.0.0",
|
|
"babel-plugin-polyfill-corejs3": "^0.12.0",
|
|
"browserslist": "^4.24.5",
|
|
"chai": "^5.2.0",
|
|
"cheerio": "1.0.0-rc.12",
|
|
"chrome-finder": "^1.0.7",
|
|
"core-js": "^3.42.0",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^7.1.2",
|
|
"cssnano": "^7.0.7",
|
|
"easygettext": "^2.17.0",
|
|
"eslint": "^9.26.0",
|
|
"eslint-config-prettier": "^10.1.2",
|
|
"eslint-formatter-pretty": "^6.0.1",
|
|
"eslint-plugin-html": "^8.1.2",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-prettier": "^5.4.0",
|
|
"eslint-plugin-promise": "^7.2.1",
|
|
"eslint-plugin-vue": "^10.1.0",
|
|
"eslint-plugin-vuetify": "^2.5.2",
|
|
"eslint-webpack-plugin": "^5.0.1",
|
|
"eventsource-polyfill": "^0.9.6",
|
|
"file-loader": "^6.2.0",
|
|
"file-saver": "^2.0.5",
|
|
"floating-vue": "^5.2.2",
|
|
"globals": "^16.0.0",
|
|
"hls.js": "^1.6.2",
|
|
"i": "^0.3.7",
|
|
"jsdom": "^26.1.0",
|
|
"karma": "^6.4.4",
|
|
"karma-chrome-launcher": "^3.2.0",
|
|
"karma-coverage-istanbul-reporter": "^3.0.3",
|
|
"karma-htmlfile-reporter": "^0.3.8",
|
|
"karma-mocha": "^2.0.1",
|
|
"karma-verbose-reporter": "^0.0.8",
|
|
"karma-webpack": "^5.0.1",
|
|
"luxon": "^3.6.1",
|
|
"maplibre-gl": "^5.5.0",
|
|
"memoize-one": "^6.0.0",
|
|
"mini-css-extract-plugin": "^2.9.2",
|
|
"minimist": ">=1.2.8",
|
|
"mocha": "^11.2.2",
|
|
"node-storage-shim": "^2.0.1",
|
|
"passive-events-support": "^1.1.0",
|
|
"photoswipe": "^5.4.4",
|
|
"postcss": "^8.5.3",
|
|
"postcss-import": "^16.1.0",
|
|
"postcss-loader": "^8.1.1",
|
|
"postcss-preset-env": "^10.1.6",
|
|
"postcss-reporter": "^7.1.0",
|
|
"postcss-url": "^10.1.3",
|
|
"prettier": "^3.5.3",
|
|
"pubsub-js": "^1.9.5",
|
|
"regenerator-runtime": "^0.14.1",
|
|
"resolve-url-loader": "^5.0.0",
|
|
"sanitize-html": "^2.16.0",
|
|
"sass": "^1.87.0",
|
|
"sass-loader": "^16.0.5",
|
|
"server": "^1.0.41",
|
|
"sockette": "^2.0.6",
|
|
"style-loader": "^4.0.0",
|
|
"svg-url-loader": "^8.0.0",
|
|
"tar": "^7.4.3",
|
|
"url-loader": "^4.1.1",
|
|
"util": "^0.12.5",
|
|
"vite-tsconfig-paths": "^5.1.4",
|
|
"vitest": "^3.1.3",
|
|
"vue": "^3.5.13",
|
|
"vue-3-sanitize": "^0.1.4",
|
|
"vue-loader": "^17.4.2",
|
|
"vue-loader-plugin": "^1.3.0",
|
|
"vue-luxon": "^0.10.0",
|
|
"vue-router": "^4.5.1",
|
|
"vue-sanitize-directive": "^0.2.1",
|
|
"vue-style-loader": "^4.1.3",
|
|
"vue3-gettext": "^2.4.0",
|
|
"vuetify": "^3.8.3",
|
|
"webpack": "^5.99.8",
|
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
"webpack-cli": "^6.0.1",
|
|
"webpack-hot-middleware": "^2.26.1",
|
|
"webpack-manifest-plugin": "^5.0.1",
|
|
"webpack-md5-hash": "^0.0.6",
|
|
"webpack-merge": "^6.0.1",
|
|
"webpack-plugin-vuetify": "^3.1.1"
|
|
},
|
|
"engines": {
|
|
"node": ">= 18.0.0",
|
|
"npm": ">= 9.0.0",
|
|
"yarn": "please use npm"
|
|
}
|
|
}
|