1.1.1 • Published 3 years ago

malta-babel v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

npm version npm downloads npm downloads


This plugin can be used on: .ts and .js files

Options :
- config : the path relative to the execution folder of a config file

All official presets are already shipped in malta-babel, if in the config file you set up the usage of one or more plugins you need to add the dependency manually to Your project.

Sample usage:

malta app/source/index.js public/js -plugins=malta-babel[config:\"myconf.json\"]

or in the .json file :

"app/source/index.js" : "public/js -plugins=malta-babel[config:\"myconf.json\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/js',
    '-plugins=malta-babel[config:\"myconf.json\"]',
    '-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('=========');
    });

where my config could be:

{
    "presets": [
        [
            "@babel/env",
            {
                "targets": {
                    "edge": "17",
                    "firefox": "60",
                    "chrome": "67",
                    "safari": "11.1"
                },
                "useBuiltIns": "usage"
            }
        ]
    ]
}
1.1.1

3 years ago

1.1.0

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.13

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago