File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ This is a TypeScript CLI tool that generates directory tree structures with vari
99## Commands
1010
1111### Development Commands
12+
1213- ` npm run dev ` - Run CLI tool in development mode with ts-node
1314- ` npm run build ` - Compile TypeScript to JavaScript (outputs to dist/)
1415- ` npm run test ` - Run Jest tests with coverage
@@ -17,6 +18,7 @@ This is a TypeScript CLI tool that generates directory tree structures with vari
1718- ` npm run clean ` - Remove dist/ directory
1819
1920### CLI Usage (After Build)
21+
2022- ` tree-cli [path] ` - Basic tree generation
2123- ` tree-cli quick [path] ` - Quick view excluding common build dirs
2224- ` tree-cli dev [path] ` - Development view excluding more directories
@@ -38,6 +40,7 @@ This is a TypeScript CLI tool that generates directory tree structures with vari
3840- ** Strategy Pattern** : Different formatters implement common interface for output generation
3941
4042### File Structure
43+
4144- Source code in ` src/ `
4245- Tests in ` src/__tests__/ `
4346- Built output in ` dist/ ` (created by TypeScript compiler)
@@ -50,5 +53,6 @@ Uses Jest with TypeScript support via ts-jest. Test files use `.test.ts` extensi
5053## Publishing
5154
5255The package uses npm scripts for publishing workflow:
56+
5357- ` prepublishOnly ` runs clean, build, and test before publishing
54- - Package exports both CLI binary (` dist/cli.js ` ) and library (` dist/index.js ` )
58+ - Package exports both CLI binary (` dist/cli.js ` ) and library (` dist/index.js ` )
Original file line number Diff line number Diff line change @@ -266,4 +266,4 @@ This project uses GitHub Actions for automated publishing:
266266
267267## License
268268
269- MIT
269+ MIT
Original file line number Diff line number Diff line change @@ -264,4 +264,4 @@ npm run format:check
264264
265265## 许可证
266266
267- MIT
267+ MIT
You can’t perform that action at this time.
0 commit comments