Coder Social home page Coder Social logo

esy-ocaml-project's Introduction

OCaml esy project

Build Status

A project which demonstrates an OCaml workflow with esy.

esy is an overlay on top of package.json based package managers, that enables package.json packages to use compilers and environments quickly, and easily.

Installation

You can install the beta using npm install -g.

npm install -g git://github.com/jordwalke/esy.git#beta-v0.0.2

WARNING: Only npm is supported right now (not yarn, pnpm, or ied). This restriction is temporary and will be lifted in the future.

Build

% esy build

Clean build artifcats

% esy clean

Shell into build environment

% esy shell

Run preconfigured OCaml REPL

% esy repl

Merlin

Merlin integration is included. If your editor of choice has Merlin plugin/extension then you can run:

% esy $EDITOR

and start using it ($EDITOR env var must point to your editor of choice).

Merlin + Vim

This project also builds the Merlin IDE plugin as a dependency, which includes Vim support. To enable it install the tiny Vim plugin which will load Merlin's Vim support from the environment, by putting this in your .vimrc.

" If using NeoBundle(recommended)
NeoBundle 'reasonml/vim-reason-loader'

" Using Vundle
Bundle 'reasonml/vim-reason-loader'

Then whenever starting Vim inside the project's esy environment, that vim plugin will automatically load the actual Merlin plugin.

% esy vim

% # Or
% esy $EDITOR

esy-ocaml-project's People

Contributors

andreypopp avatar jordwalke avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.