mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 11:16:18 +08:00
[ci skip] remove old reference generate scripts
This commit is contained in:
@@ -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`);
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user