JavaScripts your bucklescript
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: npm install grunt-bucklescript
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-bucklescript');
You'll need to install grunt-bucklescript
first:
npm install grunt-bucklescript
Then modify your grunt.js
file by adding the following line:
grunt.loadNpmTasks('grunt-bucklescript');
Then add some configuration for the plugin like so:
grunt.initConfig({
...
bucklescript: {
app: {
src: ['path/to/bucklescript/files/*.ocaml'],
dest: 'where/you/want/your/js/files',
options: {
}
}
},
...
});
Then just run grunt bucklescript
and enjoy!