add-define-names

1.0.1 • Public • Published

add-define-names

Use:

If you have modules/moduleA.js, modules/moduleB.js and modules/moduleC.js, with AMD modules in them, then

add-define-names.js -p 1 modules/*.js

Will emit AMD defines like so:

define('moduleA', function () .... );
define('moduleB', function () .... );
define('moduleC', function () .... );

It will preserve existing requires and module contents, only adds the name to the define calls and concatenates.

Readme

Keywords

none

Package Sidebar

Install

npm i add-define-names

Weekly Downloads

1

Version

1.0.1

License

BSD

Last publish

Collaborators

  • aredridel