rescript-promise
rescript-test
Our great sponsors
rescript-promise | rescript-test | |
---|---|---|
3 | 3 | |
128 | 76 | |
- | - | |
0.0 | 4.9 | |
over 1 year ago | 4 days ago | |
ReScript | ReScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rescript-promise
-
Parsing Lambda Error Logs in ReScript & Python
We need the Promise library as it is the best way to use Promises in ReScript. We utilize the Jzon library for deterministically parsing our JSON into sound ReScript types without using the super verbose Js.Json classify syntax. Finally, we have an Environment module to help our Lambda know if it’s running in a QA, Stage, or Production environment.
-
Which Language?
For promises, there's a proposal plus implementation with improvements that should be upstreamed soon. JS interop is actually pretty good, if you find the embedding syntax too ugly you can for the most part keep .js files and .res files and they'll work together.
-
Thinking in ReScript
Note that here I'm using the rescript-promise library, which will soon become a part of the core language.
rescript-test
-
Testing in ReScript
Besides bindings for JavaScript libraries, there is rescript-test - a lightweight test framework written in ReScript for ReScript. I have heard that some people like it, but for me, it lacks coverage output and Wallaby support.
-
The REGAL Architecture
As soon as you need to change the name or something, delete a field, or change a field… you’ve broken the API. This means you first need to change your Lambda(s) that use this new data, and ensure your unit tests (using ReTest) pass, and your integration tests (using Mocha & JavaScript) which invoke your Lambdas directly on a QA server still work.
-
Parsing Lambda Error Logs in ReScript & Python
To do that, we’re using rescript-test, which feels natural to those used to Jest, Mocha, etc. The only main difference is using testAsync vs test for async code, and having to define your own assertions vs. “Jest/Chai has ALL THE THINGS”.
What are some alternatives?
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
rescript-stdlib-vendorer - Tool to support usage of a vendored standard library in ReScript
DefinitelyTyped - The repository for high quality TypeScript type definitions.
rescript-schema - The fastest composable parser/serializer for ReScript (and TypeScript)
rescript-compiler - The compiler for ReScript.
aws-appsync-community - The AWS AppSync community
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
elm-graphql - Autogenerate type-safe GraphQL queries in Elm.
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
aws-codedeploy-agent - Host Agent for AWS CodeDeploy