From 89729dd24df7d335239077c41d61a2e0b3ced30f Mon Sep 17 00:00:00 2001 From: Jarreddebeer Date: Thu, 28 Nov 2013 18:40:08 +0200 Subject: [PATCH 1/2] Create package.json There may be some benefits to having a package.json, but the primary reason i'm interested in submitting this is for the jspm override entry, with it we can include select2 as simply as: http://jsbin.com/upOtaXIR/2/edit Any questions please shout! --- package.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 00000000..b708761e --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name" : "Select2", + "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", + "homepage": "http://ivaynberg.github.io/select2", + "author": "Igor Vaynberg", + "repository": {"type": "git", "url": "git://github.com/documentcloud/underscore.git"}, + "main": "select2.js", + "version": "3.4.5", + "jspm": { + "main": "select2", + "files": ["select2.js", "select2.png", "select2.css", "select2-spinner.gif"], + "shim": { + "select2": { + "imports": ["jquery", "./select2.css!"], + "exports": "$" + } + }, + "buildConfig": { "uglify": true } + } +} From 89dfa888c9dcba0247e37c097b00000e4fcb4bfd Mon Sep 17 00:00:00 2001 From: Jarreddebeer Date: Sun, 1 Dec 2013 16:41:15 +0200 Subject: [PATCH 2/2] Correcting git repository url --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b708761e..543ae3b7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", "homepage": "http://ivaynberg.github.io/select2", "author": "Igor Vaynberg", - "repository": {"type": "git", "url": "git://github.com/documentcloud/underscore.git"}, + "repository": {"type": "git", "url": "git://github.com/ivaynberg/select2.git"}, "main": "select2.js", "version": "3.4.5", "jspm": {