chore(nxdev): scripts use fs-extra and child_process (#8349)
This commit is contained in:
parent
5e86658a52
commit
b6a44bf3f2
@ -1,9 +1,9 @@
|
|||||||
import * as chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
import * as yargs from 'yargs';
|
import * as yargs from 'yargs';
|
||||||
import { watch } from 'chokidar';
|
import { watch } from 'chokidar';
|
||||||
import * as shell from 'shelljs';
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators';
|
import { debounceTime, filter, switchMapTo, tap } from 'rxjs/operators';
|
||||||
|
import { execSync } from 'child_process';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Available colours
|
* Available colours
|
||||||
@ -24,9 +24,8 @@ const argv = yargs
|
|||||||
}).argv;
|
}).argv;
|
||||||
|
|
||||||
function sync(): void {
|
function sync(): void {
|
||||||
return shell.exec(
|
execSync(
|
||||||
'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation',
|
'rsync -avrR --delete ./docs/./ ./nx-dev/nx-dev/public/documentation'
|
||||||
{ sync: true }
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user