Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 902698e

Browse files
author
Grant Kinney
committed
Installs piwik plugins with composer installers
1 parent 470223d commit 902698e

File tree

4 files changed

+133
-5
lines changed

4 files changed

+133
-5
lines changed

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"dokku": {
4-
"predeploy": "cp config.ini.php vendor/piwik/piwik/config/"
4+
"predeploy": ""
55
}
66
}
77
}

composer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"url": "https://github.com/piwik/plugin-SecurityInfo",
1212
"type": "git",
1313
"reference": "3.0.4"
14+
},
15+
"type": "piwik-plugin",
16+
"require": {
17+
"composer/installers": "~1.0"
1418
}
1519
}
1620
}
@@ -33,6 +37,11 @@
3337
],
3438
"minimum-stability": "stable",
3539
"scripts": {
36-
"post-install-cmd": "cp -R vendor/piwik/plugin-SecurityInfo/ vendor/piwik/piwik/plugins/SecurityInfo"
40+
"post-install-cmd": "cp config.ini.php vendor/piwik/piwik/config/"
41+
},
42+
"extra": {
43+
"installer-paths": {
44+
"vendor/piwik/piwik/plugins/{$name}/": ["type:piwik-plugin"]
45+
}
3746
}
3847
}

composer.lock

Lines changed: 122 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.ini.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@
7272
PluginsInstalled[] = "UserId"
7373
PluginsInstalled[] = "CustomPiwikJs"
7474
PluginsInstalled[] = "SecurityInfo"
75-

0 commit comments

Comments
 (0)