mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 19:59:14 -04:00
The big rename of pluginbs from pluginomatic to ep
This commit is contained in:
parent
758666c3e1
commit
da52353ba3
16 changed files with 48 additions and 48 deletions
7
available_plugins/ep_fintest/.npmignore
Normal file
7
available_plugins/ep_fintest/.npmignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
.git*
|
||||
docs/
|
||||
examples/
|
||||
support/
|
||||
test/
|
||||
testing.js
|
||||
.DS_Store
|
32
available_plugins/ep_fintest/ep.json
Normal file
32
available_plugins/ep_fintest/ep.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"parts": [
|
||||
{
|
||||
"name": "somepart",
|
||||
"pre": [],
|
||||
"post": ["ep_onemoreplugin/partone"]
|
||||
},
|
||||
{
|
||||
"name": "partlast",
|
||||
"pre": ["ep_fintest/otherpart"],
|
||||
"post": [],
|
||||
"hooks": {
|
||||
"somehookname": "ep_fintest/partlast:somehook"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "partfirst",
|
||||
"pre": [],
|
||||
"post": ["ep_onemoreplugin/somepart"]
|
||||
},
|
||||
{
|
||||
"name": "otherpart",
|
||||
"pre": ["ep_fintest/somepart", "ep_otherplugin/main"],
|
||||
"post": [],
|
||||
"hooks": {
|
||||
"somehookname": "ep_fintest/otherpart:somehook",
|
||||
"morehook": "ep_fintest/otherpart:morehook",
|
||||
"expressCreateServer": "ep_fintest/otherpart:expressServer"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
available_plugins/ep_fintest/otherpart.js
Normal file
16
available_plugins/ep_fintest/otherpart.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
test = ep_client_require("/plugins/ep_fintest/test.js");
|
||||
console.log("FOOO:", test.foo);
|
||||
|
||||
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>");
|
||||
});
|
||||
}
|
9
available_plugins/ep_fintest/package.json
Normal file
9
available_plugins/ep_fintest/package.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "ep_fintest",
|
||||
"description": "A test plugin",
|
||||
"version": "0.0.1",
|
||||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>",
|
||||
"contributors": [],
|
||||
"dependencies": {"etherpad-lite": "1"},
|
||||
"engines": { "node": ">= 0.4.1 < 0.7.0" }
|
||||
}
|
3
available_plugins/ep_fintest/partlast.js
Normal file
3
available_plugins/ep_fintest/partlast.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
exports.somehook = function (hook_name, args, cb) {
|
||||
return cb(["partlast:somehook was here"]);
|
||||
}
|
1
available_plugins/ep_fintest/static/js/test.js
Normal file
1
available_plugins/ep_fintest/static/js/test.js
Normal file
|
@ -0,0 +1 @@
|
|||
exports.foo = 42;
|
1
available_plugins/ep_fintest/static/test.html
Normal file
1
available_plugins/ep_fintest/static/test.html
Normal file
|
@ -0,0 +1 @@
|
|||
<em>Test bla bla</em>
|
Loading…
Add table
Add a link
Reference in a new issue