Suggestion: make AVA smaller on disk
See original GitHub issueDescription
I saw that Why AVA says “Minimal and fast”. So I wanted to see how minimal it is. It turns out AVA is 23 MB. Is all of that necessary and truly minimal?
Steps to reproduce
The latest version of AVA reports 23 MB
mkdir ava-example
cd ava-example
npm init -y
npm install --save-dev ava
du -sh
Another minimal test framework, Tape, reports 2.4 MB, about 10x smaller.
mkdir tape-example
cd tape-example
npm init -y
npm install --save-dev tape
npm install --save-dev @types/tape
du -sh
And I made sure to include TypeScript definitions so it was fair comparison.
Environment
Node.js v9.1.0 win32 10.0.16299
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Reduce installed package size · Issue #369 · avajs/ava - GitHub
Latest master (b79fdfd), when installed with npm@3.5.2, is 68 MB. Most of that is Babel stuff. We should look into ways we can...
Read more >Need to Decrese VM OS disk from 127 GB to 32 GB.
Once change the OS disk size to 32 Gb , I need to take that vm as Image and use that customer image...
Read more >Amount of free disk space getting smaller every day
The New 2010 Kaspersky disc can update the AV dat files if you are connected to the internet at the time of scan...
Read more >[Suggestion] Please show size of games before installing and ...
If you want to know how much disk space you have, simply go to This PC on your computer. Some games already show...
Read more >How do I increase the hard disk size of the virtual machine?
15 Answers 15 · Open a terminal window. · Go to the directory with the virtual disk you want to resize. · Create...
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
“Minimal and fast” refers to the API. The main offender in our dependency tree is Babel, and it’s hard to do anything about that. Maybe Babel 7 will improve the situation. We’ll see when it’s out.
We’ve done everything we possibly can to keep the size down. You could help out by making sure none of our dependencies include unnecessary files, and if they do, submit PRs to use the
"files"
property in package.json.chokidar
, used for our watch mode, also takes up 8 MB.Without Babel, Chokidar, and Emcore (For power-assert), AVA would only take up 5 MB, and I’m confident I could reduce it to 4 MB.
But in the end, making a great developer experience is more important than some megabytes. Although I truly wish we could reduce it more.