You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

flarum-gulp

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flarum-gulp

Gulp wrapper for Flarum JavaScript compilation.

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
10
400%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 17 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts