jcassee / angular-hypermedia

Hypermedia REST API client for AngularJS applications
MIT License
38 stars 5 forks source link

Let hypermedia be a proper CommonJS module #43

Closed SanderSmee closed 8 years ago

SanderSmee commented 8 years ago

Just as angular modules (angular-messages, ui-router) published on NPM, this module should be a proper commonjs module. This way it can be require()d just as those modules.

Just as the official angular modules, this creates an index.js that does the actual export, guarded by a commen check for a commonjs environment.

Fix for jcassee/angular-hypermedia#42

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 99.286% when pulling 7c3dc452ae775bc25c812dc81a78657d7acd30e2 on SanderSmee:master into 2370dde99dbdcd2ec12ccf5c4d9f8be29f5df11c on jcassee:master.

jcassee commented 8 years ago

Thanks, Sander, this is useful. One question: does this not break Bower?

Edit: ehm, of course not, Bower uses bower.json.

jcassee commented 8 years ago

Released as 1.0.1.