]> Untitled Git - lemmy.git/blobdiff - ui/package.json
routes.api: fix get_captcha endpoint (#1135)
[lemmy.git] / ui / package.json
index 6d7ad775856f943d8170601a574aa285e7558101..76920d184a90e2f030d2687619e3ad94e0c8c23c 100644 (file)
@@ -1,60 +1,73 @@
 {
   "name": "lemmy",
-  "description": "A simple UI for lemmy",
+  "description": "The official Lemmy UI",
   "version": "1.0.0",
   "author": "Dessalines",
-  "license": "GPL-2.0-or-later",
+  "license": "AGPL-3.0-or-later",
   "main": "index.js",
   "scripts": {
+    "api-test": "jest src/api_tests/ -i --verbose",
     "build": "node fuse prod",
     "lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
+    "prebuild": "node generate_translations.js",
+    "prestart": "node generate_translations.js",
     "start": "node fuse dev"
   },
   "keywords": [],
   "dependencies": {
     "@types/autosize": "^3.0.6",
-    "@types/js-cookie": "^2.2.1",
+    "@types/jest": "^26.0.7",
+    "@types/js-cookie": "^2.2.6",
     "@types/jwt-decode": "^2.2.1",
-    "@types/markdown-it": "^0.0.9",
+    "@types/markdown-it": "^10.0.1",
     "@types/markdown-it-container": "^2.0.2",
-    "@types/node": "^13.7.0",
+    "@types/node": "^14.0.26",
+    "@types/node-fetch": "^2.5.6",
     "autosize": "^4.0.2",
     "bootswatch": "^4.3.1",
-    "classcat": "^1.1.3",
+    "choices.js": "^9.0.1",
+    "classcat": "^4.0.2",
     "dotenv": "^8.2.0",
     "emoji-short-name": "^1.0.0",
-    "husky": "^4.2.1",
-    "i18next": "^19.0.3",
-    "inferno": "^7.0.1",
-    "inferno-i18next": "nimbusec-oss/inferno-i18next",
-    "inferno-router": "^7.0.1",
+    "husky": "^4.2.5",
+    "i18next": "^19.4.1",
+    "inferno": "^7.4.2",
+    "inferno-helmet": "^5.2.1",
+    "inferno-i18next": "github:nimbusec-oss/inferno-i18next#semver:^7.4.2",
+    "inferno-router": "^7.4.2",
     "js-cookie": "^2.2.0",
     "jwt-decode": "^2.2.0",
-    "markdown-it": "^10.0.0",
-    "markdown-it-container": "^2.0.0",
+    "lemmy-js-client": "^1.0.9",
+    "markdown-it": "^11.0.0",
+    "markdown-it-container": "^3.0.0",
     "markdown-it-emoji": "^1.4.0",
-    "mobius1-selectr": "^2.4.13",
+    "markdown-it-sub": "^1.0.0",
+    "markdown-it-sup": "^1.0.0",
     "moment": "^2.24.0",
-    "prettier": "^1.18.2",
+    "node-fetch": "^2.6.0",
+    "prettier": "^2.0.4",
     "reconnecting-websocket": "^4.4.0",
-    "rxjs": "^6.4.0",
-    "terser": "^4.6.3",
-    "toastify-js": "^1.6.2",
-    "tributejs": "^4.1.1",
-    "twemoji": "^12.1.2",
-    "ws": "^7.0.0"
+    "register-service-worker": "^1.7.1",
+    "rxjs": "^6.5.5",
+    "terser": "^4.6.11",
+    "tippy.js": "^6.1.1",
+    "toastify-js": "^1.7.0",
+    "tributejs": "^5.1.3",
+    "ws": "^7.2.3"
   },
   "devDependencies": {
-    "eslint": "^6.5.1",
+    "eslint": "^7.5.0",
     "eslint-plugin-inferno": "^7.14.3",
-    "eslint-plugin-jane": "^7.0.2",
+    "eslint-plugin-jane": "^8.0.4",
     "fuse-box": "^3.1.3",
-    "lint-staged": "^10.0.2",
-    "sortpack": "^2.0.1",
-    "ts-node": "^8.6.2",
-    "ts-transform-classcat": "^0.0.2",
-    "ts-transform-inferno": "^4.0.2",
-    "typescript": "^3.7.5"
+    "jest": "^26.0.7",
+    "lint-staged": "^10.1.3",
+    "sortpack": "^2.1.4",
+    "ts-jest": "^26.1.3",
+    "ts-node": "^8.8.2",
+    "ts-transform-classcat": "^1.0.0",
+    "ts-transform-inferno": "^4.0.3",
+    "typescript": "^3.8.3"
   },
   "engines": {
     "node": ">=8.9.0"
@@ -62,7 +75,7 @@
   "engineStrict": true,
   "husky": {
     "hooks": {
-      "pre-commit": "yarn run ts-node translation_report.ts && git add ../README.md && cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged"
+      "pre-commit": "cargo +nightly clippy --manifest-path ../server/Cargo.toml --all-targets --workspace -- -D warnings && lint-staged"
     }
   },
   "lint-staged": {
@@ -71,7 +84,7 @@
       "eslint --fix"
     ],
     "../server/src/**/*.rs": [
-      "rustfmt --config-path ../server/.rustfmt.toml"
+      "rustfmt +nightly --config-path ../server/.rustfmt.toml"
     ],
     "package.json": [
       "sortpack"