1.0.1 • Published 10 years ago

add-define-names v1.0.1

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago

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.

1.0.1

10 years ago

1.0.0

10 years ago