This commit is contained in:
syuilo 2018-04-02 18:59:48 +09:00
parent cb5fe0d48f
commit 5ceb808c6f
4 changed files with 7 additions and 3 deletions

View File

@ -56,6 +56,7 @@
"@types/is-root": "1.0.0", "@types/is-root": "1.0.0",
"@types/is-url": "1.2.28", "@types/is-url": "1.2.28",
"@types/js-yaml": "3.11.1", "@types/js-yaml": "3.11.1",
"@types/kue": "^0.11.8",
"@types/license-checker": "15.0.0", "@types/license-checker": "15.0.0",
"@types/mkdirp": "0.5.2", "@types/mkdirp": "0.5.2",
"@types/mocha": "5.0.0", "@types/mocha": "5.0.0",

View File

@ -151,7 +151,7 @@ gulp.task('doc:api:entities', async () => {
return; return;
} }
files.forEach(file => { 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 = { const vars = {
name: entity.name, name: entity.name,
desc: entity.desc, desc: entity.desc,

View File

@ -15,13 +15,13 @@ export default async function(): Promise<{ [key: string]: any }> {
const endpoints = glob.sync('./src/client/docs/api/endpoints/**/*.yaml'); const endpoints = glob.sync('./src/client/docs/api/endpoints/**/*.yaml');
vars['endpoints'] = endpoints.map(ep => { 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; return _ep.endpoint;
}); });
const entities = glob.sync('./src/client/docs/api/entities/**/*.yaml'); const entities = glob.sync('./src/client/docs/api/entities/**/*.yaml');
vars['entities'] = entities.map(x => { 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; return _x.name;
}); });

View File

@ -30,6 +30,9 @@ const ev = new Xev();
process.title = 'Misskey'; process.title = 'Misskey';
// https://github.com/Automattic/kue/issues/822
require('events').EventEmitter.prototype._maxListeners = 256;
// Start app // Start app
main(); main();