-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Finer dep for BuckleScript compilation * Finer dependency tracking in Ocaml Scheme * Correctly compute transitive dependencies * Start multiple entrypoint * Firsty party dependencies work * Scope bug * Support all backends for multiple entry points * Fix extensions * Name the generated binaries appropriately * Turn on module aliasing for top level dir for bucklescript engine * Add merlin support back * Merlin works with mutliple entry points * Refactor * Refactor round 2 * Refactor round 3 + comments * Refactor round 4 + comments
- Loading branch information
Showing
17 changed files
with
1,051 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# DO NOT EDIT THIS SECTION. CUSTOM CONFIG GOES BELOW | ||
# This file is autogenerated for | ||
# [Merlin](https://github.com/the-lambda-church/merlin), a static analyser for | ||
# OCaml that provides autocompletion, jump-to-location, recoverable syntax | ||
# errors, type errors detection, etc., that your editor can use. To activate it, | ||
# one usually provides a .merlin file at the Path.the_root of a project, describing where | ||
# the sources and artifacts are. Since we dictated the project structure, we can | ||
# auto generate .merlin files! | ||
|
||
# S is the merlin flag for source files | ||
S src | ||
|
||
# Include all the third-party sources too. You might notice that we've put a | ||
# .merlin into each node_modules package. This is subtle; in short, it's to make | ||
# jump-to-location work correctly in conjunction with our build & namespacing | ||
# setup, when you jump into a third-party file. | ||
|
||
|
||
# B stands for build (artifacts). We generate ours into _build | ||
B ./_build/native/* | ||
B ./_build/byte/* | ||
B ./_build/js-nice/* | ||
B ./_build/js-ugly/* | ||
|
||
# Bucklescript build artifacts | ||
B ./node_modules/bs-platform/lib/ocaml | ||
|
||
# PKG lists packages found through ocamlfind (aka findlib), a tool for finding | ||
# the location of third-party dependencies. For us, most of our third-party deps | ||
# reside in `node_modules/` (made visible to Merlin through the S command | ||
# above); this PKG command is for discovering the opam/ocamlfind packages. | ||
|
||
|
||
# FLG is the set of flags to pass to Merlin, as if it used ocamlc to compile and | ||
# understand our sources. You don't have to understand what these flags are for | ||
# now; but if you're curious, go check the rebel.ml that generated this | ||
# .merlin at https://github.com/reasonml/rebel | ||
FLG -w -30 -w -40 -open Native_Tar -open Byte_Tar -open JsNice_Tar -open JsUgly_Tar | ||
|
||
# Currently the we use absolute path instead of relative path for bsppx.exe | ||
# due to bug in merlin but this will be fixed in future. | ||
More details on this github issue https://github.com/the-lambda-church/merlin/issues/571 | ||
FLG -ppx /home/vramana/Documents/reasonml/rebel/examples/multiple-entrypoint/node_modules/bs-platform/bin/bsppx.exe | ||
|
||
# User Custom config here | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "recursive-src", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "eval $(dependencyEnv) && rebel -show-actions-run-verbose -verbose -show-error-dependency-paths -brief-error-summary -show-buildable-discovery" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"bs-platform": "^1.2.1" | ||
}, | ||
"rebel": { | ||
"targets": [ | ||
{ | ||
"target": "native", | ||
"engine": "native", | ||
"entry": "src/a.re" | ||
}, | ||
{ | ||
"target": "byte", | ||
"engine": "byte", | ||
"entry": "src/a.re" | ||
}, | ||
{ | ||
"target": "js-nice", | ||
"engine": "bucklescript", | ||
"entry": "src/a.re" | ||
}, | ||
{ | ||
"target": "js-ugly", | ||
"engine": "jsoo", | ||
"entry": "src/a.re" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* open A.B; */ | ||
|
||
print_endline "recursive src is coming!"; | ||
print_endline D.d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* open A.B; */ | ||
|
||
print_endline "recursive src is coming!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let d = "d"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.