Incremental Commit to update backups and use pnpm
This commit is contained in:
1 parent
0b77b0516d
commit
68f71c9d6c
2 files changed
+7
-24
No files matched your search
@@ -8,32 +8,15 @@ in pkgs.mkShell rec {
|
||||
buildInputs = [
|
||||
# node for server
|
||||
nodejs
|
||||
nodePackages.npm
|
||||
#nodePackages.npm
|
||||
nodemon
|
||||
pnpm
|
||||
pm2
|
||||
];
|
||||
|
||||
# Run this command, only after creating the virtual environment
|
||||
postVenvCreation = ''
|
||||
unset SOURCE_DATE_EPOCH
|
||||
'';
|
||||
|
||||
postShellHook = ''
|
||||
|
||||
if [[ ! -f lockfile.running ]] ; then
|
||||
echo "No Lock File, starting servers"
|
||||
touch lockfile.running
|
||||
|
||||
# start service
|
||||
# npm run start or whatever
|
||||
|
||||
fi
|
||||
|
||||
# kill everything when main screen is closed
|
||||
function end {
|
||||
echo "Exiting, Removing Lockfile"
|
||||
rm -f lockfile.running
|
||||
}
|
||||
trap end EXIT
|
||||
echo("Welcome to solid scribe")
|
||||
alias npm=pnpm
|
||||
'';
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user