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