Added a simple test plugin that doesn't do much
This commit is contained in:
parent
168f481980
commit
30b018833c
|
@ -0,0 +1,7 @@
|
||||||
|
.git*
|
||||||
|
docs/
|
||||||
|
examples/
|
||||||
|
support/
|
||||||
|
test/
|
||||||
|
testing.js
|
||||||
|
.DS_Store
|
|
@ -0,0 +1,13 @@
|
||||||
|
exports.somehook = function (hook_name, args, cb) {
|
||||||
|
return cb(["otherpart:somehook was here"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.morehook = function (hook_name, args, cb) {
|
||||||
|
return cb(["otherpart:morehook was here"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.expressServer = function (hook_name, args, cb) {
|
||||||
|
args.app.get('/otherpart', function(req, res) {
|
||||||
|
res.send("<em>Abra cadabra</em>");
|
||||||
|
});
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"name": "pluginomatic_fintest",
|
||||||
|
"description": "A test plugin",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>",
|
||||||
|
"contributors": [],
|
||||||
|
"dependencies": {},
|
||||||
|
"engines": { "node": ">= 0.4.1 < 0.7.0" }
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
exports.somehook = function (hook_name, args, cb) {
|
||||||
|
return cb(["partlast:somehook was here"]);
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"name": "somepart",
|
||||||
|
"pre": [],
|
||||||
|
"post": ["pluginomatic_onemoreplugin/partone"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "partlast",
|
||||||
|
"pre": ["pluginomatic_fintest/otherpart"],
|
||||||
|
"post": [],
|
||||||
|
"hooks": {
|
||||||
|
"somehookname": "pluginomatic_fintest/partlast:somehook"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "partfirst",
|
||||||
|
"pre": [],
|
||||||
|
"post": ["pluginomatic_onemoreplugin/somepart"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "otherpart",
|
||||||
|
"pre": ["pluginomatic_fintest/somepart", "pluginomatic_otherplugin/main"],
|
||||||
|
"post": [],
|
||||||
|
"hooks": {
|
||||||
|
"somehookname": "pluginomatic_fintest/otherpart:somehook",
|
||||||
|
"morehook": "pluginomatic_fintest/otherpart:morehook",
|
||||||
|
"expressServer": "pluginomatic_fintest/otherpart:expressServer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue