Ninety-nine Pitchers of Malt

    This package has been deprecated

    Author message:

    The package is no longer maintained

    @buxlabs/gulp-es6-to-amd

    1.6.2 • Public • Published

    ES to AMD converter

    npm

    ES (EcmaScript) Module to AMD (Asynchronous Module Definition) converter

    Table of Contents

    Background

    This gulp plugin uses an ES to AMD converter for ES -> AMD conversion. It can be helpful during code migrations where you need to have a temporary backwards compatibility.

    Install

    npm install @buxlabs/gulp-es6-to-amd
    

    Usage

    Convert files with:

    const gulp = require('gulp')
    const es6toamd = require('@buxlabs/gulp-es6-to-amd')
    
    module.exports = ({ src, dest }) => {
      return gulp.src(src)
        .pipe(es6toamd())
        .pipe(gulp.dest(dest))
    }

    Examples

    ES

    import Backbone from 'backbone';
    
    export default Backbone.Model.extend({});

    AMD

    define(['backbone'], function (Backbone) {
        'use strict';
        return Backbone.Model.extend({});
    });

    Maintainers

    @emilos.

    Contributing

    All contributions are highly appreciated! Open an issue or a submit PR.

    License

    MIT © buxlabs

    Install

    npm i @buxlabs/gulp-es6-to-amd

    DownloadsWeekly Downloads

    3

    Version

    1.6.2

    License

    MIT

    Unpacked Size

    4.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • buxlabs-dev
    • emilos