JSPM

  • Created
  • Published
  • Downloads 7093
  • Score
    100M100P100Q116472F
  • License SEE LICENSE IN LICENSE

bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support

Package Exports

  • bs-platform/lib/es6/array.js
  • bs-platform/lib/es6/belt_Array.js
  • bs-platform/lib/es6/belt_Float.js
  • bs-platform/lib/es6/belt_Id.js
  • bs-platform/lib/es6/belt_List.js
  • bs-platform/lib/es6/belt_Map.js
  • bs-platform/lib/es6/belt_MapInt.js
  • bs-platform/lib/es6/belt_MutableMapInt.js
  • bs-platform/lib/es6/belt_MutableQueue.js
  • bs-platform/lib/es6/belt_MutableStack.js
  • bs-platform/lib/es6/belt_Option.js
  • bs-platform/lib/es6/belt_Result.js
  • bs-platform/lib/es6/belt_Set.js
  • bs-platform/lib/es6/belt_SortArray.js
  • bs-platform/lib/es6/buffer.js
  • bs-platform/lib/es6/bytes.js
  • bs-platform/lib/es6/caml_array.js
  • bs-platform/lib/es6/caml_bytes.js
  • bs-platform/lib/es6/caml_exceptions.js
  • bs-platform/lib/es6/caml_format.js
  • bs-platform/lib/es6/caml_int32.js
  • bs-platform/lib/es6/caml_int64.js
  • bs-platform/lib/es6/caml_js_exceptions.js
  • bs-platform/lib/es6/caml_module.js
  • bs-platform/lib/es6/caml_obj.js
  • bs-platform/lib/es6/caml_option.js
  • bs-platform/lib/es6/caml_primitive.js
  • bs-platform/lib/es6/caml_string.js
  • bs-platform/lib/es6/camlinternalLazy.js
  • bs-platform/lib/es6/char.js
  • bs-platform/lib/es6/curry.js
  • bs-platform/lib/es6/filename.js
  • bs-platform/lib/es6/format.js
  • bs-platform/lib/es6/js_dict.js
  • bs-platform/lib/es6/js_json.js
  • bs-platform/lib/es6/js_mapperRt.js
  • bs-platform/lib/es6/js_null_undefined.js
  • bs-platform/lib/es6/js_option.js
  • bs-platform/lib/es6/lexing.js
  • bs-platform/lib/es6/list.js
  • bs-platform/lib/es6/pervasives.js
  • bs-platform/lib/es6/printf.js
  • bs-platform/lib/es6/queue.js
  • bs-platform/lib/es6/set.js
  • bs-platform/lib/es6/string.js
  • bs-platform/lib/es6/sys.js
  • bs-platform/lib/es6/uchar.js
  • bs-platform/lib/js/arg.js
  • bs-platform/lib/js/array
  • bs-platform/lib/js/array.js
  • bs-platform/lib/js/belt_Array.js
  • bs-platform/lib/js/belt_Float.js
  • bs-platform/lib/js/belt_HashMapInt.js
  • bs-platform/lib/js/belt_HashMapString.js
  • bs-platform/lib/js/belt_Id.js
  • bs-platform/lib/js/belt_List.js
  • bs-platform/lib/js/belt_Map.js
  • bs-platform/lib/js/belt_MapInt.js
  • bs-platform/lib/js/belt_MapString.js
  • bs-platform/lib/js/belt_MutableMapInt.js
  • bs-platform/lib/js/belt_MutableQueue.js
  • bs-platform/lib/js/belt_MutableSetString.js
  • bs-platform/lib/js/belt_MutableStack.js
  • bs-platform/lib/js/belt_Option.js
  • bs-platform/lib/js/belt_Result.js
  • bs-platform/lib/js/belt_Set.js
  • bs-platform/lib/js/belt_SetInt.js
  • bs-platform/lib/js/belt_SetString.js
  • bs-platform/lib/js/belt_SortArray.js
  • bs-platform/lib/js/belt_SortArrayString.js
  • bs-platform/lib/js/buffer.js
  • bs-platform/lib/js/bytes
  • bs-platform/lib/js/bytes.js
  • bs-platform/lib/js/caml_array
  • bs-platform/lib/js/caml_array.js
  • bs-platform/lib/js/caml_bytes.js
  • bs-platform/lib/js/caml_exceptions
  • bs-platform/lib/js/caml_exceptions.js
  • bs-platform/lib/js/caml_external_polyfill.js
  • bs-platform/lib/js/caml_float
  • bs-platform/lib/js/caml_format.js
  • bs-platform/lib/js/caml_int32.js
  • bs-platform/lib/js/caml_int64
  • bs-platform/lib/js/caml_int64.js
  • bs-platform/lib/js/caml_js_exceptions.js
  • bs-platform/lib/js/caml_module.js
  • bs-platform/lib/js/caml_obj
  • bs-platform/lib/js/caml_obj.js
  • bs-platform/lib/js/caml_oo_curry.js
  • bs-platform/lib/js/caml_option.js
  • bs-platform/lib/js/caml_primitive.js
  • bs-platform/lib/js/caml_splice_call.js
  • bs-platform/lib/js/caml_string
  • bs-platform/lib/js/caml_string.js
  • bs-platform/lib/js/caml_sys.js
  • bs-platform/lib/js/camlinternalLazy.js
  • bs-platform/lib/js/camlinternalOO.js
  • bs-platform/lib/js/char.js
  • bs-platform/lib/js/curry
  • bs-platform/lib/js/curry.js
  • bs-platform/lib/js/filename.js
  • bs-platform/lib/js/format
  • bs-platform/lib/js/format.js
  • bs-platform/lib/js/hashtbl
  • bs-platform/lib/js/hashtbl.js
  • bs-platform/lib/js/int32
  • bs-platform/lib/js/int32.js
  • bs-platform/lib/js/int64
  • bs-platform/lib/js/int64.js
  • bs-platform/lib/js/js_dict.js
  • bs-platform/lib/js/js_exn.js
  • bs-platform/lib/js/js_json
  • bs-platform/lib/js/js_json.js
  • bs-platform/lib/js/js_list.js
  • bs-platform/lib/js/js_mapperRt.js
  • bs-platform/lib/js/js_math.js
  • bs-platform/lib/js/js_null_undefined.js
  • bs-platform/lib/js/js_option.js
  • bs-platform/lib/js/js_types.js
  • bs-platform/lib/js/js_undefined.js
  • bs-platform/lib/js/lazy.js
  • bs-platform/lib/js/lexing.js
  • bs-platform/lib/js/list
  • bs-platform/lib/js/list.js
  • bs-platform/lib/js/map.js
  • bs-platform/lib/js/nativeint.js
  • bs-platform/lib/js/node.js
  • bs-platform/lib/js/node_process.js
  • bs-platform/lib/js/obj.js
  • bs-platform/lib/js/parsing.js
  • bs-platform/lib/js/pervasives
  • bs-platform/lib/js/pervasives.js
  • bs-platform/lib/js/printexc.js
  • bs-platform/lib/js/printf.js
  • bs-platform/lib/js/queue.js
  • bs-platform/lib/js/random
  • bs-platform/lib/js/random.js
  • bs-platform/lib/js/set.js
  • bs-platform/lib/js/stack.js
  • bs-platform/lib/js/stream.js
  • bs-platform/lib/js/string
  • bs-platform/lib/js/string.js
  • bs-platform/lib/js/sys.js
  • bs-platform/lib/js/uchar.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bs-platform) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

BuckleScript

A JavaScript backend for OCaml focused on smooth integration and clean generated code.

NPM Build Status

Documentation

Please see the documentation site.

Contributing

See CONTRIBUTING.md.

Acknowledgments

  • Thanks to the OCaml team, obviously, without such a beautiful yet practical language, this backend would not exist
  • Thanks to ninja-build, BuckleScript also comes with a blazing fast build tool on top of it, ninja is a truly well engineered scalable build tool
  • Thanks to Bloomberg and Facebook. This project began at Bloomberg and was published in 2016; without the support of Bloomberg, it would not have happened. This project's funded by Facebook since July/2017

Roadmap

Licensing

See COPYING and COPYING.LESSER

The ocaml directory contains the official OCaml compiler (version 4.02.3). Refer to its copyright and license notices for information about its licensing.

The vendor/ninja.tar.gz contains the vendored ninja. Refer to its copyright and license notices for information about its licensing.

BuckleScript builds on parts of js_of_ocaml:

BuckleScript builds on parts of OCaml:

These modules were adapted from ocaml/bytecomp/simplif.ml for JavaScript specific optimization purposes.

jscomp/main/js_main.ml is adapted from ocaml/driver/main.ml. It is the main entry point of the underlying compiler.

jscomp/stdlib-* is copied from ocaml/stdlib. It is compiled to JavaScript and included with BuckleScript.

jscomp/test is based on ocaml/testsuite.

BuckleScript unit test builds on parts of OUnit

  • jscomp/ounit is adapted from ounit, the unit test utilities are only used for dev purpose, they are not required for distribution