Browse Source

prepare for tsConfig generation

Adam Shaw 3 năm trước cách đây
mục cha
commit
ac7975f2a0

+ 4 - 4
.gitignore

@@ -2,7 +2,7 @@
 node_modules
 .turbo
 
-/dist
-/tests/dist
-/bundle/dist
-/packages/*/dist
+dist
+tsconfig.json
+.tsout
+.tsbuildinfo

+ 10 - 0
bundle/package.json

@@ -20,6 +20,16 @@
     "build": "workspace-scripts pkg:build",
     "clean": "workspace-scripts pkg:clean"
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": false,
     "exports": {

+ 0 - 17
bundle/tsconfig.json

@@ -1,17 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../packages/core" },
-    { "path": "../packages/interaction" },
-    { "path": "../packages/daygrid" },
-    { "path": "../packages/timegrid" },
-    { "path": "../packages/list" }
-  ]
-}

+ 10 - 0
packages/bootstrap/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/bootstrap/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/bootstrap5/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/bootstrap5/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/core/package.json

@@ -18,6 +18,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": false,
     "exports": {

+ 0 - 10
packages/core/tsconfig.json

@@ -1,10 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ]
-}

+ 10 - 0
packages/daygrid/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/daygrid/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/google-calendar/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/google-calendar/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/icalendar/package.json

@@ -18,6 +18,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/icalendar/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/interaction/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/interaction/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/list/package.json

@@ -17,6 +17,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/list/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/luxon/package.json

@@ -21,6 +21,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/luxon/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/luxon2/package.json

@@ -22,6 +22,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/luxon2/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/moment-timezone/package.json

@@ -23,6 +23,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/moment-timezone/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/moment/package.json

@@ -21,6 +21,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/moment/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/rrule/package.json

@@ -21,6 +21,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/rrule/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 10 - 0
packages/timegrid/package.json

@@ -18,6 +18,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 14
packages/timegrid/tsconfig.json

@@ -1,14 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" },
-    { "path": "../daygrid" }
-  ]
-}

+ 10 - 0
packages/web-component/package.json

@@ -16,6 +16,16 @@
     "clean": "workspace-scripts pkg:clean",
     "lint": "eslint ."
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "iifeExternals": {
       "@fullcalendar/core": "FullCalendar",

+ 0 - 13
packages/web-component/tsconfig.json

@@ -1,13 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../core" }
-  ]
-}

+ 11 - 0
tests/package.json

@@ -34,6 +34,17 @@
     "test": "workspace-scripts pkg:test",
     "clean": "workspace-scripts pkg:clean"
   },
+  "tsConfig": {
+    "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
+    "compilerOptions": {
+      "types": ["jasmine", "jasmine-jquery", "jquery"],
+      "rootDir": "./src",
+      "outDir": "./dist/.tsc"
+    },
+    "include": [
+      "./src/**/*"
+    ]
+  },
   "buildConfig": {
     "esm": false,
     "cjs": false,

+ 0 - 27
tests/tsconfig.json

@@ -1,27 +0,0 @@
-{
-  "extends":  "@fullcalendar/workspace-scripts/config/tsconfig.browser.json",
-  "compilerOptions": {
-    "types": ["jasmine", "jasmine-jquery", "jquery"],
-    "rootDir": "./src",
-    "outDir": "./dist/.tsc"
-  },
-  "include": [
-    "./src/**/*"
-  ],
-  "references": [
-    { "path": "../packages/core" },
-    { "path": "../packages/interaction" },
-    { "path": "../packages/icalendar" },
-    { "path": "../packages/daygrid" },
-    { "path": "../packages/timegrid" },
-    { "path": "../packages/list" },
-    { "path": "../packages/bootstrap" },
-    { "path": "../packages/bootstrap5" },
-    { "path": "../packages/luxon2" },
-    { "path": "../packages/google-calendar" },
-    { "path": "../packages/luxon" },
-    { "path": "../packages/moment" },
-    { "path": "../packages/moment-timezone" },
-    { "path": "../packages/rrule" }
-  ]
-}