angular-busy icon indicating copy to clipboard operation
angular-busy copied to clipboard

upgrade cg-busy 4.1.4 to npm

Open ghernandez81 opened this issue 9 years ago • 10 comments

ghernandez81 avatar Apr 08 '15 15:04 ghernandez81

currently in npm it's 4.1.0

ghernandez81 avatar Apr 08 '15 15:04 ghernandez81

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

gabehayes avatar Jun 01 '15 17:06 gabehayes

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

cgross avatar Jun 01 '15 21:06 cgross

Please, can you upgrade angular-busy in NPM ? (npm install [email protected] doesn't exist)

Valko54 avatar Jun 24 '15 07:06 Valko54

+1

axelson avatar Jul 08 '15 19:07 axelson

+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:

  • https://github.com/wix/angular-tree-control/pull/152
  • https://github.com/gdi2290/angular-md5/issues/8
    • https://github.com/gdi2290/angular-md5/pull/9
  • https://github.com/muratcorlu/angular-urlify/pull/1
  • https://github.com/tarkanlar/Angular-Urlify/pull/1

Sources

benoror avatar Jul 30 '15 22:07 benoror

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"

benoror avatar Jul 30 '15 22:07 benoror

+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)

myflowpl avatar Oct 21 '15 08:10 myflowpl

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

benoror avatar Oct 21 '15 14:10 benoror

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

bikegriffith avatar Dec 05 '15 03:12 bikegriffith