Skip to content

Commit 48f459e

Browse files
rintciuspaf31
authored andcommitted
Add a section for development to README (#109)
1 parent 87879f7 commit 48f459e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,50 @@ The application takes the following arguments on the command line:
3030
### Example
3131

3232
dist/build/trypurescript/trypurescript 8081 'bower_components/purescript-*/src/**/*.purs'
33+
34+
# Development
35+
36+
## 1. Client setup
37+
38+
```
39+
git clone [email protected]:purescript/trypurescript.git
40+
cd trypurescript
41+
git co gh-pages
42+
43+
bower install
44+
npm run build
45+
npm run bundle
46+
47+
httpserver 8080 #eg with: alias httpserver='python -m SimpleHTTPServer'
48+
open http://localhost:8080
49+
```
50+
51+
## 2. Work with local compile server
52+
53+
```
54+
git clone [email protected]:purescript/trypurescript.git
55+
cd trypurescript
56+
57+
stack build
58+
59+
# use one of the backends
60+
cd staging/core
61+
# get the sources of the deps
62+
psc-package update
63+
64+
# note: globs like **/src/** do not work
65+
stack exec trypurescript 8081 ".psc-package/psc-0.11.6/*/*/src/**/*.purs" "src/*.purs"
66+
# should output that is is compiling the sources (first time)
67+
# then: Setting phasers to stun... (port 8081) (ctrl-c to quit)
68+
```
69+
70+
## 3. Point client to local compile server
71+
72+
(instead of the ones at try.purescript.org)
73+
```
74+
# edit API.purs
75+
76+
, compile: compile "http://localhost:8081"
77+
, getBundle: getDefaultBundle "http://localhost:8081"
78+
79+
```

0 commit comments

Comments
 (0)