Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemoineat/grunt-of-ocamlbuild
Compile OCaml code to JavaScript with grunt, ocamlbuild and js_of_ocaml
https://github.com/lemoineat/grunt-of-ocamlbuild
grunt javascript js-of-ocaml ocaml ocamlbuild
Last synced: about 1 month ago
JSON representation
Compile OCaml code to JavaScript with grunt, ocamlbuild and js_of_ocaml
- Host: GitHub
- URL: https://github.com/lemoineat/grunt-of-ocamlbuild
- Owner: lemoineat
- License: mit
- Created: 2017-06-06T09:55:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T08:31:19.000Z (almost 2 years ago)
- Last Synced: 2024-12-03T12:03:17.169Z (about 1 month ago)
- Topics: grunt, javascript, js-of-ocaml, ocaml, ocamlbuild
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# 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:
```shell
$ npm install grunt-of-ocamlbuild --save-dev
```Include the task in your Gruntfile:
```js
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
```js
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](http://gruntjs.com/configuring-tasks#globbing-patterns) and [Building the files object dynamically](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically) for additional details.
##License
Copyright (c) 2017 Lemoine Automation Technologies
Licensed under the MIT license.