malta-browserify

0.0.2 • Public • Published

npm version npm downloads npm downloads

This plugin can be used on: .js files

browserify needs to be globally available (yarn global add browserify)

Options : You can pass the options using an options parameter to the plugin. Do not use the -o parameter cause malta-browserify adds it automatically with the right outfilename.

Sample usage:

malta app/source/home.js public/js -plugins=malta-browserify[options:[\"--dg\",\"-ig\",\"--deps\"]]
# remember that options cannot contain spaces 

or in the .json file :

"app/source/home.js" : "public/js -plugins=malta-browserify[options:[\"--dg\",\"-ig\",\"--deps\"]]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/home.js',
    'public/js',
    '-plugins=malta-browserify[options:[\"--dg\",\"-ig\",\"--deps\"]]',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

Package Sidebar

Install

npm i malta-browserify

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.39 kB

Total Files

4

Last publish

Collaborators

  • fedeghe