]> git.wh0rd.org - chrome-ext/template.git/commitdiff
WIP main
authorMike Frysinger <vapier@gmail.com>
Wed, 21 Oct 2026 06:25:27 +0000 (02:25 -0400)
committerMike Frysinger <vapier@gmail.com>
Wed, 21 Oct 2026 06:25:27 +0000 (02:25 -0400)
html/options.html
js/background.js [deleted file]
js/background_main.js [new file with mode: 0644]
js/options.js [deleted file]
js/options.test.js [new file with mode: 0644]
js/options_main.js [new file with mode: 0644]
manifest.json
package.json

index 4c2167712c6d9817128e5bfddfcbff0b6b8241ec..9513ea571297f5ac06c57c8e6d5ee9292fe6d580 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8" />
     <title>Options</title>
     <link rel="stylesheet" href="../css/options.css" />
-    <script type="module" src="../js/options.js"></script>
+    <script type="module" src="../js/options_main.js"></script>
   </head>
   <body></body>
 </html>
diff --git a/js/background.js b/js/background.js
deleted file mode 100644 (file)
index 5cd428c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Written by Mike Frysinger <vapier@gmail.com>.  Released into the public domain.
-
-/**
- * @fileoverview Code for the background page.
- */
diff --git a/js/background_main.js b/js/background_main.js
new file mode 100644 (file)
index 0000000..5cd428c
--- /dev/null
@@ -0,0 +1,5 @@
+// Written by Mike Frysinger <vapier@gmail.com>.  Released into the public domain.
+
+/**
+ * @fileoverview Code for the background page.
+ */
diff --git a/js/options.js b/js/options.js
deleted file mode 100644 (file)
index 31567c1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Written by Mike Frysinger <vapier@gmail.com>.  Released into the public domain.
-
-/**
- * @fileoverview Code for the options page.
- */
diff --git a/js/options.test.js b/js/options.test.js
new file mode 100644 (file)
index 0000000..646f6e0
--- /dev/null
@@ -0,0 +1,5 @@
+// Written by Mike Frysinger <vapier@gmail.com>.  Released into the public domain.
+
+it('test', () => {
+  console.log('ok');
+});
diff --git a/js/options_main.js b/js/options_main.js
new file mode 100644 (file)
index 0000000..31567c1
--- /dev/null
@@ -0,0 +1,5 @@
+// Written by Mike Frysinger <vapier@gmail.com>.  Released into the public domain.
+
+/**
+ * @fileoverview Code for the options page.
+ */
index 3966eeb5b7c155ef94803bc696da59c96645a274..cf443f8aa6643d73229151c3fe97ed94f94f8bc1 100644 (file)
@@ -18,6 +18,6 @@
   "action": {},
   "background": {
     "type": "module",
-    "service_worker": "js/background.js"
+    "service_worker": "js/background_main.js"
   }
 }
index 46fa0b2a14c063bc01e92e20ce7c7923e0014235..2e400efd30cec6faaad34702a8ef2e8e3639e7f8 100644 (file)
     "lint:js": "eslint --cache js/*.js",
     "lint:md": "markdownlint *.md",
     "release": "npm-run-all --parallel ci dist",
-    "start": "http-server -a localhost -c-1 --cors ."
+    "start": "http-server -a localhost -c-1 --cors .",
+    "test": "npm run test:web",
+    "test:web": "web-test-runner --static-logging js/**/*.test.js"
   },
   "devDependencies": {
-    "cssnano": "~7",
-    "eslint": "~9",
-    "eslint-plugin-jsdoc": "~50",
+    "@web/dev-server": "~1",
+    "@web/test-runner": "~1",
+    "chai": "~6",
+    "chai-dom": "~1",
+    "cssnano": "~8",
+    "eslint": "~10",
+    "eslint-config-prettier": "~10",
+    "eslint-plugin-jsdoc": "~64",
+    "eslint-plugin-lit": "~2",
+    "eslint-plugin-wc": "~3",
     "html-minifier": "~4",
     "http-server": "~14",
     "json-minify": "^1.0.0",
+    "lit": "~3",
     "markdownlint-cli": "~0",
+    "mocha": "~11",
+    "npm": "~11",
     "npm-run-all": "~4",
     "postcss": "~8",
-    "postcss-cli": "~8",
+    "postcss-cli": "~11",
     "prettier": "~3",
-    "terser": "~5"
-  },
-  "dependencies": {}
+    "sinon": "~22",
+    "sinon-chai": "~4",
+    "terser": "~5",
+    "typescript": "~7"
+  }
 }