Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jul 21, 2023
1 parent 2492587 commit a13434b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Install with [npm](https://www.npmjs.com/):
# change rootDir to rootDirBaseURL to output
$ express-router-dependency-graph "src/**/*.ts" --rootBaseUrl="https://github.com/owner/repo/tree/master/src"
# include node_modules
# node_modules, dist, build, test, __tests__ are excluded by default
$ express-router-dependency-graph "src/**/*.ts" --noDefaultExcludes

## Example
Expand Down
18 changes: 10 additions & 8 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import meow from "meow";
import { analyzeDependencies } from "./index.js";
import { globby } from "globby";

const defaultExcludes = [
"!**/node_modules/**",
"!**/dist/**",
"!**/build/**",
"!**/coverage/**",
"!**/test/**",
"!**/__tests__/**"
];
export const cli = meow(
`
Usage
Expand All @@ -22,6 +30,7 @@ export const cli = meow(
# change rootDir to rootDirBaseURL to output
$ express-router-dependency-graph "src/**/*.ts" --rootBaseUrl="https://github.com/owner/repo/tree/master/src"
# include node_modules
# ${JSON.stringify(defaultExcludes)} is excluded by default
$ express-router-dependency-graph "src/**/*.ts" --no-default-excludes
`,
{
Expand All @@ -42,14 +51,7 @@ export const cli = meow(
excludes: {
type: "string",
isMultiple: true,
default: [
"!**/node_modules/**",
"!**/dist/**",
"!**/build/**",
"!**/coverage/**",
"!**/test/**",
"!**/__tests__/**"
]
default: defaultExcludes
},
format: {
type: "string",
Expand Down

0 comments on commit a13434b

Please sign in to comment.