Skip to content

Commit

Permalink
Unset local-bin-path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Grant Jeffries committed Nov 1, 2019
1 parent 3746375 commit 5a36d7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
```
Expand Down
6 changes: 4 additions & 2 deletions dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
;;

Expand Down
2 changes: 0 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
resolver: lts-13.29

local-bin-path: bin

packages:
- bowtie
- bowtie-blueprint
Expand Down

0 comments on commit 5a36d7c

Please sign in to comment.