A gulp plugin used for compiling MoonScript to Lua.
npm i gulp-moon
# or
yarn add gulp-moon
Note: This plugin requires lua
to be in your PATH and moonscript
be requirable out of it.
const gulp = require('gulp');
const moon = require('gulp-moon');
gulp.task('default', () =>
gulp.src('src/moon/**/*.moon')
.pipe(moon())
.pipe(gulp.dest('dest/lua')));
Option | Default | Description |
---|---|---|
extension | .lua |
Extension of compiled files |