forked from WordPress/openverse-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
202 lines (202 loc) · 7.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "openverse-frontend",
"version": "2.2.1",
"description": "Openverse",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/wordpress/openverse-frontend.git"
},
"bugs": {
"url": "https://github.com/wordpress/openverse-frontend/issues"
},
"author": "sebworks",
"private": true,
"scripts": {
"prepare": "./bin/install-pre-commit.sh",
"predev": "pnpm install && pnpm i18n:no-get",
"dev": "pnpm dev:only",
"dev:only": "nuxt --hostname 0.0.0.0",
"dev:secure": "LOCAL_SSL=enabled pnpm dev",
"prebuild": "pnpm install && pnpm i18n",
"build": "pnpm build:only",
"build:only": "nuxt build",
"build:clean": "rm -rf .nuxt",
"generate": "nuxt generate",
"start": "nuxt start",
"prod": "pnpm build:only && pnpm start",
"prod:playwright": "pnpm i18n:copy-test-locales && pnpm prod",
"storybook": "nuxt storybook --port=54000",
"storybook:build": "nuxt storybook build",
"storybook:smoke": "pnpm storybook --ci --smoke-test",
"tcv": "tailwind-config-viewer --port 54001",
"tcv:build": "tailwind-config-viewer export ./.tcv-export",
"talkback": "node ./test/proxy.js",
"pretest": "pnpm install",
"test": "pnpm test:unit && pnpm test:playwright",
"test:unit": "jest",
"test:unit:watch": "pnpm test:unit --collectCoverage=false --watch",
"test:playwright": "./bin/playwright.sh",
"test:playwright:local": "DISABLE_SENTRY=true 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:storybook": "TEST_COMMAND=test:storybook:local ./bin/playwright.sh",
"test:storybook:local": "playwright test -c test/storybook",
"test:storybook:debug": "PWDEBUG=1 pnpm test:storybook:local",
"test:storybook:gen": "playwright codegen localhost:54000/",
"types": "vue-tsc --noEmit",
"lint": "prettier --check .; eslint --ext .js,.vue,.ts --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 .",
"lint:fix": "prettier --write --loglevel=warn .; pnpm lint --fix",
"pc:download": "curl https://api.github.com/repos/pre-commit/pre-commit/releases/latest | grep -o 'https://.*\\.pyz' -m 1 | xargs | xargs curl -fsJo pre-commit.pyz -L",
"pc:install": "python3 pre-commit.pyz install -t pre-push -t pre-commit",
"pc:lint": "python3 pre-commit.pyz run --all-files",
"i18n": "pnpm i18n:create-locales-list && pnpm i18n:get-translations && pnpm i18n:update-locales",
"i18n:copy-test-locales": "cp -r test/locales/* src/locales/",
"i18n:no-get": "pnpm i18n:create-locales-list && pnpm i18n:update-locales",
"i18n:create-locales-list": "node src/locales/scripts/create-wp-locale-list",
"i18n:get-translations": "node src/locales/scripts/get-translations",
"i18n:update-locales": "node src/locales/scripts/get-validated-locales",
"i18n:generate-pot": "node src/locales/scripts/json-to-pot",
"i18n:check": "vue-i18n-extract report --vueFiles './src/*/**.?(js|ts|vue)' --languageFiles './src/locales/en.json'"
},
"dependencies": {
"@nuxt/components": "^2.1.6",
"@nuxt/postcss8": "^1.1.3",
"@nuxt/vue-app": "^2.15.8",
"@nuxtjs/composition-api": "^0.33.1",
"@nuxtjs/i18n": "^7.0.3",
"@nuxtjs/redirect-module": "^0.3.1",
"@nuxtjs/sentry": "^5.1.7",
"@nuxtjs/sitemap": "^2.4.0",
"@nuxtjs/svg": "^0.4.0",
"@pinia/nuxt": "0.2.1",
"@popperjs/core": "^2.11.2",
"@tailwindcss/line-clamp": "^0.3.1",
"@tailwindcss/typography": "^0.5.2",
"@vueuse/core": "^9.3.0",
"@wordpress/is-shallow-equal": "^4.6.0",
"async-mutex": "^0.3.2",
"axios": "^0.27.0",
"axios-mock-adapter": "^1.20.0",
"babel-core": "^7.0.0-bridge.0",
"build-url": "^6.0.1",
"case": "^1.6.3",
"clipboard": "^2.0.8",
"cookie-universal-nuxt": "^2.1.5",
"core-js": "^3.22.1",
"express-prom-bundle": "^6.4.1",
"express-useragent": "^1.0.15",
"focus-trap": "^6.7.1",
"focus-trap-vue": "1.1.1",
"focus-visible": "^5.2.0",
"glob": "^8.0.1",
"node-html-parser": "^5.3.3",
"nuxt": "^2.15.4",
"pinia": "^2.0.16",
"portal-vue": "^2.1.7",
"postcss-focus-visible": "^6.0.4",
"prom-client": "^14.0.1",
"rfdc": "^1.3.0",
"seeded-rand": "^2.0.1",
"throttle-debounce": "^5.0.0",
"uuid": "^8.3.2",
"vue": "^2.7.10",
"vue-i18n": "^8.26.7"
},
"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.1.6",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime-corejs3": "^7.17.9",
"@intlify/eslint-plugin-vue-i18n": "^1.4.0",
"@nuxt/types": "^2.15.8",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-module": "^3.1.0",
"@nuxtjs/storybook": "^4.3.2",
"@nuxtjs/style-resources": "^1.0.0",
"@pinia/testing": "^0.0.12",
"@playwright/test": "1.24.0",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/user-event": "^13.5.0",
"@testing-library/vue": "^5.8.2",
"@types/express-useragent": "^1.0.2",
"@types/jest": "^26.0.22",
"@types/lodash.sortby": "^4.7.7",
"@types/module-alias": "^2.0.1",
"@types/node": "^17.0.32",
"@types/throttle-debounce": "^5.0.0",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"@vue/runtime-dom": "^3.2.37",
"@vue/test-utils": "^1.1.3",
"autoprefixer": "^10.4.0",
"babel-jest": "^26.6.3",
"babel-loader": "8.2.5",
"css-loader": "^5.2.7",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-custom-alias": "^1.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-tsdoc": "^0.2.16",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-vue": "^9.0.0",
"eslint-plugin-vuejs-accessibility": "^1.1.1",
"husky": "^7.0.1",
"jest": "^26.6.3",
"jest-transform-stub": "^2.0.0",
"lint-staged": "^12.3.7",
"module-alias": "^2.2.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.12",
"prettier": "^2.2.1",
"prettier-plugin-tailwindcss": "^0.1.12",
"rimraf": "^3.0.2",
"tailwind-config-viewer": "^1.6.3",
"tailwindcss": "^3.0.23",
"tailwindcss-labeled-groups": "^0.0.2",
"tailwindcss-rtl": "^0.9.0",
"talkback": "^3.0.1",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"vue-demi": "^0.13.11",
"vue-i18n-extract": "^2.0.7",
"vue-jest": "^3.0.7",
"vue-loader": "^15.10.0",
"vue-server-renderer": "^2.7.10",
"vue-template-compiler": "^2.7.10",
"vue-tsc": "^0.40.1",
"webpack": "^4.46.0"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"react-dom",
"consola"
],
"allowedVersions": {
"babel-core": "7.0.0-bridge.0",
"postcss": "5.2.18"
}
}
},
"engines": {
"node": ">= 16.0.0 <17",
"pnpm": ">= 7.1.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"volta": {
"node": "16.15.0"
}
}