Gulp wrapper for Flarum JavaScript compilation.
This package sets up a Gulp program that compiles JavaScript for use in Flarum. Example usage:
// Gulpfile.jsvar gulp = ; ;
$ gulp # compile $ gulp watch # compile and watch for changes
Options
files
An array of individual files to concatenate.modules
A map of module prefixes to their source files.- Modules are transpiled to ES5 using Babel, including
Object.assign
. - JSX is converted into Mithril's
m
syntax.
- Modules are transpiled to ES5 using Babel, including
outputFile
The resulting file to write to. Defaults todist/extension.js
.