]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: move "tsconfig.app.json" to <root> folder
authorĐặng Minh Dũng <dungdm93@live.com>
Mon, 2 Nov 2020 10:35:30 +0000 (17:35 +0700)
committerĐặng Minh Dũng <dungdm93@live.com>
Tue, 10 Nov 2020 11:12:05 +0000 (18:12 +0700)
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
src/pybind/mgr/dashboard/frontend/angular.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/src/tsconfig.app.json [deleted file]
src/pybind/mgr/dashboard/frontend/tsconfig.app.json [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/tsconfig.spec.json

index e2c2e8ad724d8796e05b5573e48c652d8893fe57..ba261665181ed03aa1cff93ffe3e64ad195c82b9 100644 (file)
@@ -39,7 +39,7 @@
             "outputPath": "dist",
             "index": "src/index.html",
             "main": "src/main.ts",
-            "tsConfig": "src/tsconfig.app.json",
+            "tsConfig": "tsconfig.app.json",
             "polyfills": "src/polyfills.ts",
             "assets": [
               "src/assets",
           "builder": "@angular-devkit/build-angular:tslint",
           "options": {
             "tsConfig": [
-              "src/tsconfig.app.json",
+              "tsconfig.app.json",
               "tsconfig.spec.json",
               "cypress/tsconfig.json"
             ],
index 25141d8bd6a1efcb0af64786a563a0f5153e1c6c..8ef91ae374db1ccfad215dae34534f2801c40ae0 100644 (file)
@@ -28,7 +28,7 @@
     "lint:prettier": "prettier --list-different \"{src,cypress}/**/*.{ts,scss}\"",
     "lint:html": "htmllint src/app/**/*.html && html-linter --config html-linter.config.json",
     "prelint:tsc": "npm run postinstall",
-    "lint:tsc": "tsc -p src/tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p cypress/tsconfig.json --noEmit",
+    "lint:tsc": "tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p cypress/tsconfig.json --noEmit",
     "lint:scss": "stylelint '**/*.scss'",
     "lint": "run-p -csl --aggregate-output lint:*",
     "fix:prettier": "prettier --write \"{src,cypress}/**/*.{ts,scss}\"",
     "fix": "run-p -csl --aggregate-output fix:*",
     "fix:audit": "npx npm-force-resolutions",
     "compodoc": "compodoc",
-    "doc-build": "compodoc -p src/tsconfig.app.json",
-    "doc-serve": "compodoc --port 8444 -s src/tsconfig.app.json",
-    "postinstall": "ngcc --properties es2015 browser module main --async false --first-only --tsconfig './src/tsconfig.app.json'"
+    "doc-build": "compodoc -p tsconfig.app.json",
+    "doc-serve": "compodoc --port 8444 -s tsconfig.app.json",
+    "postinstall": "ngcc --properties es2015 browser module main --async false --first-only --tsconfig 'tsconfig.app.json'"
   },
   "private": true,
   "jest": {
     "moduleNameMapper": {
-      "\\.scss$": "identity-obj-proxy"
+      "\\.scss$": "identity-obj-proxy",
+      "~/(.*)$": "<rootDir>/src/$1"
     },
     "preset": "jest-preset-angular",
     "setupFilesAfterEnv": [
diff --git a/src/pybind/mgr/dashboard/frontend/src/tsconfig.app.json b/src/pybind/mgr/dashboard/frontend/src/tsconfig.app.json
deleted file mode 100644 (file)
index 2e7a5b2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "extends": "../tsconfig.json",
-  "compilerOptions": {
-    "outDir": "../out-tsc/app",
-    "baseUrl": "./",
-    "types": []
-  },
-  "files": [
-    "main.ts",
-    "polyfills.ts"
-  ],
-  "include": [
-    "src/**/*.d.ts"
-  ]
-}
diff --git a/src/pybind/mgr/dashboard/frontend/tsconfig.app.json b/src/pybind/mgr/dashboard/frontend/tsconfig.app.json
new file mode 100644 (file)
index 0000000..f758d98
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "extends": "./tsconfig.json",
+  "compilerOptions": {
+    "outDir": "./out-tsc/app",
+    "types": []
+  },
+  "files": [
+    "src/main.ts",
+    "src/polyfills.ts"
+  ],
+  "include": [
+    "src/**/*.d.ts"
+  ]
+}
index 8ce5b87c80f281cacd1076ab8416bea1549bbd27..e1889d6c646637c2e988ac2683cd2e948537d10f 100644 (file)
@@ -2,7 +2,6 @@
   "extends": "./tsconfig.json",
   "compilerOptions": {
     "outDir": "./out-tsc/spec",
-    "baseUrl": "./src/",
     "module": "commonjs",
     "target": "es2015",
     "types": [