millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

some users need the AMD modules even if using npm install #102

Closed millermedeiros closed 11 years ago

millermedeiros commented 11 years ago

for instance if they have test runners that should work on the browser and on node.js..

maybe use an UMD wrapper instead of converting source files into CJS or keep the src folder on the npm package.

millermedeiros commented 11 years ago

a solution if you want the AMD modules is to use bower to install the AMD version:

bower install amd-utils
satazor commented 11 years ago

One typical use case for this is a package that is built using amd but also has nodejs support, so it uses amdefine. The package tests work on both node and in the browser but since amd-utils is now commonjs in npm, it won't work in the browser anymore.

millermedeiros commented 11 years ago

I pushed v0.9.0 to npm which includes the src folder, feel free to reopen in case that doesn't solve your issue.