Permalink
Browse files

fix: Packages are now excluded from watch-dirs

  • Loading branch information...
MikeMitterer committed Apr 14, 2015
1 parent ada1d08 commit d1412fe34a80d0a8e22c289c13929427dba05119
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/src/Application.dart
  2. +3 −3 lib/src/Generator.dart
@@ -112,7 +112,7 @@ class Application {
_logger.fine('Observing $folder...');

final File srcDir = new File(folder);
srcDir.watch(recursive: true).listen((final FileSystemEvent event) {
srcDir.watch(recursive: true).where((final file) => (!file.path.contains("packages"))).listen((final FileSystemEvent event) {
_logger.fine(event.toString());
new Generator().generate(config);
});
@@ -124,11 +124,11 @@ class Generator {
file.path.endsWith(".scss") ||
file.path.endsWith(".css")

)).toList();
) && !file.path.contains("packages") ).toList();
}

List<File> _listTemplatesIn(final Directory templateDir) {
return templateDir.listSync().where((file) => file is File).toList();
return templateDir.listSync().where((file) => file is File && !file.path.contains("packages")).toList();
}

List<File> _listDataFilesIn(final Directory contentDir) {
@@ -138,7 +138,7 @@ class Generator {
file.path.endsWith('.yaml') ||
file.path.endsWith(".json")

)).toList();
) && !file.path.contains("packages")).toList();
}

bool _isMarkdownSupported(final bool markdownForSite, final Map page_options) {

0 comments on commit d1412fe

Please sign in to comment.