docs(nxdev): cleanup imports (#11563)
This commit is contained in:
parent
8eb2304ecd
commit
d13d5eb3b5
@ -2,6 +2,9 @@ import * as chalk from 'chalk';
|
||||
import { readFileSync } from 'fs';
|
||||
import { readJsonSync } from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
import { register as registerTsConfigPaths } from 'tsconfig-paths';
|
||||
import { dedent } from 'tslint/lib/utils';
|
||||
import { examples } from '../../packages/nx/src/command-line/examples';
|
||||
import {
|
||||
formatDeprecated,
|
||||
generateMarkdownFile,
|
||||
@ -10,9 +13,6 @@ import {
|
||||
parseCommand,
|
||||
ParsedCommand,
|
||||
} from './utils';
|
||||
import { register as registerTsConfigPaths } from 'tsconfig-paths';
|
||||
import { examples } from '../../packages/nx/src/command-line/examples';
|
||||
import { dedent } from 'tslint/lib/utils';
|
||||
|
||||
const importFresh = require('import-fresh');
|
||||
|
||||
|
||||
@ -2,13 +2,12 @@ import * as chalk from 'chalk';
|
||||
import { dedent } from 'tslint/lib/utils';
|
||||
import {
|
||||
generateMarkdownFile,
|
||||
generateOptionsMarkdown,
|
||||
getCommands,
|
||||
parseCommand,
|
||||
ParsedCommand,
|
||||
sortAlphabeticallyFunction,
|
||||
formatDeprecated,
|
||||
generateOptionsMarkdown,
|
||||
} from './utils';
|
||||
|
||||
const importFresh = require('import-fresh');
|
||||
|
||||
export async function generateCNWocumentation(commandsOutputDirectory: string) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as chalk from 'chalk';
|
||||
import { execSync, ExecSyncOptions } from 'child_process';
|
||||
import { join } from 'path';
|
||||
import * as chalk from 'chalk';
|
||||
|
||||
export function generateDevkitDocumentation() {
|
||||
console.log(`\n${chalk.blue('i')} Generating Documentation for Devkit\n`);
|
||||
|
||||
@ -3,9 +3,9 @@
|
||||
* - Error if `map.json` reference a markdown file that does not exist
|
||||
* - Error if a markdown file exists without reference in `map.json`
|
||||
*/
|
||||
import * as chalk from 'chalk';
|
||||
import { readJsonSync } from 'fs-extra';
|
||||
import * as glob from 'glob';
|
||||
import * as chalk from 'chalk';
|
||||
|
||||
console.log(`${chalk.blue('i')} Documentation Map Check`);
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import * as chalk from 'chalk';
|
||||
import * as yargs from 'yargs';
|
||||
import { execSync } from 'child_process';
|
||||
import { watch } from 'chokidar';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators';
|
||||
import { execSync } from 'child_process';
|
||||
import * as yargs from 'yargs';
|
||||
|
||||
/**
|
||||
* Available colours
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Canvas, Image, SKRSContext2D } from '@napi-rs/canvas';
|
||||
import { readJSONSync, ensureDir, readFile, writeFileSync } from 'fs-extra';
|
||||
import { ensureDir, readFile, readJSONSync, writeFileSync } from 'fs-extra';
|
||||
import { resolve } from 'path';
|
||||
|
||||
const mapJson = readJSONSync('./docs/map.json', 'utf8');
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
* Lookup for all the schema.json and add create a list with their path and related package information
|
||||
* */
|
||||
import * as chalk from 'chalk';
|
||||
import { readJsonSync, writeJSONSync } from 'fs-extra';
|
||||
import { join, resolve } from 'path';
|
||||
import {
|
||||
getSchemaFromReference,
|
||||
|
||||
@ -2,6 +2,7 @@ import { outputFileSync, readJsonSync } from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
import { format, resolveConfig } from 'prettier';
|
||||
import { dedent } from 'tslint/lib/utils';
|
||||
|
||||
const stripAnsi = require('strip-ansi');
|
||||
const importFresh = require('import-fresh');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user