Permalink
Browse files

New: component.json file for Bower ( http://twitter.github.com/bower/

…) support. Both component.json and package.json are generated with the correct version number in them.
  • Loading branch information...
1 parent e25b377 commit 55adb2f3d57df16954fb46230dabb1d014a2880d @DataTables committed Sep 15, 2012
Showing with 103 additions and 33 deletions.
  1. +11 −0 component.json
  2. +33 −33 package.json
  3. +59 −0 scripts/make.sh
View
@@ -0,0 +1,11 @@
+{
+ "name": "DataTables",
+ "version": "1.9.4.dev",
+ "main": [
+ "./media/js/jquery.dataTables.js",
+ "./media/css/jquery.dataTables.css",
+ ],
+ "dependencies": {
+ "jquery": "~1.8.0"
+ }
+}
View
@@ -1,34 +1,34 @@
{
- "name": "DataTables",
- "version": "1.9.2",
- "title": "DataTables",
- "author": {
- "name": "Allan Jardine",
- "url": "http://sprymedia.co.uk"
- },
- "licenses": [
- {
- "type": "BSD",
- "url": "http://datatables.net/license_bsd"
- },
- {
- "type": "GPLv2",
- "url": "http://datatables.net/license_gpl2"
- }
- ],
- "dependencies": {
- "jquery": "1.3 - 1.7"
- },
- "description": "DataTables enhances HTML tables with the ability to sort, filter and page the data in the table very easily. It provides a comprehensive API and set of configuration options, allowing you to consume data from virtually any data source.",
- "keywords": [
- "DataTables",
- "DataTable",
- "table",
- "grid",
- "filter",
- "sort",
- "page",
- "internationalisable"
- ],
- "homepage": "http://datatables.net"
-}
+ "name": "DataTables",
+ "version": "1.9.4.dev",
+ "title": "DataTables",
+ "author": {
+ "name": "Allan Jardine",
+ "url": "http://sprymedia.co.uk"
+ },
+ "licenses": [
+ {
+ "type": "BSD",
+ "url": "http://datatables.net/license_bsd"
+ },
+ {
+ "type": "GPLv2",
+ "url": "http://datatables.net/license_gpl2"
+ }
+ ],
+ "dependencies": {
+ "jquery": "1.4 - 1.8"
+ },
+ "description": "DataTables enhances HTML tables with the ability to sort, filter and page the data in the table very easily. It provides a comprehensive API and set of configuration options, allowing you to consume data from virtually any data source.",
+ "keywords": [
+ "DataTables",
+ "DataTable",
+ "table",
+ "grid",
+ "filter",
+ "sort",
+ "page",
+ "internationalisable"
+ ],
+ "homepage": "http://datatables.net"
+}
View
@@ -99,6 +99,65 @@ if [ "$CMD" != "debug" ]; then
fi
fi
+
+# Back to DataTables root dir
+cd ../..
+
+#
+# Packaging files
+#
+cat <<EOF > package.json
+{
+ "name": "DataTables",
+ "version": "${VERSION}",
+ "title": "DataTables",
+ "author": {
+ "name": "Allan Jardine",
+ "url": "http://sprymedia.co.uk"
+ },
+ "licenses": [
+ {
+ "type": "BSD",
+ "url": "http://datatables.net/license_bsd"
+ },
+ {
+ "type": "GPLv2",
+ "url": "http://datatables.net/license_gpl2"
+ }
+ ],
+ "dependencies": {
+ "jquery": "1.4 - 1.8"
+ },
+ "description": "DataTables enhances HTML tables with the ability to sort, filter and page the data in the table very easily. It provides a comprehensive API and set of configuration options, allowing you to consume data from virtually any data source.",
+ "keywords": [
+ "DataTables",
+ "DataTable",
+ "table",
+ "grid",
+ "filter",
+ "sort",
+ "page",
+ "internationalisable"
+ ],
+ "homepage": "http://datatables.net"
+}
+EOF
+
+cat <<EOF > component.json
+{
+ "name": "DataTables",
+ "version": "${VERSION}",
+ "main": [
+ "./media/js/jquery.dataTables.js",
+ "./media/css/jquery.dataTables.css",
+ ],
+ "dependencies": {
+ "jquery": "~1.8.0"
+ }
+}
+EOF
+
+
echo " Done\n"

0 comments on commit 55adb2f

Please sign in to comment.