Skip to content

Commit 7bc9c01

Browse files
committed
update watchman config
1 parent 3fc6963 commit 7bc9c01

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

docs/.watchmanconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dirs": [ "_book"]
3+
}

docs/Compiler-options.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
BuckleScript inherits the command line arguments of the [OCaml compiler](http://caml.inria.fr/pub/docs/manual-ocaml/comp.html). It also adds several flags:
22

3+
* -bs-main (single directory build)
4+
5+
```bash
6+
bsc -bs-main main.ml
7+
```
8+
9+
`bsc` will build module `Main` and all its dependencies, when it
10+
finishes, it will run `node main.js`.
11+
12+
```bash
13+
bsc -c -bs-main main.ml
14+
```
15+
16+
The same as above, but will not run `node`.
17+
318
* -bs-files
419

520
So that you can do

docs/build.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
"trigger", ".", {
3+
"name": "build",
4+
"expression": ["pcre", "(\\.(ml|md|json|sh)$|bsc$|Makefile)"],
5+
"command": ["./build.sh"],
6+
"append_files" : true
7+
}
8+
]

docs/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
gitbook build >> build.compile
3+
4+
echo "copy files start..." >> build.compile
5+
cp -r _book/* ../../scriptdoc.git/
6+
echo "copy files finished" >> build.compile

0 commit comments

Comments
 (0)