Skip to content

Commit 9fcbfbe

Browse files
committed
Merge pull request #23 from benoror/master
refactor: commonjs package manager support
2 parents b555051 + 2142f41 commit 9fcbfbe

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

bower.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-color-picker",
33
"description": "Color Picker Directive For AngularJS",
4-
"version": "0.6.4",
4+
"version": "0.6.5",
55
"homepage": "https://github.com/ruhley/angular-color-picker",
66
"repository": {
77
"type": "git",
@@ -10,6 +10,9 @@
1010
"authors": [
1111
"ruhley <[email protected]>"
1212
],
13+
"contributors": [
14+
"Benjamin Orozco <[email protected]>"
15+
],
1316
"main": [
1417
"angularjs-color-picker.js",
1518
"angularjs-color-picker.css"

lib/scripts/module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/* commonjs package manager support (eg. componentjs) */
2+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
3+
module.exports = 'color.picker';
4+
}
5+
16
(function() {
27
'use strict';
38

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
{
22
"name": "angular-color-picker",
33
"description": "Color Picker Directive For AngularJS",
4-
"version": "0.6.4",
4+
"version": "0.6.5",
5+
"main": [
6+
"angularjs-color-picker.js",
7+
"angularjs-color-picker.css"
8+
],
59
"dependencies": {},
610
"repository": {
711
"type": "git",
812
"url": "git://github.com/ruhley/angular-color-picker.git"
913
},
14+
"authors": [
15+
"ruhley <[email protected]>"
16+
],
17+
"contributors": [
18+
"Benjamin Orozco <[email protected]>"
19+
],
1020
"devDependencies": {
1121
"glob": "~5.0.0",
1222
"grunt": "~0.4.5",

0 commit comments

Comments
 (0)