Skip to content

Commit f63ef46

Browse files
anmonteiroEt7f3
authored andcommitted
build BuckleScript with Dune (rescript-lang#1)
1 parent 2c77888 commit f63ef46

File tree

95 files changed

+8645
-12995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+8645
-12995
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,5 @@ darwin/bsc
145145
.nyc_output
146146
themes
147147
.vscode/settings.json
148+
149+
.merlin

bucklescript.opam

Whitespace-only changes.

dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(dirs :standard \ docs jscomp/test ocaml node_modules native site vendor
2+
lib/4.06.1)

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(lang dune 2.0)

dune-workspace

Whitespace-only changes.

jscomp/.merlin

Lines changed: 0 additions & 42 deletions
This file was deleted.

jscomp/bsb/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(library
2+
(name bsb)
3+
(wrapped false)
4+
(flags
5+
(:standard -w -9-50))
6+
(libraries bs_hash_stubs ext common str unix))

jscomp/bsb_helper/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(library
2+
(name bsb_helper)
3+
(flags
4+
(:standard -w -9))
5+
(wrapped false)
6+
(libraries bs_hash_stubs ext common bsb unix str))

jscomp/build_version.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
var fs = require("fs");
66
var path = require("path");
7-
var package_spec = JSON.parse(fs.readFileSync("../package.json", "utf8"));
7+
var package_spec = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
88

99
var { version, name } = package_spec;
1010

@@ -38,11 +38,11 @@ fs.writeFileSync(
3838
*
3939
* You should have received a copy of the GNU Lesser General Public License
4040
* along with this program; if not, write to the Free Software
41-
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
41+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
4242
let version = "${version}"
43-
let header =
44-
"// Generated by ReScript, PLEASE EDIT WITH CARE"
45-
let package_name = "${name}"
43+
let header =
44+
"// Generated by ReScript, PLEASE EDIT WITH CARE"
45+
let package_name = "${name}"
4646
`,
4747
"utf8"
4848
);

jscomp/common/bs_version.ml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)