Skip to content

Commit 3864e68

Browse files
committed
move everything to packages/ and setup rewatch
1 parent 870c3e1 commit 3864e68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+58
-637
lines changed

β€Žbsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "reform-monorepo",
3+
"sources": [
4+
{
5+
"dir": "src/",
6+
"subdirs": true
7+
}
8+
],
9+
"package-specs": [
10+
{
11+
"module": "commonjs",
12+
"in-source": true
13+
}
14+
],
15+
"warnings": {
16+
"error": false
17+
},
18+
"suffix": ".bs.js",
19+
"bs-dependencies": ["@rescriptbr/reform"]
20+
}

β€Žpackage.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
},
3636
"pre-commit": "lint:staged",
3737
"workspaces": [
38-
"reform",
39-
"website",
40-
"demo"
38+
"packages/reform",
39+
"packages/website",
40+
"packages/demo"
4141
],
4242
"husky": {
4343
"hooks": {
@@ -48,15 +48,17 @@
4848
"scripts": {
4949
"docs:watch": "yarn workspace website start",
5050
"docs:build": "yarn workspace website build",
51-
"res:watch": "yarn workspace @rescriptbr/reform res:watch",
52-
"res:build": "yarn workspace @rescriptbr/reform res:build",
51+
"res:watch": "rewatch watch",
52+
"res:build": "rewatch build",
53+
"res:clean": "rewatch clean",
5354
"res:setup": "yarn workspace @rescriptbr/reform res:setup",
5455
"test": "yarn workspace @rescriptbr/reform test",
5556
"test:watch": "yarn workspace @rescriptbr/reform test:watch",
5657
"lint:staged": "lint-staged",
5758
"demo:build": "yarn workspace demo build"
5859
},
5960
"dependencies": {
60-
"rescript": "9.1.4"
61+
"@rolandpeelen/rewatch": "^0.0.11",
62+
"rescript": "^10.1.4"
6163
}
6264
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Žreform/package.json β€Žpackages/reform/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"license": "MIT",
2222
"peerDependencies": {
2323
"@rescript/react": "^0.10.3",
24-
"rescript": "^9.1.1"
24+
"rescript": "^10.1.4"
2525
},
2626
"devDependencies": {
2727
"@rescript/react": "^0.10.1",
28-
"rescript": "^9.1.1"
28+
"rescript": "^10.1.4"
2929
},
3030
"scripts": {
3131
"start": "yarn res:watch",
@@ -36,6 +36,6 @@
3636
},
3737
"dependencies": {
3838
"@rescriptbr/reschema": "^3.0.3",
39-
"rescript-react-update": "^3.0.1"
39+
"rescript": "^10.1.4"
4040
}
4141
}
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
let handleChange = (handleChange, event) =>
2-
handleChange(ReactEvent.Form.target(event)["value"])
1+
let handleChange = (handleChange, event) => handleChange(ReactEvent.Form.target(event)["value"])
32

43
let handleSubmit = (handleSubmit, event) => {
54
ReactEvent.Synthetic.preventDefault(event)
65
handleSubmit()
76
}
8-
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)