From 0bb99c00ad0bbafaf964aef4e389e951f62668d4 Mon Sep 17 00:00:00 2001
From: hotsocket
Date: Tue, 26 Aug 2025 13:49:00 -0500
Subject: [PATCH] i think i did some more deno-ification? blehhh
---
deno.json | 7 ++++++
flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
flake.nix | 19 ++++++++++++++++
package.json | 5 ++---
readme | 8 +++++++
shell.nix | 7 ------
6 files changed, 97 insertions(+), 10 deletions(-)
create mode 100644 deno.json
create mode 100644 flake.lock
create mode 100644 flake.nix
delete mode 100644 shell.nix
diff --git a/deno.json b/deno.json
new file mode 100644
index 0000000..602bd01
--- /dev/null
+++ b/deno.json
@@ -0,0 +1,7 @@
+{
+ "compilerOptions": {
+ "lib": [
+ "dom"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..013dd56
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1755615617,
+ "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "20075955deac2583bb12f07151c2df830ef346b4",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..6117b32
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,19 @@
+{
+ inputs = {
+ flake-utils.url = "github:numtide/flake-utils";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ };
+
+ outputs = inputs:
+ inputs.flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = (import (inputs.nixpkgs) { inherit system; });
+ in {
+ devShell = pkgs.mkShell {
+ buildInputs=[
+ pkgs.deno
+ ];
+ };
+ }
+ );
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index d750501..3b89d5e 100644
--- a/package.json
+++ b/package.json
@@ -14,9 +14,8 @@
"@atcute/identity-resolver": "^1.1.3"
},
"scripts": {
- "cert": "mkdir certs && cd certs && mkcert 127.0.0.1",
- "serve": "http-server ./out -C ./certs/127.0.0.1.pem -K ./certs/127.0.0.1-key.pem",
- "build": "esbuild src/* --bundle --outdir=out && rsync -av static/ out/",
+ "serve": "http-server ./out -C",
+ "build": "deno bundle src/* --outdir=out && rsync -av static/ out/",
"build-prod": "esbuild src/* --minify --tree-shaking=true --bundle --outdir=out && rsync -av static/ out/"
}
}
diff --git a/readme b/readme
index 786f969..5cbce84 100644
--- a/readme
+++ b/readme
@@ -18,3 +18,11 @@ lol lmao i really thought i could get away with a single pure js file
hey! heads up! im just thinking that as i add things someone might go "wow i want to use that"
i dont know how packaging works (yet). if you can somehow pull my code into your project as it stands, expect it to break.
its not good for your health. just dont. not yet?
+
+
+> I have learned that the name you give something when you don't know
+> what you should call it should always end up being the final name and
+> that's also the case if objectively, it sucks.
+- @poggers.website
+at://did:plc:7ggpsji45es4auo5pqjmnarr/app.bsky.feed.post/3lx5d3p4oos2n
+
diff --git a/shell.nix b/shell.nix
deleted file mode 100644
index 433cde1..0000000
--- a/shell.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{ pkgs ? import {} }:
-pkgs.mkShell {
- packages = with pkgs; [
- deno
- mkcert
- ];
-}
--
2.51.2
|