[ci skip] remove old reference generate scripts

This commit is contained in:
Elliot Hesp
2019-02-13 08:34:59 +00:00
parent 3bf77446ef
commit 62f5e8944c
2 changed files with 15 additions and 26 deletions

View File

@@ -1,21 +0,0 @@
/*
* Copyright (c) 2016-present Invertase Limited & Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this library except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
const { version } = require('./../lerna.json');
// eslint-disable-next-line no-console
console.log(`v${version.substr(0, version.indexOf('.'))}.x.x`);

View File

@@ -15,9 +15,19 @@
*
*/
const typedocRawFile = process.argv[2];
const path = require('path');
const { Application } = require('typedoc');
console.log('------------------- EDIT ME ------------------------');
console.log('path to raw typedoc json ->', typedocRawFile);
console.log('version ->', /(v[0-9]{1,2}\.x\.x)/.exec(typedocRawFile)[0]);
console.log('---------- scripts/docs-parse-typedoc.js ------------');
const output = path.resolve(process.cwd(), 'docs', 'typedoc.json');
const app = new Application();
// https://github.com/TypeStrong/typedoc/issues/956
const { inputFiles } = app.bootstrap({
mode: 'file',
includeDeclarations: true,
excludeExternals: true,
tsconfig: path.resolve(process.cwd(), 'tsconfig.json'),
});
app.generateJson(inputFiles, output);