From 29165a8f3471ee37459d4544dcbf031675ac2842 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Tue, 24 May 2022 23:38:25 +0200 Subject: [PATCH] Move to typescript --- .eslintrc.json | 1 + .parcelrc | 8 - declarations.d.ts | 1 + demo/electron-tabs.html | 2 +- dist/electron-tabs.d.ts | 0 dist/electron-tabs.js | 2868 +++++++++++++++++++++-- dist/electron-tabs.js.map | 2 +- dist/electron-tabs.sortable.js | 3496 ---------------------------- dist/electron-tabs.sortable.js.map | 1 - package-lock.json | 71 +- package.json | 16 +- src/index.d.ts | 118 - src/{index.js => index.ts} | 570 ++--- src/sortable.js | 4 - tsconfig.json | 8 + 15 files changed, 3069 insertions(+), 4097 deletions(-) delete mode 100644 .parcelrc create mode 100644 declarations.d.ts create mode 100644 dist/electron-tabs.d.ts delete mode 100644 dist/electron-tabs.sortable.js delete mode 100644 dist/electron-tabs.sortable.js.map delete mode 100644 src/index.d.ts rename src/{index.js => index.ts} (62%) delete mode 100644 src/sortable.js create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index e5a20e9..2193baf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,5 @@ { + "root": true, "env": { "browser": true, "es2021": true diff --git a/.parcelrc b/.parcelrc deleted file mode 100644 index ba2e905..0000000 --- a/.parcelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@parcel/config-default", - "transformers": { - "*.css": [ - "parcel-transformer-css-to-string" - ] - } -} diff --git a/declarations.d.ts b/declarations.d.ts new file mode 100644 index 0000000..cbe652d --- /dev/null +++ b/declarations.d.ts @@ -0,0 +1 @@ +declare module "*.css"; diff --git a/demo/electron-tabs.html b/demo/electron-tabs.html index 358cfb9..920fa93 100644 --- a/demo/electron-tabs.html +++ b/demo/electron-tabs.html @@ -15,7 +15,7 @@ - +