add dart-sass
This commit is contained in:
parent
455811c844
commit
3287dcb8ec
4 changed files with 4 additions and 11 deletions
|
@ -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];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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}'"
|
||||
},
|
||||
|
|
|
@ -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
0
styles/style.scss
Normal file
Loading…
Reference in a new issue