Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Supresses the lock folder from the diffs
esy.lock/* linguist-generated=true

# Tell github that .re and .rei files are Reason
*.re linguist-language=Reason
*.rei linguist-language=Reason
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ _build/
_opam/

# Esy generated files
_esy/
_release/
_export/
npm-debug.log
Expand Down
11 changes: 3 additions & 8 deletions bin/Ppx.re
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
open Migrate_parsetree;

/* PPX entry point for ReScript/BuckleScript compatibility */
/* Uses Ast_mapper.run_main instead of ppxlib driver */
let mapper = Mapper.getMapper(_ => ());

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

let _ = Driver.run_as_ppx_rewriter();
let () = Ast_mapper.run_main((_argv) => mapper);
20 changes: 13 additions & 7 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
(executables
(names Ppx Extract)
(public_names ppx extract)
(libraries res-react-intl.lib)
(ocamlopt_flags ( -linkall ))
(package res-react-intl)
)
(executable
(name Extract)
(public_name extract)
(libraries res-react-intl.lib)
(ocamlopt_flags (-linkall))
(package res-react-intl))

(executable
(name Ppx)
(public_name ppx)
(libraries res-react-intl.lib)
(ocamlopt_flags (-linkall))
(package res-react-intl))
26 changes: 25 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
(lang dune 1.11)
(lang dune 3.16)

(name res-react-intl)
(version 3.1.2)

(generate_opam_files true)

(source (github SimonDegraeve/res-react-intl))
(license MIT)
(authors "Simon Degraeve")
(maintainers "Simon Degraeve <simon.degraeve@gmail.com>")

(package
(name res-react-intl)
(synopsis "Reason/OCaml PPX generating ReactIntl id from defaultMessage")
(description "Reason/OCaml PPX generating ReactIntl id from defaultMessage")
(depends
(ocaml (>= 4.14.0))
(dune (>= 3.0))
(reason (>= 3.10.0))
(ppxlib (>= 0.35.0))
(base (>= v0.16.0))
(stdio (>= v0.16.0))
(yojson (>= 2.0.0))
(odoc :with-doc)))
46 changes: 0 additions & 46 deletions esy.json

This file was deleted.

3 changes: 0 additions & 3 deletions esy.lock/.gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions esy.lock/.gitignore

This file was deleted.

Loading