Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
/ flarum-gulp Public archive

Gulp wrapper for Flarum extension JavaScript compilation.

License

Notifications You must be signed in to change notification settings

flarum/flarum-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gulp wrapper for Flarum JavaScript compilation.

This package sets up a Gulp program that compiles JavaScript for use in Flarum. Example usage:

// Gulpfile.js
var gulp = require('flarum-gulp');

gulp({
  files: [
    'bower_components/foo/bar.js'
  ],
  modules: {
    'vendor/package': 'src/**/*.js'
  }
});
$ 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.
  • outputFile The resulting file to write to. Defaults to dist/extension.js.

About

Gulp wrapper for Flarum extension JavaScript compilation.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •