Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
node-version: [24.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run test
- run: yarn
- run: yarn build
- run: yarn test
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ src/legacy/*.bs.js
!/src/react/*.js

# ReScript
lib/
lib/

# Yarn
/.pnp.*
/.yarn/*
!/.yarn/patches
!/.yarn/plugins
!/.yarn/releases
!/.yarn/sdks
!/.yarn/versions
!/.yarn/releases/**
Binary file added .yarn/install-state.gz
Binary file not shown.
942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.12.0.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defaultSemverRangePrefix: ""

nmMode: hardlinks-global

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.12.0.cjs
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## @rescript/react
## The home of `@rescript/react`, `@rescript/react-dom` and `@rescript/browser-router`

> The Official [ReScript](https://rescript-lang.org) Bindings for [ReactJS](https://react.dev/)
This monorepo provides 3 packages:
- `@rescript/react`: the Official [ReScript](https://rescript-lang.org) Bindings for [ReactJS](https://react.dev/)
- `@rescript/react-dom`: the Official [ReScript](https://rescript-lang.org) Bindings for [react-dom](https://react.dev/reference/react-dom)
- `@rescript/browser-router`: a lightweight web client router based on rescript pattern-matching.

If you want to use react on the web, you now need to install both `@rescript/react` and `@rescript/react-dom` bindings.

- [Introduction](https://rescript-lang.org/docs/react/latest/introduction)
- [Installation](https://rescript-lang.org/docs/react/latest/installation)
Expand All @@ -18,10 +23,8 @@
### Development

```
npm install

# Starts the ReScript compiler in watch mode
npm start
yarn install
yarn build
```

### Acknowledgements
Expand Down
263 changes: 0 additions & 263 deletions package-lock.json

This file was deleted.

36 changes: 9 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@
{
"name": "@rescript/react",
"name": "rescript-react",
"version": "0.15.0",
"description": "React bindings for ReScript",
"files": [
"README.md",
"CHANGELOG.md",
"LICENSE",
"rescript.json",
"src/**/*.res",
"src/**/*.resi"
"private": true,
"packageManager": "yarn@4.12.0",
"preferUnplugged": true,
"workspaces": [
"packages/react",
"packages/react-dom",
"packages/browser-router"
],
"scripts": {
"build": "rescript build",
"start": "rescript watch",
"clean": "rescript clean",
"format": "rescript format",
"format": "rescript format -all",
"test": "echo 'tests disabled for now'"
},
"keywords": [
"rescript",
"react"
],
"author": "Ricky Vetter",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-react.git"
},
"homepage": "https://rescript-lang.org/docs/react/latest/introduction",
"devDependencies": {
"react": "^19.2.0",
"react-dom": "^19.2.0",
"rescript": "^12.0.0"
},
"peerDependencies": {
"@rescript/runtime": ">=12.0.0",
"react": ">=19.2.0",
"react-dom": ">=19.2.0"
}
}
Loading