Skip to content

Commit 1f2d819

Browse files
committed
feat: adds genType support
1 parent 5b99db2 commit 1f2d819

9 files changed

+737
-375
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target
22
/node_modules
33
/lib
4+
/.log
45
.bsb.lock

.merlin

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
####{BSB GENERATED: NO EDIT
2-
FLG -ppx '/home/dokkora/work/rescript-react-feather/node_modules/rescript/linux/bsc.exe -as-ppx -bs-jsx 3'
3-
S /home/dokkora/work/rescript-react-feather/node_modules/rescript/lib/ocaml
4-
B /home/dokkora/work/rescript-react-feather/node_modules/rescript/lib/ocaml
2+
FLG -ppx '/joguinhos/work/rescript-react-feather/node_modules/.pnpm/[email protected]/node_modules/rescript/linux/bsc.exe -as-ppx -bs-jsx 3'
3+
S /joguinhos/work/rescript-react-feather/node_modules/.pnpm/[email protected]/node_modules/rescript/lib/ocaml
4+
B /joguinhos/work/rescript-react-feather/node_modules/.pnpm/[email protected]/node_modules/rescript/lib/ocaml
55
FLG -w +a-4-9-20-40-41-42-50-61-102
6-
S /home/dokkora/work/rescript-react-feather/node_modules/@rescript/react/lib/ocaml
7-
B /home/dokkora/work/rescript-react-feather/node_modules/@rescript/react/lib/ocaml
6+
S /joguinhos/work/rescript-react-feather/node_modules/@rescript/react/lib/ocaml
7+
B /joguinhos/work/rescript-react-feather/node_modules/@rescript/react/lib/ocaml
88
S src
99
B lib/bs/src
1010
####BSB GENERATED: NO EDIT}

bsconfig.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@
1313
"in-source": true
1414
}
1515
],
16-
"bs-dependencies": [
17-
"@rescript/react"
18-
],
16+
"bs-dependencies": ["@rescript/react"],
17+
"gentypeconfig": {
18+
"language": "typescript",
19+
"shims": {},
20+
"generatedFileExtension": ".gen.tsx",
21+
"debug": {
22+
"all": false,
23+
"basic": false
24+
}
25+
},
1926
"suffix": ".bs.js"
2027
}

package.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
22
"name": "@heliaxdev/rescript-react-feather",
3-
"version": "2.0.9",
3+
"version": "2.0.9-1",
44
"description": "ReScript bindings for the react-feather library",
5-
"keywords": ["rescript", "react", "react-feather"],
5+
"keywords": [
6+
"rescript",
7+
"react",
8+
"react-feather"
9+
],
610
"main": "ReactFeather.bs.js",
7-
"files": ["src/ReactFeather.res", "src/ReactFeather.bs.js", "bsconfig.json"],
11+
"files": [
12+
"src/ReactFeather.res",
13+
"src/ReactFeather.bs.js",
14+
"src/ReactFeather.gen.tsx",
15+
"bsconfig.json"
16+
],
817
"repository": "git://github.com/heliaxdev/rescript-react-feather.git",
918
"author": "Heliax AG",
1019
"license": "GPL3",
@@ -18,6 +27,7 @@
1827
"react-feather": "^2.0.9"
1928
},
2029
"devDependencies": {
30+
"gentype": "^4.3.0",
2131
"rescript": "^9.1.4"
2232
}
2333
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)