Use Docker volumes and nodemon in development

This commit is contained in:
Omar Brikaa 2022-02-10 15:28:17 +02:00
parent c238ff6254
commit a013613a59
5 changed files with 712 additions and 34 deletions

View file

@ -42,6 +42,12 @@ with pkgs; rec {
gnugrep
rename
util-linux
nodejs-16_x
yarn
python3
gcc
gnumake
gnused
];
extraCommands = ''
@ -53,6 +59,9 @@ with pkgs; rec {
echo "nixbld$i:x:$(( $i + 30000 )):30000:Nix build user $i:/var/empty:/run/current-system/sw/bin/nologin" >> etc/passwd
done
mkdir -p usr/bin
ln -s /bin/env usr/bin/env
chmod -R 1777 usr
chmod 1777 {,var/}tmp/
'';
@ -86,4 +95,4 @@ with pkgs; rec {
};
};
};
}
}

View file

@ -8,18 +8,20 @@
"express": "^4.17.1",
"express-ws": "^5.0.2",
"logplease": "^1.2.15",
"nocamel": "git://github.com/HexF/nocamel.git#patch-1",
"node-fetch": "^2.6.1",
"uuid": "^8.3.2",
"nocamel": "git://github.com/HexF/nocamel.git#patch-1",
"waitpid": "git://github.com/HexF/node-waitpid.git"
},
"license": "MIT",
"scripts": {
"dev": "nodemon .",
"lint": "prettier . --write",
"prepack": "yarn2nix > yarn.nix"
},
"devDependencies": {
"node2nix": "^1.6.0",
"nodemon": "^2.0.15",
"prettier": "2.2.1"
},
"bin": {

File diff suppressed because it is too large Load diff