Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,50 @@ The application takes the following arguments on the command line:
### Example

dist/build/trypurescript/trypurescript 8081 'bower_components/purescript-*/src/**/*.purs'

# Development

## 1. Client setup

```
git clone git@github.com:purescript/trypurescript.git
cd trypurescript
git co gh-pages

bower install
npm run build
npm run bundle

httpserver 8080 #eg with: alias httpserver='python -m SimpleHTTPServer'
open http://localhost:8080
```

## 2. Work with local compile server

```
git clone git@github.com:purescript/trypurescript.git
cd trypurescript

stack build

# use one of the backends
cd staging/core
# get the sources of the deps
psc-package update

# note: globs like **/src/** do not work
stack exec trypurescript 8081 ".psc-package/psc-0.11.6/*/*/src/**/*.purs" "src/*.purs"
# should output that is is compiling the sources (first time)
# then: Setting phasers to stun... (port 8081) (ctrl-c to quit)
```

## 3. Point client to local compile server

(instead of the ones at try.purescript.org)
```
# edit API.purs

, compile: compile "http://localhost:8081"
, getBundle: getDefaultBundle "http://localhost:8081"

```