Browse Source

Merge pull request #620 from SimenB/peerDependencies-and-badges

Move jQuery dependency to peerDependencies and add David-badges
Robin Herbots 11 years ago
parent
commit
1eea5ee6db
3 changed files with 12 additions and 6 deletions
  1. 2 1
      .gitignore
  2. 2 0
      README.md
  3. 8 5
      package.json

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 ./InputMask
 test.html
 jquery-1.10.2.js
-dist/jQuery.InputMask.*.nupkg
+dist/jQuery.InputMask.*.nupkg
+node_modules/

+ 2 - 0
README.md

@@ -3,6 +3,8 @@
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://opensource.org/licenses/mit-license.php)
 
+[![Dependency Status](https://david-dm.org/RobinHerbots/jquery.inputmask.svg)](https://david-dm.org/RobinHerbots/jquery.inputmask) [![devDependency Status](https://david-dm.org/RobinHerbots/jquery.inputmask/dev-status.svg)](https://david-dm.org/RobinHerbots/jquery.inputmask#info=devDependencies) [![peerDependency Status](https://david-dm.org/RobinHerbots/jquery.inputmask/peer-status.svg)](https://david-dm.org/RobinHerbots/jquery.inputmask#info=peerDependencies)
+
 jquery.inputmask is a jQuery plugin which create an input mask.
 
 An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers, ...

+ 8 - 5
package.json

@@ -5,10 +5,10 @@
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",
-	"./dist/inputmask/jquery.inputmask.date.extensions.js",
-	"./dist/inputmask/jquery.inputmask.numeric.extensions.js",
-	"./dist/inputmask/jquery.inputmask.phone.extensions.js",
-	"./dist/inputmask/jquery.inputmask.regex.extensions.js"
+    "./dist/inputmask/jquery.inputmask.date.extensions.js",
+    "./dist/inputmask/jquery.inputmask.numeric.extensions.js",
+    "./dist/inputmask/jquery.inputmask.phone.extensions.js",
+    "./dist/inputmask/jquery.inputmask.regex.extensions.js"
   ],
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
@@ -32,7 +32,10 @@
     "url": "https://github.com/RobinHerbots/jquery.inputmask/issues"
   },
   "homepage": "https://github.com/RobinHerbots/jquery.inputmask",
-  "dependencies": {
+  "peerDependencies": {
+    "jquery": ">=1.7"
+  },
+  "devDependencies": {
     "jquery": ">=1.7"
   }
 }