-
-
Notifications
You must be signed in to change notification settings - Fork 253
ReScript 11 scaffolding #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
78bc6b5
ReScript 11 scaffolding
fhammerschmidt 959daba
Adapt some pages to ReScript 11 including records and variants (#730)
fhammerschmidt 1bf628f
Variant docs (#740)
zth 7652943
dynamic imports docs (#741)
zth 2f5401f
Adapt example tests to Rescript11 + uncurried + RescriptCore (#735)
fhammerschmidt 4ff8046
Adapt some pages to ReScript 11 including records and variants
fhammerschmidt 03a701f
Some better wordings
fhammerschmidt 8000d9d
Adapt example tests to Rescript11 + uncurried + RescriptCore
fhammerschmidt bced3de
Consistent quotes
fhammerschmidt f782eae
Remove old bs migration guide from latest docs
fhammerschmidt d3b9774
remove unsafe string interpolation
aspeddro f732f3f
Automate playground compiler (#695)
aspeddro 4061a3a
Playground: auto-open @rescript/core when loaded
fhammerschmidt 5fdac64
Take compiler api V4 into account
fhammerschmidt 1cf12d8
Actually set open_modules in compiler config
fhammerschmidt 2d2151a
Guard open modules with api version >= 4
fhammerschmidt 65f27fa
remove atom editor
JiaeK baae0d6
Fix merge conflict
fhammerschmidt 179c984
Update node to 18 to fix build
fhammerschmidt 362684e
Escaping fixes
fhammerschmidt 183becd
Snapshot v10 api docs
fhammerschmidt 65d4032
Uncurried Mode docs
fhammerschmidt e5a8ce4
rescript.json
fhammerschmidt 84b356b
Merge pull request #747 from fhammerschmidt/rescript-json
fhammerschmidt 233bf6b
Merge pull request #748 from fhammerschmidt/uncurried-mode-docs
fhammerschmidt 76c97c2
Add v0.12 rescript-react docs
fhammerschmidt eb842b1
rescript.json in react docs
fhammerschmidt b28de11
Merge pull request #744 from fhammerschmidt/remove-migrate-from-bs
fhammerschmidt e118747
Remove uncurried chapter and update existing docs to uncurried
fhammerschmidt 76713c7
Add references to @@uncurried in syntax lookup
fhammerschmidt f1b025f
Fixes according comments
fhammerschmidt 4d7cc30
Merge pull request #750 from rescript-association/uncurried-docs
fhammerschmidt 02d0fc4
Add 'site-under-construction' banner to latest doc layouts
fhammerschmidt e638fad
Use correct rescript-react version in banner
fhammerschmidt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Console.log("I am a dummy file") | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "dummy", | ||
"sources": { | ||
"dir": "dummy", | ||
"subdirs": true | ||
}, | ||
"bs-dependencies": [ | ||
"@rescript/core" | ||
], | ||
"bsc-flags": [ | ||
"-open RescriptCore" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"Overview": [ | ||
"introduction", | ||
"installation", | ||
"editor-plugins", | ||
"migrate-from-bucklescript-reason", | ||
"try" | ||
], | ||
"Language Features": [ | ||
"overview", | ||
"let-binding", | ||
"type", | ||
"primitive-types", | ||
"tuple", | ||
"record", | ||
"object", | ||
"variant", | ||
"polymorphic-variant", | ||
"null-undefined-option", | ||
"array-and-list", | ||
"function", | ||
"control-flow", | ||
"pipe", | ||
"pattern-matching-destructuring", | ||
"mutation", | ||
"jsx", | ||
"exception", | ||
"lazy-values", | ||
"promise", | ||
"async-await", | ||
"module", | ||
"import-export", | ||
"attribute", | ||
"unboxed", | ||
"reserved-keywords" | ||
], | ||
"Advanced Features": [ | ||
"extensible-variant", | ||
"scoped-polymorphic-types" | ||
], | ||
"JavaScript Interop": [ | ||
"interop-cheatsheet", | ||
"embed-raw-javascript", | ||
"shared-data-types", | ||
"external", | ||
"bind-to-js-object", | ||
"bind-to-js-function", | ||
"import-from-export-to-js", | ||
"bind-to-global-js-values", | ||
"json", | ||
"inlining-constants", | ||
"use-illegal-identifier-names", | ||
"generate-converters-accessors", | ||
"browser-support-polyfills", | ||
"libraries" | ||
], | ||
"Build System": [ | ||
"build-overview", | ||
"build-configuration", | ||
"build-configuration-schema", | ||
"build-external-stdlib", | ||
"build-pinned-dependencies", | ||
"interop-with-js-build-systems", | ||
"build-performance", | ||
"warning-numbers" | ||
], | ||
"Guides": [ | ||
"converting-from-js" | ||
], | ||
"Extra": [ | ||
"newcomer-examples", | ||
"project-structure", | ||
"faq" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"Overview": [ | ||
"introduction", | ||
"installation", | ||
"migrate-react" | ||
], | ||
"Main Concepts": [ | ||
"elements-and-jsx", | ||
"rendering-elements", | ||
"components-and-props", | ||
"arrays-and-keys", | ||
"refs-and-the-dom", | ||
"context", | ||
"styling", | ||
"router" | ||
], | ||
"Hooks & State Management": [ | ||
"hooks-overview", | ||
"hooks-effect", | ||
"hooks-state", | ||
"hooks-reducer", | ||
"hooks-context", | ||
"hooks-ref", | ||
"hooks-custom" | ||
], | ||
"Guides": [ | ||
"beyond-jsx", | ||
"forwarding-refs", | ||
"extensions-of-props" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
id: "uncurried-decorator" | ||
keywords: ["uncurried", "decorator"] | ||
name: "@@uncurried" | ||
summary: "This is the `@@uncurried` decorator." | ||
category: "decorators" | ||
--- | ||
|
||
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 | ||
|
||
```rescript | ||
@@uncurried | ||
``` | ||
|
||
at the top of a `.res` file. | ||
|
||
_Available since ReScript `11.0.0`._ | ||
|
||
### References | ||
|
||
- [Uncurried Mode blogpost](/blog/uncurried-mode) | ||
- [Build System configuration](/docs/manual/latest/build-configuration#uncurried) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { handler as default } from "src/others/Revalidate.mjs"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed a dummy ReScript project to get a compiled version of ReScript Core in the
test-examples.mjs
script.When you delete the dummy file and try to execute the script without
node_modules
installed, it will fail