* feat(core): add nx graph as alias of nx dep-graph * docs(core): add note about old dep-graph syntax * cleanup(core): formatting * feat(core): formatting * feat(core): formatting Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
13 lines
286 B
TypeScript
13 lines
286 B
TypeScript
import { copyFileSync } from 'fs';
|
|
import { argv } from 'yargs';
|
|
|
|
type Mode = 'dev' | 'watch';
|
|
const mode = argv._[0];
|
|
|
|
console.log(`Setting up graph for ${mode}`);
|
|
|
|
copyFileSync(
|
|
`dep-graph/client/src/assets/environment.${mode}.js`,
|
|
`dep-graph/client/src/assets/environment.js`
|
|
);
|