-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Revise TypeScript CLI help documentation #44074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks great! I am trying to implement the beta version.
But, the column of the console might be not wide enough
Maybe we could judge the width of console, if its width is enough(maybe enough for 20 chars of description?), we output pretty like this , otherwise just one line like old style.
|
Dang, sorry about the Discord china block :-/ 1 - WrappingI agree. For example --composite
Enable constraints that allow a TypeScript project to be used with project references.
--disableSourceOfProjectReferenceRedirect
Disable preferring source files instead of declaration files when referencing composite projects.
--disableSolutionSearching
Opt a project out of multi-project reference checking when editing.
--tsBuildInfoFile
Specify the folder for .tsbuildinfo incremental compilation files.
--disableReferencedProjectLoad
Reduce the number of projects loaded automatically by TypeScript. Think of it as switching from 2 column to 1 column like websites do. Maybe that could work when the terminal is smaller than 60 chars? 2 - SystemYeah, I think so, and it can be grabbed in node from the ❯ node
Welcome to Node.js v14.5.0.
Type ".help" for more information.
> process.stdout.columns
139
// I re-sized the window
> process.stdout.columns
88
> 3 - An updated imageI updated the design to be more consistent with what I said I the sidebar comments, as I got a few alignment issues in the original post |
Why not use vpn? @ShuiRuTian |
@Zzzen Another sad story :( The experience of finding a manual to use VPN sucks, and I do not want to suck the taste again. @orta In current draft PR, it is "any of: boolean" and "any of: string" |
👌 Having been using cordcloud for almost two years. I can't imagine what a day would be without access to google/twitter/reddit. |
⭐ Suggestion
We'd like to give the TypeScript CLI's help a fresh lick of paint! The
tsc --help
is often the second command someone would run aftertsc
to understand what is going on, and we're like the output to focus on improving your knowledge of how to use the CLI.There are two modes for
--help
, the default and--help --all
.I'd like to use a mix of color, weighting, spacing and some more examples to make the CLI fit in with modern CLI projects and try to be a bit closer to the CLI HIG. You can clone a prototype of the CLI at https://github.com/orta/tsc-cli-example
📃 What it looks like:
💻 Details
The default

--help
usage sectionThe common compiler section. The defaults can be found here

Using

--help --all
where it uses the categories for compiler flagsInterested in building this?
I'd expect the majority of the work to be in
compilerParser.ts
andexecuteCommandLine.ts
- with some of the new copy being added into thediagnosticMessages.json
.I'm available in the TypeScript Community discord to chat design and edge cases!
Misc
Current 4.2.4 CLI output for tsc --help.
Current 4.2.4 CLI output for tsc --help --all.
The text was updated successfully, but these errors were encountered: