Skip to content

Commit 4e86e5d

Browse files
committed
Add @rescript/react package
1 parent 2c0a4eb commit 4e86e5d

27 files changed

+2702
-0
lines changed

packages/react/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.DS_Store
2+
/node_modules*
3+
finalOutput/*.js
4+
.merlin
5+
.install
6+
/lib/bs/
7+
/lib/js/
8+
/lib/ocaml/
9+
/docs/
10+
*.log
11+
.bsb.lock
12+
_esy
13+
_build
14+
*.install
15+
src/legacy/*.bs.js
16+
17+
# Editor
18+
/.idea/
19+
20+
# React
21+
!/src/react/*.js

packages/react/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Sander, 2020 The ReScript Project
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/react/package-lock.json

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

packages/react/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@rescript/react",
3+
"version": "0.14.0-rc.1",
4+
"description": "React bindings for ReScript",
5+
"files": [
6+
"README.md",
7+
"CHANGELOG.md",
8+
"LICENSE",
9+
"rescript.json",
10+
"src/**/*.res",
11+
"src/**/*.resi"
12+
],
13+
"scripts": {
14+
"build": "rescript build",
15+
"start": "rescript build -w",
16+
"clean": "rescript clean -with-deps",
17+
"test": "echo 'tests disabled for now'"
18+
},
19+
"keywords": [
20+
"rescript",
21+
"react"
22+
],
23+
"author": "Ricky Vetter",
24+
"license": "MIT",
25+
"repository": {
26+
"type": "git",
27+
"url": "git+https://github.com/rescript-lang/rescript-react.git"
28+
},
29+
"homepage": "https://rescript-lang.org/docs/react/latest/introduction",
30+
"devDependencies": {
31+
"react": "^19.1.0",
32+
"react-dom": "^19.1.0",
33+
"rescript": "^11.0.0"
34+
},
35+
"peerDependencies": {
36+
"react": ">=19.0.0",
37+
"react-dom": ">=19.0.0"
38+
}
39+
}

packages/react/rescript.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@rescript/react",
3+
"jsx": {
4+
"version": 4,
5+
"mode": "classic"
6+
},
7+
"sources": [{ "dir": "src", "subdirs": true }],
8+
"package-specs": [{ "module": "commonjs", "in-source": true }],
9+
"suffix": ".bs.js",
10+
"bs-dev-dependencies": [],
11+
"bsc-flags": []
12+
}

packages/react/src/React.bs.js

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

0 commit comments

Comments
 (0)