Skip to content

switch to dune #10

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
31 changes: 0 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
_build
*.byte
*.docdir

tests/*.cmi
tests/*.cmo
tests/*.cmt
tests/*.out

examples/*.cmi
examples/*.cmo
examples/*.cmt
examples/*.out

setup.data
setup.log
notes.txt
scratch.js
server.js
exhaust_api.js
.tern-port
chat_server.js
examples/node_modules
package.json
junk.ml
*.js

examples/buffer
examples/file_system
examples_lwt
old_readme
node_modules
4 changes: 0 additions & 4 deletions .merlin

This file was deleted.

43 changes: 43 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version=0.25.1
assignment-operator=end-line
break-cases=fit
break-fun-decl=wrap
break-fun-sig=wrap
break-infix=wrap
break-infix-before-func=false
break-separators=before
break-sequences=true
cases-exp-indent=2
cases-matching-exp-indent=normal
doc-comments=before
doc-comments-padding=2
doc-comments-tag-only=default
dock-collection-brackets=false
exp-grouping=preserve
field-space=loose
if-then-else=compact
indicate-multiline-delimiters=space
indicate-nested-or-patterns=unsafe-no
infix-precedence=indent
leading-nested-match-parens=false
let-and=sparse
let-binding-spacing=compact
let-module=compact
margin=80
max-indent=2
module-item-spacing=sparse
ocaml-version=4.14.0
ocp-indent-compat=false
parens-ite=false
parens-tuple=always
parse-docstrings=true
sequence-blank-line=preserve-one
sequence-style=terminator
single-case=compact
space-around-arrays=true
space-around-lists=true
space-around-records=true
space-around-variants=true
type-decl=sparse
wrap-comments=false
wrap-fun-args=true
6 changes: 0 additions & 6 deletions .tern-project

This file was deleted.

41 changes: 0 additions & 41 deletions Makefile

This file was deleted.

File renamed without changes.
52 changes: 0 additions & 52 deletions _oasis

This file was deleted.

46 changes: 0 additions & 46 deletions _tags

This file was deleted.

27 changes: 0 additions & 27 deletions configure

This file was deleted.

29 changes: 29 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
(lang dune 3.0)

(name nodejs)

(license BSD-3-clause)

(authors
"Edgar Aroutiounnian <[email protected]>")

(maintainers
"Edgar Aroutiounnian <[email protected]>")

(source
(github fxfactorial/ocaml-nodejs))

(generate_opam_files true)

(package
(name nodejs)
(synopsis
"js_of_ocaml bindings for nodejs")
(description
"Write OCaml, run on node; these are js_of_ocaml bindings to the node
JavaScript API. Get all the power of the node ecosystem with the type
safety of OCaml.")
(depends
ocaml
(js_of_ocaml
(>= 2.5.2))))
46 changes: 0 additions & 46 deletions examples/Makefile

This file was deleted.

1 change: 1 addition & 0 deletions examples/buffer_example.ml → examples/buffer.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
open Js_of_ocaml

let () =
let item = Nodejs.Buffer.buffer_static##from (Js.string "Hello World") in
Expand Down
4 changes: 1 addition & 3 deletions examples/dns_example.ml → examples/dns.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

(* let () = *)
(* Nodejs.Dns.dns##resolve4 *)
(* (Js.string "google.com") *)
Expand All @@ -8,5 +7,4 @@
(* arr *)
(* |> Js.str_array |> Js.to_array *)
(* |> Array.map Js.to_string |> Array.to_list *)
(* |> List.iter print_endline)) *)

(* |> List.iter print_endline)) *)
Loading