-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
145 lines (145 loc) · 5.45 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
{
"name": "ndla-frontend",
"version": "0.1.16",
"description": "NDLA Frontend",
"type": "module",
"scripts": {
"build:client": "vite build --outDir build/public",
"build:entrypoint": "vite build --ssr src/server/server.render.ts --outDir build/server",
"build:server": "node scripts/build-server.mjs",
"build": "yarn clean && yarn tsc && cross-env NODE_ENV=production NODE_OPTIONS='--preserve-symlinks' yarn build:entrypoint && yarn build:client && yarn build:server",
"check-all": "yarn format-check && yarn lint-es && yarn test",
"clean": "rm -rf node_modules/.cache build",
"test": "vitest --run",
"tdd": "vitest",
"lint": "yarn format-check && yarn lint-es",
"lint-es": "eslint --cache --cache-location '.eslintcache/' --max-warnings=0 src e2e",
"format": "prettier '{src,e2e}/**/*(*.js|*.jsx|*.ts|*.tsx|*.graphql)' --write",
"format-check": "prettier '{src,e2e}/**/*(*.js|*.jsx|*.ts|*.tsx|*.graphql)' --check",
"start": "NODE_OPTIONS='--preserve-symlinks' concurrently 'yarn start:tsc' 'tsx src/index.ts'",
"start:tsc": "tsc -b -w --preserveWatchOutput",
"start-minimal": "NODE_OPTIONS='--preserve-symlinks' tsx src/index.ts",
"start-without-ssr": "cross-env DISABLE_SSR=true NODE_OPTIONS='--preserve-symlinks' yarn start",
"start-with-local-graphql": "cross-env LOCAL_GRAPHQL_API=true NODE_OPTIONS='--preserve-symlinks' yarn start",
"start-prod": "cross-env NODE_ENV=production node build/server.mjs",
"e2e": "playwright test --ui",
"e2e:headless": "playwright test",
"e2e:record": "DISABLE_CSP=true RECORD_FIXTURES=true playwright test --ui",
"vercel-build": "npm run build",
"vercel-start": "cross-env NODE_ENV=production NOW=true node build/server",
"generate-gql:server": "graphql-codegen --config codegen.server.ts && prettier --write src/graphqlTypes.ts src/schema.graphql",
"generate-gql:local": "graphql-codegen --config codegen.local.ts && prettier --write src/graphqlTypes.ts src/schema.graphql",
"check-translations": "vitest --run src/messages/__tests__/"
},
"engines": {
"node": ">=20.13.1",
"npm": ">=9.0.0"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/schema-ast": "^4.1.0",
"@graphql-codegen/typescript": "^4.1.2",
"@graphql-codegen/typescript-operations": "^4.4.0",
"@graphql-eslint/eslint-plugin": "^4.3.0",
"@ndla/preset-panda": "^0.0.48",
"@ndla/scripts": "^2.1.3",
"@ndla/types-backend": "^1.0.1",
"@ndla/types-embed": "^5.0.6-alpha.0",
"@ndla/types-taxonomy": "^1.0.33",
"@pandacss/dev": "^0.48.0",
"@playwright/test": "^1.43.1",
"@sentry/vite-plugin": "^2.22.6",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/express": "^5.0.0",
"@types/lodash": "^4.17.13",
"@types/node": "^22.10.1",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.1",
"@vitejs/plugin-react": "^4.3.4",
"babel-plugin-graphql-tag": "^3.3.0",
"concurrently": "^9.1.0",
"esbuild": "^0.24.0",
"eslint": "^9.16.0",
"eslint-config-ndla": "^6.0.0-alpha.0",
"jsdom": "^25.0.1",
"nock": "^14.0.0-beta.18",
"postcss": "^8.4.39",
"postcss-import": "^16.1.0",
"postcss-preset-env": "^10.0.1",
"postcss-reporter": "^7.1.0",
"prettier": "^3.2.5",
"sirv": "^3.0.0",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"vite": "^6.0.2",
"vitest": "^2.1.8"
},
"dependencies": {
"@apollo/client": "^3.12.2",
"@ark-ui/react": "^4.1.2",
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/modifiers": "^8.0.0",
"@dnd-kit/sortable": "9.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@fontsource/source-code-pro": "^4.5.10",
"@fontsource/source-sans-pro": "^4.5.9",
"@fontsource/source-serif-pro": "^4.5.7",
"@lexical/react": "^0.12.4",
"@ndla/article-converter": "^10.0.84-alpha.0",
"@ndla/core": "^5.0.3",
"@ndla/hooks": "^2.1.11",
"@ndla/icons": "^8.0.48-alpha.0",
"@ndla/image-search": "^11.0.73-alpha.0",
"@ndla/licenses": "^8.0.6-alpha.0",
"@ndla/primitives": "^1.0.65-alpha.0",
"@ndla/safelink": "^7.0.66-alpha.0",
"@ndla/styled-system": "^0.0.29",
"@ndla/tracker": "^5.0.16-alpha.0",
"@ndla/ui": "^56.0.81-alpha.0",
"@ndla/util": "^5.0.5-alpha.0",
"@sentry/react": "^8.42.0",
"cross-env": "^7.0.3",
"express": "^5.0.0",
"express-prom-bundle": "^8.0.0",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
"helmet": "^7.0.0",
"html-react-parser": "^5.2.0",
"i18next": "^23.11.5",
"jsonwebtoken": "^9.0.2",
"lexical": "^0.12.4",
"lodash": "^4.17.21",
"openid-client": "^5.6.1",
"picocolors": "^1.1.1",
"prom-client": "^15.1.2",
"query-string": "5",
"react": "^19.0.0",
"react-device-detect": "^2.2.3",
"react-dom": "^19.0.0",
"react-hook-form": "^7.53.2",
"react-i18next": "^14.1.2",
"react-router-dom": "^6.3.0",
"serialize-javascript": "^6.0.2",
"source-map-support": "^0.5.9",
"winston": "^3.12.0"
},
"repository": {
"type": "git",
"url": "https://github.com/NDLANO/ndla-frontend.git"
},
"bugs": {
"url": "https://github.com/NDLANO/ndla-frontend/issues"
},
"homepage": "https://github.com/NDLANO/ndla-frontend",
"author": "ndla@knowit.no",
"license": "GPL-3.0",
"packageManager": "yarn@4.5.1",
"browserslist": [
"> 0.25%",
"not dead"
]
}