diff options
author | Joris | 2016-11-14 16:57:51 +0100 |
---|---|---|
committer | Joris | 2016-11-14 16:57:51 +0100 |
commit | f5c6d4769363dae5d55ea900a6ca885cb02e41e7 (patch) | |
tree | 3f73d6f4a1e66877bbdd62125df4147d2255186a | |
parent | 11b77ffc8b283260a9781aa12189ac7ed469f318 (diff) |
Update tooling
-rw-r--r-- | .tmuxinator.yml | 2 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | build | 2 | ||||
-rwxr-xr-x | dev | 2 | ||||
-rw-r--r-- | shell.nix | 5 |
6 files changed, 9 insertions, 9 deletions
diff --git a/.tmuxinator.yml b/.tmuxinator.yml index 34b8cc4..518c502 100644 --- a/.tmuxinator.yml +++ b/.tmuxinator.yml @@ -1,4 +1,4 @@ -name: sharedCost +name: leboncoin-listener windows: - main: @@ -2,18 +2,17 @@ all: build clean: @cabal clean > /dev/null - @rm -r node_modules >/dev/null 2>&1 || true install: @cabal2nix --shell . > leboncoin-listener.nix @nix-shell leboncoin-listener.nix -I ~ --command 'cabal configure' - @npm install watch: - @./node_modules/nodemon/bin/nodemon.js -e hs,conf --exec 'make build-and-launch' + @nodemon -e hs,conf --exec 'make build-and-launch' build-and-launch: @(pkill leboncoin-listener || true) && (cabal run || true) +.PHONY: build build: @cabal build || true @@ -16,7 +16,7 @@ curl https://nixos.org/nix/install | sh Inside the project directory, open a nix shell: ``` -nix-shell +./dev ``` Configuration @@ -0,0 +1,2 @@ +#!/bin/sh +nix-shell --command "make clean install build" @@ -0,0 +1,2 @@ +#!/bin/sh +nix-shell --command "tmuxinator local" @@ -6,10 +6,7 @@ with import <nixpkgs> {}; { cabal2nix tmux tmuxinator + nodePackages.nodemon ]; - shellHook = '' - tmux kill-session -t leboncoin-listener >/dev/null 2>&1 - tmuxinator local - ''; }; } |