From b225218e94183b1e58085176706f7f517f9ae3fe Mon Sep 17 00:00:00 2001 From: Jonas Pfalzgraf Date: Sat, 1 Jun 2024 02:08:14 +0200 Subject: [PATCH] working on vite style integration --- .gitignore | 2 +- LICENSE | 2 +- package.json | 5 +-- public/manifest.json | 11 +---- public/options.html | 3 +- public/popup.html | 3 +- src/app.ts | 1 + src/background.ts | 13 +++--- src/settings.ts | 1 + tooling.tsconfig.json | 3 ++ tools/clean.ts | 9 ----- tools/deploy.ts | 84 --------------------------------------- tools/parse.ts | 43 ++++++++++++++++++++ tsconfig.json | 2 +- vite.config.background.js | 24 ----------- vite.config.js | 66 ++++++++++++++++++------------ vite.config.settings.js | 29 -------------- 17 files changed, 101 insertions(+), 200 deletions(-) delete mode 100644 tools/clean.ts delete mode 100644 tools/deploy.ts create mode 100644 tools/parse.ts delete mode 100644 vite.config.background.js delete mode 100644 vite.config.settings.js diff --git a/.gitignore b/.gitignore index 786253e..7a21a8d 100644 --- a/.gitignore +++ b/.gitignore @@ -688,7 +688,7 @@ FodyWeavers.xsd dist tools/syncConfig.js -tools/deploy.js +tools/parse.js tools/v2.js tools/clean.js package-lock.json diff --git a/LICENSE b/LICENSE index 0404ba7..79f09ef 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Jonas Pfalzgraf +Copyright (c) 2024 Jonas Pfalzgraf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 47f41da..f3c6f1b 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,9 @@ "private": true, "type": "module", "scripts": { - "deploy-v3": "npm run build-tooling && node ./tools/deploy.js && npm run sync && npm run build-js && npm run build-css && node ./tools/clean.js", + "deploy-v3": "npx rimraf ./dist/ && npm run build-tooling && npm run sync && npm run build && node ./tools/parse.js", "deploy-v2": "npm run deploy-v3 && node ./tools/v2.js", - "build-js": "vite build --config ./vite.config.js && vite build --config ./vite.config.settings.js && vite build --config ./vite.config.background.js", - "build-css": "sass ./src/sass/:./dist/css/", + "build": "vite build", "build-tooling": "tsc --project ./tooling.tsconfig.json", "watch-ts": "tsc -w -p tsconfig.json", "watch-sass": "sass --watch ./src/sass/:./dist/css/", diff --git a/public/manifest.json b/public/manifest.json index 2f57490..42ee42b 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -21,15 +21,6 @@ "notifications" ], "background": { - "service_worker": "js/background.js" - }, - "commands": { - "_execute_browser_action": { - "suggested_key": { - "default": "Ctrl+Shift+F", - "mac": "MacCtrl+Shift+F" - }, - "description": "Opens popup.html" - } + "service_worker": "background.js" } } \ No newline at end of file diff --git a/public/options.html b/public/options.html index 161fb1a..9456208 100644 --- a/public/options.html +++ b/public/options.html @@ -6,7 +6,6 @@ {{BET}} Options -