Examples of Usage with Oclif
See original GitHub issueAre there any examples available where Ink is used with oclif?
Oclif has some magic that happens in development where it looks at pre-build files to determine what commands are. And when using with ts, where you need to use the tsx
extension to enable jsx, oclif won’t pick up tsx
files.
Not anything Ink can fix, just curious if there are any examples. I’d rather not use babel if I can help it 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Examples · oclif: The Open CLI Framework
Here are some examples to get an idea of how to use oclif in various setups.
Read more >oclif/example-multi-ts - GitHub
example multi-command CLI built with typescript. Contribute to oclif/example-multi-ts development by creating an account on GitHub.
Read more >How to Build a Simple CLI with oclif - Level Up Coding
We'll use the oclif generate command to create our project, which will scaffold a new CLI project with some sensible defaults. Projects created ......
Read more >Top 5 @oclif/command Code Examples - Snyk
Learn more about how to use @oclif/command, based on @oclif/command code examples created from the most popular ways it is used in public...
Read more >How to Easily Create CLIs Using OCLIF (and How We Did It ...
For simple CLIs, you can use something like TJ Holowaychuk's (of express.js ... Here is an example folder structure for a command called...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Even I’m trying to build a CLI using Oclif and Ink. If I succeed in doing so, I will open-source it for everyone and make sure oclif attributes it for everyone’s reference!
In case anyone stumbles upon this in the future, It looks like oclif was having trouble because it was picking up the project’s
tsconfig.json
and merging it with its own internal one (what??). So renaming the config something else was able to unblock this from working. Hopefully we’ll have a CLI to show as proof soon! 😃 For now, just a WIP PR 💪 https://github.com/apollographql/apollo-tooling/pull/1697