migrated commands to justfile
This commit is contained in:
parent
bc27ffab4e
commit
59cbf07099
2 changed files with 13 additions and 22 deletions
23
flake.nix
23
flake.nix
|
|
@ -7,24 +7,6 @@
|
|||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
#Shell scripts for managing the two package maangers from one interface
|
||||
build-tailwind = pkgs.writeShellScriptBin "build-tailwind" ''
|
||||
#!/usr/bin/env zsh
|
||||
set -e
|
||||
export PATH=${pkgs.nodejs_20}/bin:${pkgs.nodePackages_latest.pnpm}/bin:$PATH
|
||||
pnpm dlx tailwindcss -i src/styles/tailwind.css -o assets/main.css --watch
|
||||
'';
|
||||
run-dev = pkgs.writeShellScriptBin "run-dev" ''
|
||||
#!/usr/bin/env zsh
|
||||
set -e
|
||||
cargo watch -x 'run test_data/test.json'
|
||||
'';
|
||||
run-prettier = pkgs.writeShellScriptBin "run-prettier" ''
|
||||
#!/usr/bin/env zsh
|
||||
set -e
|
||||
pnpm prettier --write --ignore-unknown .
|
||||
'';
|
||||
|
||||
in {
|
||||
defaultPackage.${system} = with pkgs; stdenv.mkDerivation {
|
||||
name = "sk-tcg-trader";
|
||||
|
|
@ -36,6 +18,7 @@
|
|||
rustc
|
||||
cargo
|
||||
cargo-watch
|
||||
just
|
||||
nodejs_20
|
||||
nodePackages_latest.pnpm
|
||||
];
|
||||
|
|
@ -46,9 +29,5 @@
|
|||
export OPENSSL_INCLUDE_DIR=${openssl.dev}/include
|
||||
'';
|
||||
};
|
||||
|
||||
build-tailwind = build-tailwind;
|
||||
run-dev = run-dev;
|
||||
run-prettier = run-prettier;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
12
justfile
Normal file
12
justfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
tailwind:
|
||||
export PATH=${pkgs.nodejs_20}/bin:${pkgs.nodePackages_latest.pnpm}/bin:$PATH
|
||||
pnpm dlx tailwindcss -i src/styles/tailwind.css -o assets/main.css --watch
|
||||
|
||||
dev:
|
||||
cargo watch -x 'run test_data/test.json'
|
||||
|
||||
prettier:
|
||||
pnpm prettier --write --ignore-unknown .
|
||||
|
||||
init-env:
|
||||
pnpm i
|
||||
Loading…
Add table
Add a link
Reference in a new issue