add dart-sass

This commit is contained in:
Schrottkatze 2023-12-08 12:26:58 +01:00
parent 455811c844
commit 3287dcb8ec
4 changed files with 4 additions and 11 deletions

View file

@ -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];
};
}
);

View file

@ -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}'"
},

View file

@ -10,18 +10,8 @@
</head>
<body>
<header>
<div></div>
<h1>Hello world</h1>
</header>
<main>
<section>
<h2>Example text</h2>
</section>
</main>
<footer>
<p>some footer text</p>
</footer>
</body>
</html>

0
styles/style.scss Normal file
View file