Skip to content

Commit 3e3fb86

Browse files
committed
Prepare bs-react-native-next
1 parent 6ec62b6 commit 3e3fb86

6 files changed

Lines changed: 77 additions & 2 deletions

File tree

‎bs-react-native-next/bsconfig.json‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "bs-react-native",
3+
"namespace": "react-native",
4+
"refmt": 3,
5+
"reason": { "react-jsx": 2 },
6+
"package-specs": {
7+
"module": "es6",
8+
"in-source": true
9+
},
10+
"suffix": ".bs.js",
11+
"sources": [
12+
{
13+
"dir": "src",
14+
"subdirs": true
15+
}
16+
],
17+
"bsc-flags": ["-bs-super-errors", "-warn-error @a", "-w -41..42-102"],
18+
"bs-dependencies": ["reason-react"]
19+
}

‎bs-react-native-next/package.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "bs-react-native-next",
3+
"version": "0.10.0",
4+
"repository": "https://github.com/reasonml-community/bs-react-native.git",
5+
"license": "MIT",
6+
"keywords": [
7+
"reason",
8+
"reasonml",
9+
"bucklescript",
10+
"react-native"
11+
],
12+
"scripts": {
13+
"re:clean": "bsb -clean-world",
14+
"re:start": "bsb -make-world -w",
15+
"re:build": "bsb -make-world",
16+
"re:clean-build": "yarn re:clean && yarn re:build",
17+
"clean": "yarn re:clean",
18+
"test": "yarn re:clean-build"
19+
},
20+
"devDependencies": {
21+
"bs-platform": "^5.0.0-dev.6",
22+
"reason-react": "https://github.com/reasonml/reason-react.git#hooks"
23+
},
24+
"peerDependencies": {
25+
"react-native": "^0.59.0",
26+
"reason-react": "https://github.com/reasonml/reason-react.git#hooks"
27+
}
28+
}

‎bs-react-native-next/src/Test.bs.js‎

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bs-react-native-next/src/Test.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let test = () => ignore;

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
},
4141
"workspaces": [
4242
"bs-react-native",
43+
"bs-react-native-next",
4344
"bs-react-native-example",
4445
"react-native-template-bs",
4546
"website"

‎yarn.lock‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,6 +2403,11 @@ bs-platform@^4.0.18:
24032403
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-4.0.18.tgz#d17b8693ba1f714d9b27e0ddb365f2069ba4b8a0"
24042404
integrity sha512-BwzW0iYHvREqUZIgQxJmdJrxexppLvJxYQ4LLexbhCp7uZU5DIZ5ub4ZHpkCkc8fn8bsXWc+Rrejb3csi+BoAQ==
24052405

2406+
bs-platform@^5.0.0-dev.6:
2407+
version "5.0.0-dev.6"
2408+
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-5.0.0-dev.6.tgz#aaa076debd40c2e710b52985aa22d8d3f05bf09d"
2409+
integrity sha512-41C/VUPBJp/TboHVIUhgdwXbRY8Yijj9ccnc7C0usmg4SJKtFTAvnLrHZYUP3cWOZcoTkMatjf9IfGN9/f5FlA==
2410+
24062411
bser@^2.0.0:
24072412
version "2.0.0"
24082413
resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719"
@@ -7374,7 +7379,7 @@ react-devtools-core@3.1.0:
73747379
shell-quote "^1.6.1"
73757380
ws "^2.0.3"
73767381

7377-
"react-dom@>=15.0.0 || >=16.0.0":
7382+
"react-dom@>=15.0.0 || >=16.0.0", react-dom@>=16.8.1:
73787383
version "16.8.4"
73797384
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.4.tgz#1061a8e01a2b3b0c8160037441c3bf00a0e3bc48"
73807385
integrity sha512-Ob2wK7XG2tUDt7ps7LtLzGYYB6DXMCLj0G5fO6WeEICtT4/HdpOi7W/xLzZnR6RCG1tYza60nMdqtxzA8FaPJQ==
@@ -7540,7 +7545,7 @@ react@16.3.1:
75407545
object-assign "^4.1.1"
75417546
prop-types "^15.6.0"
75427547

7543-
"react@>=15.0.0 || >=16.0.0":
7548+
"react@>=15.0.0 || >=16.0.0", react@>=16.8.1:
75447549
version "16.8.4"
75457550
resolved "https://registry.yarnpkg.com/react/-/react-16.8.4.tgz#fdf7bd9ae53f03a9c4cd1a371432c206be1c4768"
75467551
integrity sha512-0GQ6gFXfUH7aZcjGVymlPOASTuSjlQL4ZtVC5YKH+3JL6bBLCVO21DknzmaPlI90LN253ojj02nsapy+j7wIjg==
@@ -7686,6 +7691,13 @@ reason-react@^0.6.0:
76867691
react ">=15.0.0 || >=16.0.0"
76877692
react-dom ">=15.0.0 || >=16.0.0"
76887693

7694+
"reason-react@https://github.com/reasonml/reason-react.git#hooks":
7695+
version "0.6.0"
7696+
resolved "https://github.com/reasonml/reason-react.git#688bf4e1194d34be96de32fc897189bc59223d2a"
7697+
dependencies:
7698+
react ">=16.8.1"
7699+
react-dom ">=16.8.1"
7700+
76897701
redent@^1.0.0:
76907702
version "1.0.0"
76917703
resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde"

0 commit comments

Comments
 (0)