Fix license in bower.json. Automate bower install
with composer.
Clarify in README.
This commit is contained in:
12
README.md
12
README.md
@ -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
|
||||||
```
|
```
|
||||||
|
11
bower.json
11
bower.json
@ -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",
|
||||||
|
@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user