Init commit
This commit is contained in:
2
packages/tests/fixtures/peertube-plugin-test-unloading/lib.js
vendored
Normal file
2
packages/tests/fixtures/peertube-plugin-test-unloading/lib.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
const d = new Date()
|
||||
exports.value = d.getTime()
|
||||
14
packages/tests/fixtures/peertube-plugin-test-unloading/main.js
vendored
Normal file
14
packages/tests/fixtures/peertube-plugin-test-unloading/main.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
const lib = require('./lib')
|
||||
|
||||
async function register ({ getRouter }) {
|
||||
const router = getRouter()
|
||||
router.get('/get', (req, res) => res.json({ message: lib.value }))
|
||||
}
|
||||
|
||||
async function unregister () {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
register,
|
||||
unregister
|
||||
}
|
||||
20
packages/tests/fixtures/peertube-plugin-test-unloading/package.json
vendored
Normal file
20
packages/tests/fixtures/peertube-plugin-test-unloading/package.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "peertube-plugin-test-unloading",
|
||||
"version": "0.0.1",
|
||||
"description": "Plugin test (modules unloading)",
|
||||
"engine": {
|
||||
"peertube": ">=1.3.0"
|
||||
},
|
||||
"keywords": [
|
||||
"peertube",
|
||||
"plugin"
|
||||
],
|
||||
"homepage": "https://github.com/Chocobozzz/PeerTube",
|
||||
"author": "Chocobozzz",
|
||||
"bugs": "https://github.com/Chocobozzz/PeerTube/issues",
|
||||
"library": "./main.js",
|
||||
"staticDirs": {},
|
||||
"css": [],
|
||||
"clientScripts": [],
|
||||
"translations": {}
|
||||
}
|
||||
Reference in New Issue
Block a user