Skip to content

Commit

Permalink
move everything to packages/ and setup rewatch
Browse files Browse the repository at this point in the history
  • Loading branch information
fakenickels committed Jul 29, 2023
1 parent 870c3e1 commit 3864e68
Show file tree
Hide file tree
Showing 69 changed files with 58 additions and 637 deletions.
20 changes: 20 additions & 0 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "reform-monorepo",
"sources": [
{
"dir": "src/",
"subdirs": true
}
],
"package-specs": [
{
"module": "commonjs",
"in-source": true
}
],
"warnings": {
"error": false
},
"suffix": ".bs.js",
"bs-dependencies": ["@rescriptbr/reform"]
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
},
"pre-commit": "lint:staged",
"workspaces": [
"reform",
"website",
"demo"
"packages/reform",
"packages/website",
"packages/demo"
],
"husky": {
"hooks": {
Expand All @@ -48,15 +48,17 @@
"scripts": {
"docs:watch": "yarn workspace website start",
"docs:build": "yarn workspace website build",
"res:watch": "yarn workspace @rescriptbr/reform res:watch",
"res:build": "yarn workspace @rescriptbr/reform res:build",
"res:watch": "rewatch watch",
"res:build": "rewatch build",
"res:clean": "rewatch clean",
"res:setup": "yarn workspace @rescriptbr/reform res:setup",
"test": "yarn workspace @rescriptbr/reform test",
"test:watch": "yarn workspace @rescriptbr/reform test:watch",
"lint:staged": "lint-staged",
"demo:build": "yarn workspace demo build"
},
"dependencies": {
"rescript": "9.1.4"
"@rolandpeelen/rewatch": "^0.0.11",
"rescript": "^10.1.4"
}
}
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.
File renamed without changes.
6 changes: 3 additions & 3 deletions reform/package.json β†’ packages/reform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"license": "MIT",
"peerDependencies": {
"@rescript/react": "^0.10.3",
"rescript": "^9.1.1"
"rescript": "^10.1.4"
},
"devDependencies": {
"@rescript/react": "^0.10.1",
"rescript": "^9.1.1"
"rescript": "^10.1.4"
},
"scripts": {
"start": "yarn res:watch",
Expand All @@ -36,6 +36,6 @@
},
"dependencies": {
"@rescriptbr/reschema": "^3.0.3",
"rescript-react-update": "^3.0.1"
"rescript": "^10.1.4"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
let handleChange = (handleChange, event) =>
handleChange(ReactEvent.Form.target(event)["value"])
let handleChange = (handleChange, event) => handleChange(ReactEvent.Form.target(event)["value"])

let handleSubmit = (handleSubmit, event) => {
ReactEvent.Synthetic.preventDefault(event)
handleSubmit()
}

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.
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
Loading

0 comments on commit 3864e68

Please sign in to comment.