Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

4.5 KB
Raw Blame
{
  "name": "@openverse/frontend",
  "description": "Openverse frontend",
  "private": true,
  "version": "2.2.1",
  "packageManager": "[email protected]",
  "scripts": {
    "predev": "pnpm install && pnpm i18n:en",
    "dev": "run-p dev:only 'i18n:en --watch'",
    "dev:only": "npx nuxi dev --host 0.0.0.0",
    "dev:secure": "LOCAL_SSL=enabled pnpm dev",
    "build": "npx nuxi build",
    "build:clean": "rm -rf .nuxt",
    "docker:build": "docker build . -t openverse-frontend:latest",
    "docker:run": "docker run --rm -it -p 127.0.0.1:8443:8443/tcp openverse-frontend:latest",
    "generate": "nuxt generate",
    "start": "PORT=\"${PORT:-8443}\" CONSOLA_LEVEL=\"${CONSOLA_LEVEL:-1}\" node .output/server/index.mjs",
    "start:mem": "PORT=\"${PORT:-8443}\" CONSOLA_LEVEL=\"${CONSOLA_LEVEL:-1}\" node --inspect .output/server/index.mjs",
    "start:playwright": "pnpm i18n:test && pnpm start",
    "prod": "pnpm build && pnpm start",
    "prod:playwright": "pnpm i18n:test && pnpm prod",
    "talkback": "node ./test/proxy.js",
    "prepare:nuxt": "pnpm i18n:en && npx nuxi prepare",
    "test": "pnpm test:unit && pnpm test:playwright",
    "test:unit": "pnpm run i18n:en && NUXT_PUBLIC_PLAUSIBLE_ENABLED=false vitest run",
    "test:unit:ui": "pnpm test:unit --ui",
    "test:unit:coverage": "pnpm test:unit --coverage",
    "test:unit:watch": "pnpm test:unit --collectCoverage=false --watch",
    "test:playwright": "./bin/playwright.sh",
    "test:playwright:local": "playwright test -c test/playwright",
    "test:playwright:debug": "PWDEBUG=1 pnpm test:playwright:local",
    "test:playwright:recreate-tapes": "rimraf test/tapes && pnpm test:playwright:update-tapes",
    "test:playwright:update-tapes": "UPDATE_TAPES=true pnpm test:playwright",
    "test:playwright:gen": "playwright codegen localhost:8443/",
    "test:playwright:faststart": "FASTSTART=true pnpm test:playwright",
    "types": "pnpm run i18n:test && npx nuxi typecheck",
    "i18n": "node i18n/scripts/setup.mjs",
    "i18n:debug": "pnpm i18n --debug",
    "i18n:en": "pnpm i18n --en-only",
    "i18n:test": "pnpm i18n --test",
    "i18n:no-get": "pnpm i18n --no-get",
    "i18n:generate-pot": "node i18n/scripts/generate-pot.mjs",
    "create:component-sfc": "remake component",
    "create:story": "remake story",
    "create:component-storybook-test": "remake component-storybook-test",
    "create:component-unit-test": "remake component-unit-test",
    "create:component-scaffolding": "npm-run-all \"create:component-sfc --output=src/components --name={1}\" \"create:story --output=src/components/{1}/meta --name={1}\" \"create:component-unit-test --output=test/unit/specs/components/{1} --name={1} --fileName={2}\" \"create:component-storybook-test --output=test/storybook/visual-regression --fileName={2} --name={1}\" --",
    "create:component": "./bin/create-component.sh",
    "doc:media-props": "node ./scripts/document-media.js"
  },
  "dependencies": {
    "@openverse/api-client": "workspace:*",
    "@floating-ui/dom": "^1.6.8",
    "@nuxtjs/plausible": "^3.0.2",
    "@nuxtjs/robots": "^7.0.2",
    "@nuxtjs/sitemap": "^9.0.0",
    "@pinia/nuxt": "^1.0.0",
    "@tailwindcss/typography": "^0.5.20",
    "@tailwindcss/vite": "^4.3.3",
    "@vueuse/core": "^15.0.0",
    "@wordpress/is-shallow-equal": "^6.0.0",
    "async-mutex": "^0.5.0",
    "axios": "^1.7.9",
    "clipboard": "^2.0.11",
    "focus-trap": "^7.5.4",
    "focus-visible": "^5.2.0",
    "pinia": "^4.0.0",
    "postcss-focus-visible": "^11.0.0",
    "rfdc": "^1.4.1",
    "seeded-rand": "^4.0.0",
    "tailwindcss": "^4.3.3",
    "throttle-debounce": "^5.0.2",
    "uuid": "^14.0.0"
  },
  "devDependencies": {
    "@babel/parser": "^8.0.0",
    "@intlify/core": "^11.4.16",
    "@intlify/core-base": "^11.4.16",
    "@intlify/shared": "^11.4.16",
    "@nuxt/test-utils": "^4.3.4",
    "@nuxtjs/i18n": "^10.6.0",
    "@playwright/test": "1.64.1",
    "@testing-library/user-event": "^14.5.2",
    "@testing-library/vue": "^8.1.0",
    "@vitest/coverage-v8": "^5.0.0",
    "@vitest/ui": "^5.0.0",
    "@vue/test-utils": "^2.5.1",
    "adm-zip": "^0.6.0",
    "chokidar": "^6.0.0",
    "core-js": "^3.37.1",
    "eslint-plugin-jsonc": "^2.16.0",
    "jsdom": "^27.4.0",
    "json5": "^2.2.3",
    "npm-run-all2": "^7.0.0",
    "nuxt": "^4.6.3",
    "rimraf": "^6.1.4",
    "talkback": "^4.2.0",
    "typescript": "5.9.3",
    "vitest": "^5.0.0",
    "vitest-dom": "^0.1.1",
    "vue": "^3.5.44",
    "vue-i18n": "^11.4.16",
    "vue-router": "^5.4.0",
    "vue-tsc": "3.3.13"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead"
  ]
}