From 142e0c9fac9896f8cb134fd1e1b010753402e7b8 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 2 Feb 2019 17:14:33 +0100 Subject: Make it works and add “galette” recipe --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c823259..2ab6ba2 100644 --- a/Makefile +++ b/Makefile @@ -7,17 +7,17 @@ stop: @tmux kill-session -t cooking test: - @pulp test --src-path js + @pulp --psc-package test --src-path js clean: - @rm -rf bower_components @rm -rf node_modules + @rm -rf .psc-package @stack exec cooking clean > /dev/null 2>&1 || true @stack clean > /dev/null install: - @yarn install - @bower install + @npm install + @psc-package install @stack setup .PHONY: build @@ -28,5 +28,8 @@ build: watch: @nodemon --watch src -e hs --exec 'make watch-command --silent' +watch-js: + @pulp --psc-package --watch build --src-path js + watch-command: @(killall cooking || :) && sleep 1 && stack build && stack exec cooking watch -- cgit v1.2.3