Use Composer's fxp/asset plugin instead of manual repositories for MDL.
This commit is contained in:
parent
907c557479
commit
549fac64d5
17
README.md
17
README.md
@ -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
|
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`
|
https://console.developers.google.com/apis/, download the `client_secret.json`
|
||||||
and put it into the root directory.
|
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
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": {
|
"require": {
|
||||||
"php": ">=5.3.0",
|
"php": ">=5.3.0",
|
||||||
"mustache/mustache": "~2.10",
|
"mustache/mustache": "~2.10",
|
||||||
"google/material-design-lite": "~1.1.3",
|
"bower-asset/material-design-lite": "*",
|
||||||
"google/apiclient": "^2.0.0@RC",
|
"npm-asset/mdl-ext": "*",
|
||||||
"leifoolsen/mdl-ext": "~0.8.12"
|
"google/apiclient": "^2.0.0@RC"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"require-dev": {
|
||||||
{
|
"phpunit/phpunit": "4.*"
|
||||||
"type": "package",
|
},
|
||||||
"package": {
|
"autoload": {
|
||||||
"name": "google/material-design-lite",
|
"classmap": ["lib/"]
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
1381
composer.lock
generated
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/bower-asset/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/npm-asset/mdl-ext/lib/mdl-ext.js" charset="utf-8"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<title>Fake Reservation System</title>
|
<title>Fake Reservation System</title>
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en"/>
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en"/>
|
||||||
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons"/>
|
<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/bower-asset/material-design-lite/material.min.css"/>
|
||||||
<link rel="stylesheet" href="vendor/leifoolsen/mdl-ext/lib/mdl-ext.css"/>
|
<link rel="stylesheet" href="vendor/npm-asset/mdl-ext/lib/mdl-ext.css"/>
|
||||||
<link rel="stylesheet" href="css/frs.css"/>
|
<link rel="stylesheet" href="css/frs.css"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user