Archived
1
0

Use Composer's fxp/asset plugin instead of manual repositories for MDL.

This commit is contained in:
Markus Birth 2016-07-09 16:24:24 +02:00
parent 907c557479
commit 549fac64d5
6 changed files with 1369 additions and 93 deletions

@ -6,3 +6,20 @@ Allows you to send mails to your Google Inbox that trigger Google Now cards.
To set up a server for yourself, you have to get an API key from
https://console.developers.google.com/apis/, download the `client_secret.json`
and put it into the root directory.
Installation
============
After checkout, download Composer using the `composer-dl.sh`. If you decided to
get Composer manually, you have to also enable the [fxp-asset](https://packagist.org/packages/fxp/composer-asset-plugin)
plugin:
$ ./composer.phar global require "fxp/composer-asset-plugin:~1.1"
After that, install all dependencies by running:
$ ./composer.phar install
Finally, get an API key from the [Google Developer Console](https://console.developers.google.com/apis/)
and download your `client_secret.json` into the root directory of this project.

18
composer-dl.sh Normal file

@ -0,0 +1,18 @@
#!/bin/sh
# https://getcomposer.org/
if [ -x `which wget` ]; then
echo "wget found."
wget -q https://getcomposer.org/installer -O - | php
elif [ -x `which curl` ]; then
echo "curl found."
curl -sS https://getcomposer.org/installer | php
else
echo "Please install wget or curl to download Composer."
fi
if [ -f "./composer.phar" ]; then
chmod a+x ./composer.phar
# Install support for bower and NPM packages
./composer.phar global require "fxp/composer-asset-plugin:~1.1"
fi

@ -4,34 +4,14 @@
"require": {
"php": ">=5.3.0",
"mustache/mustache": "~2.10",
"google/material-design-lite": "~1.1.3",
"google/apiclient": "^2.0.0@RC",
"leifoolsen/mdl-ext": "~0.8.12"
"bower-asset/material-design-lite": "*",
"npm-asset/mdl-ext": "*",
"google/apiclient": "^2.0.0@RC"
},
"repositories": [
{
"type": "package",
"package": {
"name": "google/material-design-lite",
"version": "1.1.3",
"source": {
"type": "git",
"url": "https://github.com/google/material-design-lite",
"reference": "v1.1.3"
}
}
},
{
"type": "package",
"package": {
"name": "leifoolsen/mdl-ext",
"version": "0.8.12",
"source": {
"type": "git",
"url": "https://github.com/leifoolsen/mdl-ext",
"reference": "v0.8.12"
}
}
}
]
"require-dev": {
"phpunit/phpunit": "4.*"
},
"autoload": {
"classmap": ["lib/"]
}
}

1381
composer.lock generated

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
<script src="vendor/google/material-design-lite/material.min.js" charset="utf-8"></script>
<script src="vendor/leifoolsen/mdl-ext/lib/mdl-ext.js" charset="utf-8"></script>
<script src="vendor/bower-asset/material-design-lite/material.min.js" charset="utf-8"></script>
<script src="vendor/npm-asset/mdl-ext/lib/mdl-ext.js" charset="utf-8"></script>
</body>
</html>

@ -5,8 +5,8 @@
<title>Fake Reservation System</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"/>
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons"/>
<link rel="stylesheet" href="vendor/google/material-design-lite/material.min.css"/>
<link rel="stylesheet" href="vendor/leifoolsen/mdl-ext/lib/mdl-ext.css"/>
<link rel="stylesheet" href="vendor/bower-asset/material-design-lite/material.min.css"/>
<link rel="stylesheet" href="vendor/npm-asset/mdl-ext/lib/mdl-ext.css"/>
<link rel="stylesheet" href="css/frs.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>