From 3287dcb8ec2543d1c1ff1bf53c99cd3e50988e71 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 8 Dec 2023 12:26:58 +0100 Subject: [PATCH] add dart-sass --- flake.nix | 2 +- mprocs.yaml | 3 +++ public/index.html | 10 ---------- styles/style.scss | 0 4 files changed, 4 insertions(+), 11 deletions(-) create mode 100644 styles/style.scss diff --git a/flake.nix b/flake.nix index 380c2e1..86cbfb5 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ pkgs = nixpkgs.legacyPackages.${system}; in { devShells.default = pkgs.mkShell { - buildInputs = with pkgs; [typescript devd]; + buildInputs = with pkgs; [typescript devd dart-sass]; }; } ); diff --git a/mprocs.yaml b/mprocs.yaml index 86ead68..c4c8f5f 100644 --- a/mprocs.yaml +++ b/mprocs.yaml @@ -3,6 +3,9 @@ "tscomp": { "shell": "tsc src/main.ts --outFile dist/main.js --watch" }, + "d-sass": { + "shell": "sass styles/style.scss dist/style.css -w" + }, "public": { "shell": "nu -c 'watch public/ { rm dist/*.html; rm dist/*.css; mkdir dist; cp public/* dist}'" }, diff --git a/public/index.html b/public/index.html index ba44066..099ab76 100644 --- a/public/index.html +++ b/public/index.html @@ -10,18 +10,8 @@ -
-
-

Hello world

-
-
-

Example text

-
- \ No newline at end of file diff --git a/styles/style.scss b/styles/style.scss new file mode 100644 index 0000000..e69de29