Code Monkey home page Code Monkey logo

jorisgio / bucklescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melange-re/melange

0.0 1.0 0.0 1.1 GB

A backend for the OCaml compiler which emits JavaScript.

Home Page: https://bucklescript.github.io

License: Other

Makefile 0.04% OCaml 52.43% Shell 0.01% Standard ML 0.15% JavaScript 14.81% HTML 0.01% C 27.21% C++ 0.06% CSS 0.01% TeX 0.98% PostScript 3.04% Gnuplot 0.01% Coq 0.89% Reason 0.35% Nix 0.01% ReScript 0.01% Python 0.01%

bucklescript's Introduction

BuckleScript

OCaml -> JS compiler.

This project is a fork of the ReScript compiler with a focus on compatibility with the wider OCaml ecosystem. A small write-up with more details on the motivation behind this project can be found in this blog post.

Installation

This project is currently unreleased. Currently, the most straightforward way to use it is via Esy.

  1. Make sure you have Esy installed (npm install -g esy should cover most workflows)
  2. Use an esy.json file like the following:
{
  "dependencies": {
    "bs-platform": "*"
  },
  "resolutions": {
    "bs-platform": "anmonteiro/bucklescript#2d3d464", <- or grab the latest commit in this repo
    "ocaml": "anmonteiro/ocaml#75f22c8"
  },
  "esy": {
    "buildsInSource": "unsafe",
    "build": [
      "ln -sfn #{bs-platform.install} node_modules/bs-platform"
    ]
  },
  "installConfig": {
    "pnp": false
  }
}
  1. Reach out on the ReasonML Discord if you can't figure it out!

Contributing

See CONTRIBUTING.md.

Acknowledgments

See Credits.md.

Licensing

See COPYING and COPYING.LESSER

The ocaml directory contains the official OCaml compiler (version 4.06.1). 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.

See Credits for more details.

bucklescript's People

Contributors

anmonteiro avatar arnarthor avatar bloodyowl avatar bobzhang avatar bsansouci avatar chenglou avatar coobaha avatar cristianoc avatar evmar avatar fanael avatar glennsl avatar jchavarri avatar jdeisenberg avatar joshaber avatar mchaver avatar mransan avatar ngzhian avatar nico avatar nicolasdespres avatar nikgraf avatar pcc avatar qhuo avatar riannucci avatar rickyvetter avatar ryyppy avatar sgraham avatar syntheticpp avatar tfarina avatar ulrikstrid avatar zploskey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.