Skip to content

Commit

Permalink
Release v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDegraeve committed Sep 29, 2020
1 parent abfe27c commit 13461e8
Show file tree
Hide file tree
Showing 39 changed files with 800 additions and 1,432 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

Reason/OCaml PPX generating [ReactIntl](https://github.com/formatjs/formatjs) `id` _(short MD5)_ from `defaultMessage`.

This package provides also bindings overrides from [bs-react-intl](https://github.com/reasonml-community/bs-react-intl).

## Example

Input:
Expand Down Expand Up @@ -63,16 +61,16 @@ exports.make = make
Install the PPX with `yarn` or `npm`

```bash
yarn add res-react-intl
yarn add res-react-intl bs-react-intl
# Or
npm install res-react-intl
npm install res-react-intl bs-react-intl
```

And add the PPX in your `bsconfig.json` file:

```json
{
"bs-dependencies": ["res-react-intl"],
"bs-dependencies": ["bs-react-intl"],
"ppx-flags": ["res-react-intl/ppx"]
}
```
Expand Down Expand Up @@ -112,3 +110,4 @@ $ git push origin vx.y.z
## Background/Sources

- [Setup PPX Inspiration](https://github.com/dylanirlbeck/tailwind-ppx)
- [bs-react-intl-extractor](https://github.com/cknitt/bs-react-intl-extractor)
3 changes: 1 addition & 2 deletions bin/Ppx.re
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
open Migrate_parsetree;
open Ast_406;

let mapper = Mapper.getMapper(_ => ());

let _ =
Driver.register(~name="ReactIntl", ~args=[], Versions.ocaml_406, (_, _) =>
Driver.register(~name="ReactIntl", ~args=[], Versions.ocaml_current, (_, _) =>
mapper
);

Expand Down
4 changes: 2 additions & 2 deletions esy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "res-react-intl",
"version": "3.0.5",
"version": "3.1.0",
"description": "Reason/OCaml PPX generating ReactIntl `id` from `defaultMessage`",
"author": "Simon Degraeve <simon.degraeve@gmail.com>",
"license": "MIT",
Expand All @@ -18,11 +18,11 @@
"release": { "bin": ["Ppx", "Extract"] }
},
"dependencies": {
"@esy-ocaml/reason": "*",
"@opam/dune": "1.11.4",
"@opam/fmt": "0.8.8",
"@opam/menhir": "20190924",
"@opam/ocaml-migrate-parsetree": "1.5.0",
"@opam/reason": "3.5.2",
"@opam/sedlex": "2.1",
"@reason-native/rely": "^3.2.1"
},
Expand Down

0 comments on commit 13461e8

Please sign in to comment.