Tailwind CSS and data attributes
This commit is contained in:
parent
32cc453505
commit
dfee30e5e9
5 changed files with 139 additions and 0 deletions
42
tailwindcss/flake.nix
Normal file
42
tailwindcss/flake.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
inputs = {
|
||||
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
||||
devshell.url = "github:numtide/devshell";
|
||||
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs:
|
||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
imports = [ inputs.devshell.flakeModule ];
|
||||
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devshells.default = {
|
||||
packages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "serve";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
simple-http-server
|
||||
tailwindcss_4
|
||||
watchman
|
||||
];
|
||||
|
||||
text = ''
|
||||
simple-http-server --index --nocache "$@" & \
|
||||
tailwindcss --output tailwind.css --watch & \
|
||||
wait
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue