From 5a36d7c20dd8fe07840d447778486f839269375b Mon Sep 17 00:00:00 2001 From: Ian Grant Jeffries Date: Fri, 1 Nov 2019 16:59:11 -0400 Subject: [PATCH] Unset local-bin-path. --- .gitignore | 1 - README.md | 7 +++---- dev | 6 ++++-- stack.yaml | 2 -- 4 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ba077a4..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bin diff --git a/README.md b/README.md index 4da3057..61e021f 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ Bowtie programs! ```sh stack install --- installs bowtie to ./bin/bowtie +# installs bowtie, bowtie-js, bowtie-blueprint, and bowtie-visualize -./bin/bowtie ./example-app/lunar-lander.bowtie +bowtie ./example-app/lunar-lander.bowtie -- this evaluates lunar-lander and prints the result to the screen. -- to get this into a webpage and actually play it see ./bowtie-js ``` @@ -45,9 +45,8 @@ JavaScript transpiler (WIP). ```sh stack install --- installs bowtie-js to ./bin/bowtie-js -./bin/bowtie-js example-app/lunar-lander.bowtie > bowtie-js/main.js +bowtie-js example-app/lunar-lander.bowtie > bowtie-js/main.js firefox ./bowtie-js/index.html ``` diff --git a/dev b/dev index cc7eeea..5c10d3a 100755 --- a/dev +++ b/dev @@ -4,6 +4,8 @@ # # cargo install watchexec +# Assumes you have `local-bin-path: .bin` set in your ~/.stack/config.yaml`. + case $1 in "stack") stack build --fast --file-watch --test --copy-bins @@ -27,11 +29,11 @@ case $1 in ;; "lunar") - watchexec --restart './bin/bowtie example-app/lunar-lander.bowtie' --watch bin/bowtie --watch example-app --watch example-lib + watchexec --restart './.bin/bowtie example-app/lunar-lander.bowtie' --watch .bin/bowtie --watch example-app --watch example-lib ;; "lunar-js") - ./bin/bowtie-js example-app/lunar-lander.bowtie > unpretty.js + ./.bin/bowtie-js example-app/lunar-lander.bowtie > unpretty.js prettier unpretty.js > bowtie-js/main.js ;; diff --git a/stack.yaml b/stack.yaml index a63ad6a..63bf65d 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1,5 @@ resolver: lts-13.29 -local-bin-path: bin - packages: - bowtie - bowtie-blueprint