This commit is contained in:
parent
10a9676db1
commit
b943a45122
5 changed files with 82 additions and 342 deletions
25
flake.nix
Normal file
25
flake.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
description = "Minimal Angular dev shell";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
packages = with pkgs; [ nodejs typescript nodePackages.typescript-language-server nodePackages.eslint ];
|
||||
shellHook = ''
|
||||
clear
|
||||
echo "------------------"
|
||||
echo "Deploying TFTStats"
|
||||
echo "------------------"
|
||||
npm install
|
||||
npm run build
|
||||
cp -R dist/tft_stats /var/www/
|
||||
'';
|
||||
};
|
||||
apps.${system}.ng-build = {};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue