Due to issues with merging etc, we have lots of project files that don’t contain all source code files that are within their folders.
Before I write a little tool, that
After reading there is no generic solution for this here on Stack Overflow, I created a NodeJS module this weekend to solve this problem:
https://www.npmjs.com/package/check-vs-includes
This is pretty generic, so I hope this helps others as well. It saves me a manual check of over 70 folders (500+ files) on every deploy. If I have some time I hope to improve some things, like documentation... But let me give a simple example right now.
Simple example
npm install check-vs-includes
For instance add a gulpfile.js
to your project:
gulp.task('checkVSIncludes', function(cb) {
checkVSIncludes(['/Content/**/*.less', '/app/**/*.js']);
});
This example checks that all .js
and .less
files in the specified folders are included in your project file. Notice that you can use glob's.
gulp checkVSIncludes
Check the source code for more options, it's all on GitHub (contributions are welcome ;)).