Skip to content

Commit a4d248d

Browse files
committed
Add example project example-async.
1 parent fb0a0ee commit a4d248d

File tree

6 files changed

+487
-0
lines changed

6 files changed

+487
-0
lines changed

Diff for: example-async/.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

Diff for: example-async/bsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "example-async",
3+
"sources": [
4+
{
5+
"dir": "src",
6+
"subdirs": true
7+
}
8+
],
9+
"bsc-flags": ["-w -33-44"],
10+
"bs-dependencies": ["@rescript/react", "bs-fetch"],
11+
"reason": { "react-jsx": 3 }
12+
}

Diff for: example-async/lib/js/src/AA.js

+154
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: example-async/package-lock.json

+177
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: example-async/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"scripts": {
3+
"clean": "rescript clean -with-deps",
4+
"build": "rescript build",
5+
"watch": "rescript build -w"
6+
},
7+
"dependencies": {
8+
"bs-fetch": "^0.6.2",
9+
"rescript": "file:.."
10+
},
11+
"private": true,
12+
"devDependencies": {
13+
"@rescript/react": "^0.10.3"
14+
}
15+
}

0 commit comments

Comments
 (0)