]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove solution style ts config
authorChocobozzz <me@florianbigard.com>
Tue, 17 Aug 2021 12:01:51 +0000 (14:01 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 17 Aug 2021 12:06:56 +0000 (14:06 +0200)
client/angular.json
client/e2e/tsconfig.e2e.json
client/package.json
client/tsconfig.app.json [deleted file]
client/tsconfig.base.json [deleted file]
client/tsconfig.json
client/webpack/webpack.video-embed.js

index 2511615790f2b3b0d8e63f8f5daa0c1c9812e058..60a630c895cc4f8edc2d9de9ee53360259f10dee 100644 (file)
             "outputPath": "dist",
             "index": "src/index.html",
             "main": "src/main.ts",
-            "tsConfig": "tsconfig.app.json",
+            "tsConfig": "tsconfig.json",
             "polyfills": "src/polyfills.ts",
             "baseHref": "/",
             "deployUrl": "",
               "markdown-it-emoji/light",
               "sanitize-html",
               "debug",
-              "p2p-media-loader-hlsjs",
+              "@peertube/p2p-media-loader-hlsjs",
               "video.js",
               "sha.js/sha1",
               "postcss",
           "builder": "@angular-devkit/build-angular:tslint",
           "options": {
             "tsConfig": [
-              "tsconfig.app.json"
+              "tsconfig.json"
             ],
             "exclude": [
               "**/node_modules/**"
index 415179b489c129f9c987d3b95b84183c1c97f6ce..77d311e88d04e98370fe36d1b6c9798e9e96b477 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "extends": "../tsconfig.base.json",
+  "extends": "../tsconfig.json",
   "compilerOptions": {
     "outDir": "../out-tsc/app",
     "module": "commonjs",
@@ -10,4 +10,4 @@
       "node"
     ]
   }
-}
\ No newline at end of file
+}
index e74cbea5bcfa3e3c3069294a56cc0b45be0e3d55..6a9529cf6f779d4ec51bdc34e3d7aeaf0c7168a6 100644 (file)
@@ -14,7 +14,7 @@
   },
   "scripts": {
     "lint": "npm run lint-ts && npm run lint-scss",
-    "lint-ts": "tslint --project ./tsconfig.app.json -c ./tslint.json 'src/app/**/*.ts' 'src/standalone/**/*.ts'",
+    "lint-ts": "tslint --project ./tsconfig.json -c ./tslint.json 'src/app/**/*.ts' 'src/standalone/**/*.ts'",
     "lint-scss": "stylelint 'src/**/*.scss'",
     "webpack": "webpack",
     "tslint": "tslint",
diff --git a/client/tsconfig.app.json b/client/tsconfig.app.json
deleted file mode 100644 (file)
index ac7a1fb..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-  "extends": "./tsconfig.base.json",
-  "compilerOptions": {
-    "outDir": "./out-tsc/app",
-    "baseUrl": "./",
-    "types": [],
-    "lib": [
-      "es2017",
-      "es2016",
-      "es2015",
-      "dom"
-    ]
-  },
-  "files": [
-    "src/polyfills.ts"
-  ],
-  "include": [
-    "src/main*.ts",
-    "src/**/*.d.ts",
-    "src/shims/*.ts"
-  ],
-  "exclude": [
-    "../node_modules",
-    "../server"
-  ]
-}
diff --git a/client/tsconfig.base.json b/client/tsconfig.base.json
deleted file mode 100644 (file)
index fd297e6..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-{
-  "compileOnSave": false,
-  "compilerOptions": {
-    "downlevelIteration": true,
-    "outDir": "./dist/out-tsc",
-    "sourceMap": true,
-    "declaration": false,
-    "moduleResolution": "node",
-    "module": "esnext",
-    "experimentalDecorators": true,
-    "noImplicitAny": true,
-    "noImplicitThis": true,
-    "suppressImplicitAnyIndexErrors":true,
-    "alwaysStrict": true,
-    "importHelpers": true,
-    "strictBindCallApply": true,
-    "target": "es2015",
-    "typeRoots": [
-      "node_modules/@types"
-    ],
-    "lib": [
-      "es2018",
-      "dom"
-    ],
-    "baseUrl": "./",
-    "paths": {
-      "hls.js": [ "node_modules/hls.js/dist/hls.light" ],
-      "video.js": [ "node_modules/video.js/core" ],
-      "@app/*": [ "src/app/*" ],
-      "@shared/models/*": [ "../shared/models/*" ],
-      "@shared/models": [ "../shared/models" ],
-      "@shared/core-utils": [ "../shared/core-utils" ],
-      "@shared/core-utils/*": [ "../shared/core-utils/*" ],
-      "@root-helpers/*": [ "src/root-helpers/*" ],
-      "fs": [ "src/shims/noop.ts" ],
-      "http": [ "src/shims/http.ts" ],
-      "https": [ "src/shims/https.ts" ],
-      "path": [ "src/shims/path.ts" ],
-      "stream": [ "src/shims/stream.ts" ],
-      "crypto": [ "src/shims/noop.ts" ]
-    }
-  },
-  "angularCompilerOptions": {
-    "strictInjectionParameters": true,
-    "fullTemplateTypeCheck": true,
-    "strictTemplates": true,
-    "enableI18nLegacyMessageIdFormat": false
-  }
-}
index 64266d49db000733104030b2f1a4904b8b023638..fdf4dc777662c6f4d09fed11b81db9dab481c033 100644 (file)
@@ -1,14 +1,64 @@
-/*
-  This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
-  It is not intended to be used to perform a compilation.
-
-  To learn more about this file see: https://angular.io/config/solution-tsconfig.
-*/
 {
-  "files": [],
-  "references": [
-    {
-      "path": "./tsconfig.app.json"
+  "compileOnSave": false,
+  "compilerOptions": {
+    "downlevelIteration": true,
+    "outDir": "./dist/out-tsc",
+    "sourceMap": true,
+    "declaration": false,
+    "moduleResolution": "node",
+    "module": "esnext",
+    "experimentalDecorators": true,
+    "noImplicitAny": true,
+    "noImplicitThis": true,
+    "suppressImplicitAnyIndexErrors":true,
+    "alwaysStrict": true,
+    "importHelpers": true,
+    "strictBindCallApply": true,
+    "target": "es2015",
+    "typeRoots": [
+      "node_modules/@types"
+    ],
+    "lib": [
+      "es2018",
+      "es2017",
+      "es2016",
+      "es2015",
+      "dom"
+    ],
+    "baseUrl": "./",
+    "paths": {
+      "hls.js": [ "node_modules/hls.js/dist/hls.light" ],
+      "video.js": [ "node_modules/video.js/core" ],
+      "@app/*": [ "src/app/*" ],
+      "@shared/models/*": [ "../shared/models/*" ],
+      "@shared/models": [ "../shared/models" ],
+      "@shared/core-utils": [ "../shared/core-utils" ],
+      "@shared/core-utils/*": [ "../shared/core-utils/*" ],
+      "@root-helpers/*": [ "src/root-helpers/*" ],
+      "fs": [ "src/shims/noop.ts" ],
+      "http": [ "src/shims/http.ts" ],
+      "https": [ "src/shims/https.ts" ],
+      "path": [ "src/shims/path.ts" ],
+      "stream": [ "src/shims/stream.ts" ],
+      "crypto": [ "src/shims/noop.ts" ]
     }
-  ]
+  },
+  "files": [
+    "src/polyfills.ts"
+  ],
+  "include": [
+    "src/main*.ts",
+    "src/**/*.d.ts",
+    "src/shims/*.ts"
+  ],
+  "exclude": [
+    "../node_modules",
+    "../server"
+  ],
+  "angularCompilerOptions": {
+    "strictInjectionParameters": true,
+    "fullTemplateTypeCheck": true,
+    "strictTemplates": true,
+    "enableI18nLegacyMessageIdFormat": false
+  }
 }
index 727249467bbed014de1cb460b0529eb7c616d6f2..2ecbd09afc1300c2417d3306dec8e5587f83aca8 100644 (file)
@@ -70,7 +70,7 @@ module.exports = function () {
             {
               loader: 'ts-loader',
               options: {
-                configFile: 'tsconfig.base.json'
+                configFile: 'tsconfig.json'
               }
             }
           ]