Selaa lähdekoodia

feat: added support for TypeScript on the frontend

Kristian Vos 2 vuotta sitten
vanhempi
commit
7a6536ccf5
3 muutettua tiedostoa jossa 30 lisäystä ja 1 poistoa
  1. 18 0
      frontend/package-lock.json
  2. 2 1
      frontend/package.json
  3. 10 0
      frontend/tsconfig.json

+ 18 - 0
frontend/package-lock.json

@@ -20,6 +20,7 @@
         "marked": "^4.0.16",
         "normalize.css": "^8.0.1",
         "toasters": "^2.3.1",
+        "typescript": "^4.7.4",
         "vite": "^2.9.12",
         "vue": "^3.2.36",
         "vue-chartjs": "^4.1.1",
@@ -4362,6 +4363,18 @@
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
+    "node_modules/typescript": {
+      "version": "4.7.4",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
+      "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+      "bin": {
+        "tsc": "bin/tsc",
+        "tsserver": "bin/tsserver"
+      },
+      "engines": {
+        "node": ">=4.2.0"
+      }
+    },
     "node_modules/unbox-primitive": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
@@ -7934,6 +7947,11 @@
       "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
       "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ=="
     },
+    "typescript": {
+      "version": "4.7.4",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
+      "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ=="
+    },
     "unbox-primitive": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",

+ 2 - 1
frontend/package.json

@@ -43,6 +43,7 @@
     "marked": "^4.0.16",
     "normalize.css": "^8.0.1",
     "toasters": "^2.3.1",
+    "typescript": "^4.7.4",
     "vite": "^2.9.12",
     "vue": "^3.2.36",
     "vue-chartjs": "^4.1.1",
@@ -54,4 +55,4 @@
     "vuedraggable": "^4.1.0",
     "vuex": "^4.0.2"
   }
-}
+}

+ 10 - 0
frontend/tsconfig.json

@@ -0,0 +1,10 @@
+{
+  "compilerOptions": {
+    "target": "esnext",
+    "module": "esnext",
+    "moduleResolution": "node",
+    "importHelpers": true,
+    "isolatedModules": true,
+    "noEmit": true
+  }
+}