From 45ebaa064ffe291cefcbf65b2f13937c5b3cc955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20=C3=85hlin?= Date: Tue, 29 Jul 2014 15:20:21 +0200 Subject: [PATCH 1/3] Add bower support --- bower.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..b33cfd9 --- /dev/null +++ b/bower.json @@ -0,0 +1,8 @@ +{ + "name": "datatables-plugins", + "version": "1.0.0", + "ignore": [], + "dependencies": { + "datatables": ">=1.10.1" + } +} From 91951d76f68a46747035ae386e846ee0f9fb5074 Mon Sep 17 00:00:00 2001 From: dennisahlin Date: Wed, 1 Oct 2014 15:47:13 +0200 Subject: [PATCH 2/3] Add bower instructions --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5da76fd..460db3f 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,15 @@ This repository holds the following plug-in types for DataTables: * Integration scripts * Twitter Bootstrap -Each directory has an index.html file which is used to generate the plug-ins documentation on [DataTables.net](http://datatables.net/plug-ins) and describes how plug-ins can be used. \ No newline at end of file +Each directory has an index.html file which is used to generate the plug-ins documentation on [DataTables.net](http://datatables.net/plug-ins) and describes how plug-ins can be used. + +## Bower +To select which plugins to use, override the main section in your bower.json file with the files you need. Eg. +`"overrides": {` +`"datatables-plugins": {` +`"main": [` + `"./integration/bootstrap/3/dataTables.bootstrap.js",` + `"./integration/bootstrap/3/dataTables.bootstrap.css"` + `]` +`}` +`}` From ec39126cac46e3f90fd9510bdb96cfed9d276653 Mon Sep 17 00:00:00 2001 From: dennisahlin Date: Wed, 1 Oct 2014 15:48:23 +0200 Subject: [PATCH 3/3] Add empty main --- bower.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bower.json b/bower.json index b33cfd9..7ef6766 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,7 @@ { "name": "datatables-plugins", "version": "1.0.0", + "main": [], "ignore": [], "dependencies": { "datatables": ">=1.10.1"