Skip to content

Commit 0c30fe8

Browse files
Merge pull request #726 from rescript-association/rescript-11
ReScript 11 scaffolding
2 parents eb725dd + e638fad commit 0c30fe8

File tree

236 files changed

+45825
-330
lines changed

Some content is hidden

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

236 files changed

+45825
-330
lines changed

_blogposts/2020-08-10-bucklescript-is-rebranding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There's no dedicated name for the syntax anymore. It's simply called the ReScrip
6161

6262
**Will there be a migration script to gradually convert our code to the new syntax?**
6363

64-
Yes. See our [migration page](/docs/manual/latest/migrate-from-bucklescript-reason). You can mix and match old and new code for a smoother transition.
64+
Yes. See our [migration page](/docs/manual/v10.0.0/migrate-from-bucklescript-reason). You can mix and match old and new code for a smoother transition.
6565

6666
**Will BuckleScript (now ReScript) break my existing code?**
6767

compilers/dummy/Dummy.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Console.log("I am a dummy file")

compilers/package-lock.json

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

compilers/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"main": "index.js",
66
"license": "MIT",
77
"dependencies": {
8+
"@rescript/core": "^0.5.0",
89
"rescript-820": "npm:[email protected]",
910
"rescript-902": "npm:[email protected]",
1011
"rescript-912": "npm:[email protected]",
1112
"rescript-1000": "npm:[email protected]",
12-
"rescript-1010": "npm:[email protected]"
13+
"rescript-1010": "npm:[email protected]",
14+
"rescript-1100": "npm:[email protected]"
1315
}
1416
}

compilers/rescript.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "dummy",
3+
"sources": {
4+
"dir": "dummy",
5+
"subdirs": true
6+
},
7+
"bs-dependencies": [
8+
"@rescript/core"
9+
],
10+
"bsc-flags": [
11+
"-open RescriptCore"
12+
]
13+
}

data/sidebar_manual_latest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"introduction",
44
"installation",
55
"editor-plugins",
6-
"migrate-from-bucklescript-reason",
76
"try"
87
],
98
"Language Features": [

data/sidebar_manual_v1000.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"Overview": [
3+
"introduction",
4+
"installation",
5+
"editor-plugins",
6+
"migrate-from-bucklescript-reason",
7+
"try"
8+
],
9+
"Language Features": [
10+
"overview",
11+
"let-binding",
12+
"type",
13+
"primitive-types",
14+
"tuple",
15+
"record",
16+
"object",
17+
"variant",
18+
"polymorphic-variant",
19+
"null-undefined-option",
20+
"array-and-list",
21+
"function",
22+
"control-flow",
23+
"pipe",
24+
"pattern-matching-destructuring",
25+
"mutation",
26+
"jsx",
27+
"exception",
28+
"lazy-values",
29+
"promise",
30+
"async-await",
31+
"module",
32+
"import-export",
33+
"attribute",
34+
"unboxed",
35+
"reserved-keywords"
36+
],
37+
"Advanced Features": [
38+
"extensible-variant",
39+
"scoped-polymorphic-types"
40+
],
41+
"JavaScript Interop": [
42+
"interop-cheatsheet",
43+
"embed-raw-javascript",
44+
"shared-data-types",
45+
"external",
46+
"bind-to-js-object",
47+
"bind-to-js-function",
48+
"import-from-export-to-js",
49+
"bind-to-global-js-values",
50+
"json",
51+
"inlining-constants",
52+
"use-illegal-identifier-names",
53+
"generate-converters-accessors",
54+
"browser-support-polyfills",
55+
"libraries"
56+
],
57+
"Build System": [
58+
"build-overview",
59+
"build-configuration",
60+
"build-configuration-schema",
61+
"build-external-stdlib",
62+
"build-pinned-dependencies",
63+
"interop-with-js-build-systems",
64+
"build-performance",
65+
"warning-numbers"
66+
],
67+
"Guides": [
68+
"converting-from-js"
69+
],
70+
"Extra": [
71+
"newcomer-examples",
72+
"project-structure",
73+
"faq"
74+
]
75+
}

data/sidebar_react_v0110.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"Overview": [
3+
"introduction",
4+
"installation",
5+
"migrate-react"
6+
],
7+
"Main Concepts": [
8+
"elements-and-jsx",
9+
"rendering-elements",
10+
"components-and-props",
11+
"arrays-and-keys",
12+
"refs-and-the-dom",
13+
"context",
14+
"styling",
15+
"router"
16+
],
17+
"Hooks & State Management": [
18+
"hooks-overview",
19+
"hooks-effect",
20+
"hooks-state",
21+
"hooks-reducer",
22+
"hooks-context",
23+
"hooks-ref",
24+
"hooks-custom"
25+
],
26+
"Guides": [
27+
"beyond-jsx",
28+
"forwarding-refs",
29+
"extensions-of-props"
30+
]
31+
}

misc_docs/syntax/decorator_react_component.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You will need this decorator whenever you want to use a ReScript / React compone
1212

1313

1414
> **Note**
15-
> The `@react.component` decorator requires the [react-jsx or jsx config](/docs/react/latest/installation) to be set in your `bsconfig.json` to enable the required React transformations.
15+
> The `@react.component` decorator requires the [react-jsx or jsx config](/docs/react/latest/installation) to be set in your `rescript.json` to enable the required React transformations.
1616
1717
### Example
1818

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
id: "uncurried-decorator"
3+
keywords: ["uncurried", "decorator"]
4+
name: "@@uncurried"
5+
summary: "This is the `@@uncurried` decorator."
6+
category: "decorators"
7+
---
8+
9+
If you have uncurried mode turned off in `rescript.json` and still want to try it on a per-file basis, you can turn it on via
10+
11+
```rescript
12+
@@uncurried
13+
```
14+
15+
at the top of a `.res` file.
16+
17+
_Available since ReScript `11.0.0`._
18+
19+
### References
20+
21+
- [Uncurried Mode blogpost](/blog/uncurried-mode)
22+
- [Build System configuration](/docs/manual/latest/build-configuration#uncurried)

0 commit comments

Comments
 (0)