1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

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.

This commit is contained in:
Allan Jardine 2012-09-15 10:52:19 +01:00
parent e25b377ee8
commit 55adb2f3d5
3 changed files with 103 additions and 33 deletions

11
component.json Normal file
View File

@ -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 File

@ -1,6 +1,6 @@
{
"name": "DataTables",
"version": "1.9.2",
"version": "1.9.4.dev",
"title": "DataTables",
"author": {
"name": "Allan Jardine",
@ -17,7 +17,7 @@
}
],
"dependencies": {
"jquery": "1.3 - 1.7"
"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": [

View File

@ -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"