Comments (4)
Found it. It's not a bug:
First and foremost: The size module uses configs.size.threshold
settings for the folders to inspect. The configs.buildDir
seems to be irrelevant for it.
I had a typo (treshold instead of threshold) in my real life project and no configs.size.threshold
setting at all in my reduced "project" tests and in the examples to reproduce the issue.
That made the size module fall back to the default values (child folders of build
).
So I made the mistake. But it was extremely hard to spot. I needed to debug the code to find that using trial and error.
Makes me wonder if you should add a --debug
flag that prints out things like (using default values for config.size.threshold
) or (you have unrecognized config values in your yml: …
). Not sure though, if this would be worth the effort.
Anyways. At least, the size module should yell when there are configured folders that don't exist.
from gimbal.
Thank you for reporting this @tpraxl. I can see opportunities for improving the docs, too. Contributions welcome (hint, hint 😄)
from gimbal.
FYI, part of #146 was to fix this by changing the default config to use the buildDir
. I'll likely release this in a new minor version instead of just a patch but there are some other things that need to be prepped.
from gimbal.
@mitchellsimoens thanks for the update
from gimbal.
Related Issues (20)
- Size module checks sizes on already matched files
- SQLite and MySQL plugins should be moved to own module
- Move webpack-gimbal-plugin into this repo
- SQLite plugin needs to create directory
- Refactor module default configs merging
- Move Config to gimbal-core
- Plugins are not able to add columns to tables used for markdown/html outputs
- Only outputs Asciiart and "Finished successfully". No report. HOT 18
- Badges
- Use GitHub Actions instead of Circle CI HOT 1
- Prepare for GH marketplace HOT 4
- Support for any URLs HOT 2
- Swap commander out for yargs HOT 1
- v2 Idea Collection HOT 8
- .gimbalrc.yml in root folder being ignored HOT 5
- `audit` command conflicts with yarn|npm audit HOT 1
- Github Comment not appearing HOT 7
- Unable to install gimbal HOT 1
- Not generating lighthouse reports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gimbal.