]> git.amazingca.dev Git - autumn/todo/commitdiff
Add deployable workflow
authorAmazingca <autumn@amazingca.dev>
Thu, 7 May 2026 00:55:31 +0000 (18:55 -0600)
committerAmazingca <autumn@amazingca.dev>
Thu, 7 May 2026 00:55:31 +0000 (18:55 -0600)
.gitignore [new file with mode: 0644]
.tangled/workflows/deploy.yaml [new file with mode: 0644]
app/archived.html [moved from archived.html with 100% similarity]
app/archived.js [moved from archived.js with 100% similarity]
app/index.html [moved from index.html with 100% similarity]
app/index.js [moved from index.js with 100% similarity]
app/settings.html [moved from settings.html with 100% similarity]
app/settings.js [moved from settings.js with 100% similarity]
app/style.css [moved from style.css with 100% similarity]
wrangler.jsonc [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a011b10
--- /dev/null
@@ -0,0 +1,6 @@
+# wrangler files
+.wrangler
+.dev.vars*
+!.dev.vars.example
+.env*
+!.env.example
diff --git a/.tangled/workflows/deploy.yaml b/.tangled/workflows/deploy.yaml
new file mode 100644 (file)
index 0000000..11a4e82
--- /dev/null
@@ -0,0 +1,13 @@
+when:
+  - event: ["push", "manual"]
+    branch: ["main"]
+
+engine: "nixery"
+
+dependencies:
+  nixpkgs:
+    - wrangler
+
+steps:
+  - name: "Publish with Wrangler"
+    command: "wrangler deploy"
similarity index 100%
rename from archived.html
rename to app/archived.html
similarity index 100%
rename from archived.js
rename to app/archived.js
similarity index 100%
rename from index.html
rename to app/index.html
similarity index 100%
rename from index.js
rename to app/index.js
similarity index 100%
rename from settings.html
rename to app/settings.html
similarity index 100%
rename from settings.js
rename to app/settings.js
similarity index 100%
rename from style.css
rename to app/style.css
diff --git a/wrangler.jsonc b/wrangler.jsonc
new file mode 100644 (file)
index 0000000..6180b7e
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "$schema": "node_modules/wrangler/config-schema.json",
+  "name": "todo",
+  "compatibility_date": "2026-05-07",
+  "observability": {
+    "enabled": true
+  },
+  "assets": {
+    "directory": "./app"
+  },
+  "compatibility_flags": [
+    "nodejs_compat"
+  ]
+}