Ver Fonte

Add TypeORM and sqlite

ghorsington há 5 anos atrás
pai
commit
2f469ba393
2 ficheiros alterados com 6 adições e 1 exclusões
  1. 3 0
      package.json
  2. 3 1
      tsconfig.json

+ 3 - 0
package.json

@@ -34,12 +34,15 @@
     "lowdb": "^1.0.0",
     "node-html-parser": "^1.1.16",
     "opencv4nodejs": "^4.9.0",
+    "reflect-metadata": "^0.1.13",
     "request": "^2.88.0",
     "request-promise-native": "^1.0.5",
     "rss-parser": "^3.4.3",
     "sha1": "^1.1.1",
+    "sqlite3": "^4.0.9",
     "translate-google": "^1.3.5",
     "turndown": "^5.0.1",
+    "typeorm": "^0.2.18",
     "typescript": "^3.5.2",
     "uws": "^99.0.0"
   },

+ 3 - 1
tsconfig.json

@@ -9,7 +9,9 @@
         "outDir": "build",
         "lib": ["es2018", "dom"],
         "esModuleInterop": true,
-        "target": "es2018"
+        "target": "es2018",
+        "emitDecoratorMetadata": true,
+        "experimentalDecorators": true
     },
     "include": [
         "src/**/*.ts",