mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-28 12:53:09 +02:00
✌️
This commit is contained in:
parent
cb5fe0d48f
commit
5ceb808c6f
4 changed files with 7 additions and 3 deletions
|
@ -56,6 +56,7 @@
|
|||
"@types/is-root": "1.0.0",
|
||||
"@types/is-url": "1.2.28",
|
||||
"@types/js-yaml": "3.11.1",
|
||||
"@types/kue": "^0.11.8",
|
||||
"@types/license-checker": "15.0.0",
|
||||
"@types/mkdirp": "0.5.2",
|
||||
"@types/mocha": "5.0.0",
|
||||
|
|
|
@ -151,7 +151,7 @@ gulp.task('doc:api:entities', async () => {
|
|||
return;
|
||||
}
|
||||
files.forEach(file => {
|
||||
const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8'));
|
||||
const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8')) as any;
|
||||
const vars = {
|
||||
name: entity.name,
|
||||
desc: entity.desc,
|
||||
|
|
|
@ -15,13 +15,13 @@ export default async function(): Promise<{ [key: string]: any }> {
|
|||
|
||||
const endpoints = glob.sync('./src/client/docs/api/endpoints/**/*.yaml');
|
||||
vars['endpoints'] = endpoints.map(ep => {
|
||||
const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8'));
|
||||
const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8')) as any;
|
||||
return _ep.endpoint;
|
||||
});
|
||||
|
||||
const entities = glob.sync('./src/client/docs/api/entities/**/*.yaml');
|
||||
vars['entities'] = entities.map(x => {
|
||||
const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8'));
|
||||
const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8')) as any;
|
||||
return _x.name;
|
||||
});
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@ const ev = new Xev();
|
|||
|
||||
process.title = 'Misskey';
|
||||
|
||||
// https://github.com/Automattic/kue/issues/822
|
||||
require('events').EventEmitter.prototype._maxListeners = 256;
|
||||
|
||||
// Start app
|
||||
main();
|
||||
|
||||
|
|
Loading…
Reference in a new issue