1.0.3 • Published 1 year ago
grunt-of-ocamlbuild v1.0.3
grunt-of-ocamlbuild
Compile OCaml code to JavaScript with ocamlbuild and js_of_ocaml
Getting Started
Requirements
Grunt
ocamlbuild
Findlib (ocamlfind)
js_of_ocaml
Installation
Install this plugin:
$ npm install grunt-of-ocamlbuild --save-dev
Include the task in your Gruntfile:
grunt.loadNpmTasks('grunt-of-ocamlbuild');
ocamlbuild task
Run this task with the grunt jsofocamlbuild
command.
Options
ocamlbuild
Type: String array
Additional options to be passed to ocamlbuild
.
js_of_ocaml
Type: String array
Additional options to be passed to js_of_ocaml
.
Usage Examples
jsofocamlbuild: {
main: {
files: {
'lib/': 'ocaml/main.ml'
},
options:
ocamlbuild: [],
js_of_ocaml: ['source-map']
},
},
This task supports all the file mapping format Grunt supports. Please read Globbing patterns and Building the files object dynamically for additional details.
##License
Copyright (c) 2017 Lemoine Automation Technologies
Licensed under the MIT license.