angular-drag-and-drop-lists icon indicating copy to clipboard operation
angular-drag-and-drop-lists copied to clipboard

Added commonjs support

Open emiluen opened this issue 9 years ago • 6 comments

emiluen avatar Nov 08 '16 13:11 emiluen

I'm not really familiar with CommonJS, is that compatible with RequireJS?! What is the impact of this PR on users that don't use CommonJS? Are all users that use the main attribute of the package.json using CommonJS?

I think this PR looks good to me though, unlike #301 it doesn't add anything for users that don't use CommonJS.

marceljuenemann avatar Jan 16 '17 23:01 marceljuenemann

The index.js file will make the angular module into a CommonJS module, and exports the name of that angular module. This makes it possible to import in nodejs/webpack/es6 and so on. For users that don't use CommonJS, the angular-drag-and-drop-lists.js is unchanged, so it will not make a difference.

Other modules use the same way to support CommonJS, for example: https://github.com/danialfarid/ng-file-upload/blob/master/index.js https://github.com/angular-ui/bootstrap/blob/master/index.js

On Tue, Jan 17, 2017 at 12:51 AM, Marcel Juenemann <[email protected]

wrote:

I'm not really familiar with CommonJS, is that compatible with RequireJS?! What is the impact of this PR on users that don't use CommonJS? Are all users that use the main attribute of the package.json using CommonJS?

I think this PR looks good to me though, unlike #301 https://github.com/marceljuenemann/angular-drag-and-drop-lists/pull/301 it doesn't add anything for users that don't use CommonJS.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marceljuenemann/angular-drag-and-drop-lists/pull/350#issuecomment-272987624, or mute the thread https://github.com/notifications/unsubscribe-auth/ARep5Ldir_LF4SfwP755B7DSDmsWiFaJks5rTAJogaJpZM4KsZy8 .

emiluen avatar Jan 24 '17 17:01 emiluen

Thanks! Can you resolve the merge conflict? Then I'll merge the PR

marceljuenemann avatar Jan 26 '17 08:01 marceljuenemann

@marceljuenemann @emiluen I've rebased this for you in #388

graingert avatar Feb 28 '17 14:02 graingert

Hey guys , any trouble to accept this PR ?

skyzito avatar May 03 '18 21:05 skyzito

any trouble with this PR?

MatheusArleson avatar Sep 12 '18 14:09 MatheusArleson