Skip to content

Commit ef20103

Browse files
authored
Merge pull request #3693 from BuckleScript/fix_3692
fix #3692
2 parents c2556f1 + 171080c commit ef20103

File tree

10 files changed

+90
-0
lines changed

10 files changed

+90
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.exe
2+
*.obj
3+
*.out
4+
*.compile
5+
*.native
6+
*.byte
7+
*.cmo
8+
*.annot
9+
*.cmi
10+
*.cmx
11+
*.cmt
12+
*.cmti
13+
*.cma
14+
*.a
15+
*.cmxa
16+
*.obj
17+
*~
18+
*.annot
19+
*.cmj
20+
*.bak
21+
lib/bs
22+
*.mlast
23+
*.mliast
24+
.vscode
25+
.merlin
26+
.bsb.lock

jscomp/build_tests/cycle/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
# Build
4+
```
5+
npm run build
6+
```
7+
8+
# Watch
9+
10+
```
11+
npm run watch
12+
```
13+
14+
15+
# Editor
16+
If you use `vscode`, Press `Windows + Shift + B` it will build automatically
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "cycle",
3+
"version": "0.1.0",
4+
"sources": {
5+
"dir" : "src",
6+
"subdirs" : true
7+
},
8+
"package-specs": {
9+
"module": "commonjs",
10+
"in-source": true
11+
},
12+
"suffix": ".bs.js",
13+
"bs-dependencies": [
14+
],
15+
"warnings": {
16+
"error" : "+101"
17+
},
18+
"refmt": 3
19+
}

jscomp/build_tests/cycle/input.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//@ts-check
2+
var cp = require("child_process");
3+
var assert = require("assert");
4+
5+
var output = cp.spawnSync(`bsb`, { encoding: "utf8" ,shell:true});
6+
7+
8+
assert(/dependency cycle/.test(output.stdout))
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "cycle",
3+
"version": "0.1.0",
4+
"scripts": {
5+
"clean": "bsb -clean-world",
6+
"build": "bsb -make-world",
7+
"watch": "bsb -make-world -w"
8+
},
9+
"keywords": [
10+
"BuckleScript"
11+
],
12+
"author": "",
13+
"license": "MIT",
14+
"devDependencies": {
15+
"bs-platform": "^5.1.0-dev.1"
16+
}
17+
}

jscomp/build_tests/cycle/src/a.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
let v = B.v

jscomp/build_tests/cycle/src/b.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let v = A.v

vendor/ninja.tar.gz

26 Bytes
Binary file not shown.

vendor/ninja/snapshot/ninja.darwin

0 Bytes
Binary file not shown.

vendor/ninja/snapshot/ninja.linux

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)