cgross / angular-busy

Show busy/loading indicators on any element during $http requests (or any promise).
http://cgross.github.io/angular-busy/demo
MIT License
1.44k stars 256 forks source link

upgrade cg-busy 4.1.4 to npm #62

Open ghernandez81 opened 9 years ago

ghernandez81 commented 9 years ago

currently in npm it's 4.1.0

gabehayes commented 9 years ago

Also, there is a tag missing for v4.1.4, so you can't event set a branch/tag target in the interim.

cgross commented 9 years ago

Thats because there is no 4.1.4. The latest ver is 4.1.3.

Valko54 commented 9 years ago

Please, can you upgrade angular-busy in NPM ? (npm install angular-busy@4.1.3 doesn't exist)

axelson commented 9 years ago

+1

benoror commented 9 years ago

+1 Hi, I would also benefit from having it updated, let me give you my reason:

Support for Webpack + CommonJS Package Manager

Motivation

I'm in the process of refactoring an app to support modern JS tooling like NPM, Webpack & ES6.

Code Change

A small change is needed to support CommonJS:

/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
  module.exports = 'cgBusy';
}

Working Examples

I have done other PRs for some of my dependencies:

Sources

benoror commented 9 years ago

BTW @gabehayes you can use latest master commit with the following format in package.json:

"angular-busy": "git+https://github.com/cgross/angular-busy.git"
myflowpl commented 8 years ago

+1 but i think there should be module.exports = 'cgBusy' instead of module.exports = 'angular-md5' then it's compatibile with CommonJS and Angular style (and Webpack)

benoror commented 8 years ago

You're right, fixed! Any chance we could se an npm release soon @cgross ?

bikegriffith commented 8 years ago

Would love to see this so I don't have to fork and maintain to use in my webpack-driven project