-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
📚 Context
Installing @cartesi/cli, either through npm install or brew install download the npm package all install all its dependencies.
The total size of the package installation for cartesi 0.16.1 is currently at ~55Mb.
npx howfat -r table @cartesi/cli
@cartesi/[email protected] (408 deps, 55.15mb, 13669 files, ©Apache-2.0)
╭─────────────────────────────┬──────────────┬──────────┬───────┬───────────┬──────────────┬───────────╮
│ Name │ Dependencies │ Size │ Files │ Native │ License │ Deprec │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @inquirer/[email protected] │ 24 │ 2.8mb │ 399 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @inquirer/[email protected] │ 23 │ 2.79mb │ 391 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @inquirer/[email protected] │ 24 │ 2.81mb │ 399 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @inquirer/[email protected] │ 28 │ 3.02mb │ 462 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @inquirer/[email protected] │ 1 │ 69.21kb │ 21 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @oclif/[email protected] │ 69 │ 3.14mb │ 918 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @oclif/[email protected] │ 70 │ 3.15mb │ 926 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @oclif/[email protected] │ 295 │ 31.58mb │ 5458 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ │ 11.98kb │ 5 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ │ 42.71kb │ 12 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 6 │ 150.13kb │ 59 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 21 │ 616.98kb │ 311 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 3 │ 109.24kb │ 48 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 38 │ 3mb │ 406 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ │ 16kb │ 7 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 8 │ 84.63kb │ 47 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 17 │ 280.12kb │ 125 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 11 │ 181.27kb │ 83 │ │ BSD-2-Clause │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ │ 93.58kb │ 52 │ │ ISC │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ │ 53.08kb │ 5 │ │ MIT │ │
├─────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │ 11 │ 16.68mb │ 6901 │ │ MIT │ │
╰─────────────────────────────┴──────────────┴──────────┴───────┴───────────┴──────────────┴───────────╯
✔️ Solution
oclif alternatives
https://www.npmjs.com/package/commander
https://www.npmjs.com/package/clipanion
https://www.npmjs.com/package/cleye
https://github.com/adbayb/termost (includes enquirer)
Inquirer
Discussion about size here
There are several alternatives.
One that deserves more research is @clack/prompts
Giget
This library is being used in create command to download code from the templates repository.
Need to research why it's a little large, why, and if we need it.
Viem
There is an issue with how it is structured discussed here
📈 Subtasks
- discuss solution for oclif
- discuss solution for inquirer
- discuss solution for giget
- discuss solution for viem
🎯 Definition of Done
- size reduced
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels