1
0

Fix license in bower.json. Automate bower install with composer.

Clarify in README.
This commit is contained in:
2018-04-25 14:08:59 +02:00
parent bf238d6933
commit 95172db3c7
3 changed files with 24 additions and 7 deletions

View File

@ -50,11 +50,17 @@ That's it !
$_config['geo_reverse_lookup_url'] // geodecoding api url, will be appended with lat= & lon= attributes $_config['geo_reverse_lookup_url'] // geodecoding api url, will be appended with lat= & lon= attributes
``` ```
3. Create datatable using schema_mysql.sql or schema_sqlite.sql (in the 'sql' directory) 3. Create datatable using schema_mysql.sql or schema_sqlite.sql (in the 'sql' directory)
4. Get [bower](https://bower.io/) and install JavaScript dependencies: 4. Make sure you have installed [bower](https://bower.io/) (via [npm](https://nodejs.org/)):
``` ```
bower install sudo -H npm install -g bower
``` ```
5. Get [Composer](https://getcomposer.org/download/) and install PHP dependencies:
If you don't have access to the root user, you can install it locally:
```
npm install -g --prefix=$HOME bower
export PATH=$HOME/bin:$PATH
```
5. Get [Composer](https://getcomposer.org/download/) and install dependencies (this will call `bower` automatically):
``` ```
./composer.phar install ./composer.phar install
``` ```

View File

@ -3,13 +3,16 @@
"description": "A simple and responsive self-hosted solution to record and map Owntracks http payloads.", "description": "A simple and responsive self-hosted solution to record and map Owntracks http payloads.",
"main": "index.php", "main": "index.php",
"authors": [ "authors": [
"tomyvi <tomyvi@protonmail.com>" "tomyvi <tomyvi@protonmail.com>",
"Markus Birth <markus@birth-online.de>"
], ],
"license": "MIT", "license": "GPL-3.0-or-later",
"keywords": [ "keywords": [
"owntracks" "owntracks",
"latitude",
"geolocation"
], ],
"homepage": "https://github.com/tomyvi/php-owntracks-recorder", "homepage": "https://github.com/mbirth/php-owntracks-recorder",
"private": true, "private": true,
"dependencies": { "dependencies": {
"jQuery": "^3.1.1", "jQuery": "^3.1.1",

View File

@ -9,5 +9,13 @@
}, },
"autoload": { "autoload": {
"classmap": ["lib/"] "classmap": ["lib/"]
},
"scripts": {
"post-install-cmd": [
"bower install"
],
"coffee": [
"bower_components/coffeescript/bin/coffee -c assets/*.coffee"
]
} }
} }