1.0.8 • Published 9 years ago

es6m2amd v1.0.8

Weekly downloads
18
License
LGPL
Repository
github
Last release
9 years ago

ECMAScript6 module to AMD converter

Converts ECMAScript 6 modules to AMD.

Install

$ [sudo] npm install -g es6m2amd

Usage

$ m2amd -o out examples

Where "examples" is the directory which will be scanned for files and "out" is the folder, in which the processed files will be stored.

You can include only some of the files in a directory by specifying file pattern via "-i" option, like this:

$ m2amd -o out -i "**/module.js" examples

In this case only file, called "module.js" in whatever sub-directory of "examples" folder will be processed.

Source maps will be generated if you run the program with -m option.

Look for more information in the rest of the options:

$ m2amd --help

  Usage: m2amd [options] <folder ...>

  Options:

    -h, --help                     output usage information
    -o, --output [output folder]   output folder to store the generated AMD module. Default: current directory
    -i, --include [file patterns]  file patterns to process. Default: "**/*.js"
    -m, --map [source map]         Generate source map
    -V, --version                  output the version number

License

LGPL License

Build Status

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago