SIGN IN SIGN UP
reasonml / reason UNCLAIMED

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

0 0 1 OCaml
2016-02-19 16:36:03 -08:00
# Portions Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
2016-05-22 01:23:48 +03:00
SHELL=bash -o pipefail
default: build
2017-10-30 22:40:16 -07:00
build:
dune build
2016-02-19 16:36:03 -08:00
install:
opam pin add reason . -y
2017-11-01 14:50:32 -07:00
# CI uses opam. Regular workflow needn't.
test-ci: install test-once-installed
2017-11-01 14:50:32 -07:00
test-once-installed: test
test:
esy dune runtest
test-watch:
esy dune runtest --watch
2016-02-19 16:36:03 -08:00
.PHONY: coverage
coverage:
find -iname "bisect*.out" -exec rm {} \;
make test-once-installed
bisect-ppx-report -ignore-missing-files -I _build/ -html coverage-after/ bisect*.out ./*/*/*/bisect*.out
find -iname "bisect*.out" -exec rm {} \;
testFormat: build test-once-installed
all_errors:
@ echo "Regenerate all the possible error states for Menhir."
@ echo "Warning: This will take a while and use a lot of CPU and memory."
@ echo "---"
menhir --explain --strict --unused-tokens src/reason-parser/reason_parser.mly --list-errors > src/reason-parser/reason_parser.messages.checked-in
clean:
dune clean
clean-for-ci:
rm -rf ./_build
2016-02-19 16:36:03 -08:00
.PHONY: build clean
2016-02-19 16:36:03 -08:00
2018-01-25 01:11:18 -08:00
# For publishing esy releases to npm
esy-prepublish: build
2018-01-25 01:11:18 -08:00
node ./scripts/esy-prepublish.js
all-supported-ocaml-versions:
# the --dev flag has been omitted here but should be re-introduced eventually
dune build @install @runtest --root .
.PHONY: all-supported-ocaml-versions
doc:
esy dune build @doc
.PHONY: doc