Add ability to only lint files.
See original GitHub issueRelated to #988 in some way
Use-case: I just want to lint my specs with the watcher, but without the extra compile.
Actually, files are linted only if they are watched (or at least it seems so, let me know if I’m wrong).
Problem is that watching specs without putting them in a joinTo cause warns like:
warn: test/foo.js compiled, but not written. Check your javascripts.joinTo config
So I’ve tried to set my specs in conventions.ignored
, but in this case, they’re not linted anymore, and moreover, this cause an extra compile which is not needed.
I’m not sure of what could be a good API to say: “Watch this files, if they change, just run the linters but don’t do anything else”. Maybe something simple like conventions.linted
linted
key: anymatch set. Default value:/(^test)[\\/]/
. If test gives true, files will be linted but no compile step.
Maybe I miss something but having tested different setup, I couldn’t find a way to achieve this yet. Thoughts?
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
You can specify a separate
joinTo
entry forenvironment: production
— so that the test.js wouldn’t be built in production.Thank you so much for both Brunch, and the quick response. Just delving deeper into configuration, and didn’t think of overrides.