Skip to content

Commit

Permalink
Fix WARN [watcher]: Pattern "..../patterns/foo.js" does not match any…
Browse files Browse the repository at this point in the history
… file, by excluding all requirements ending with '-url', since they point to a folder and not to a .js file. The folder contents are already included by 'patterns/**/*'.
  • Loading branch information
sunew committed Sep 19, 2018
1 parent ea815d9 commit 7c9dffc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mockup/js/grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@
var path;
for (var key in this.requirejsOptions.paths) {
path = this.requirejsOptions.paths[key];
if (path.indexOf('.md') !== path.length - 3) {
// Exclude .md files.
// Exclude all requirements ending with '-url', since they point
// to a folder and not to a .js file, to avoid warnings:
// WARN [watcher]: Pattern "..../patterns/filemanager.js" does not match any file.
// - we include 'patterns/**/*' below.
if (path.indexOf('.md') !== path.length - 3 && key.indexOf('-url') === -1) {
this.files.push({ pattern: path + '.js', included: false });
}
if (key.indexOf('mockup-patterns-') === 0) {
Expand Down

0 comments on commit 7c9dffc

Please sign in to comment.