diff --git a/README.md b/README.md index 7458484e..0911cfa3 100644 --- a/README.md +++ b/README.md @@ -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" + +```