Skip to content

Commit 0fc9bd7

Browse files
committed
refactor(asset_copy): Be quieter about what files are watched
1 parent bd485d2 commit 0fc9bd7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/lib/asset_copy.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const asset_copier = () => {
6767
_.each(dirs, (dir, key) => {
6868
//if we want to watch files, do so, otherwise just copy each file
6969
if (options.watch) {
70-
logger.info(
70+
logger.debug(
7171
`Pattern Lab is watching ${path.resolve(
7272
basePath,
7373
dir.source
@@ -145,7 +145,7 @@ const asset_copier = () => {
145145
);
146146

147147
_.each(globalPaths, globalPath => {
148-
logger.info(`Pattern Lab is watching ${globalPath} for changes`);
148+
logger.debug(`Pattern Lab is watching ${globalPath} for changes`);
149149

150150
if (patternlab.watchers[globalPath]) {
151151
patternlab.watchers[globalPath].close();
@@ -193,7 +193,7 @@ const asset_copier = () => {
193193
)
194194
);
195195
_.each(patternWatches, patternWatchPath => {
196-
logger.info(`Pattern Lab is watching ${patternWatchPath} for changes`);
196+
logger.debug(`Pattern Lab is watching ${patternWatchPath} for changes`);
197197

198198
const patternWatcher = chokidar.watch(path.resolve(patternWatchPath), {
199199
ignored: /(^|[\/\\])\../,
@@ -223,6 +223,11 @@ const asset_copier = () => {
223223
});
224224
});
225225
}
226+
logger.info(
227+
`Pattern Lab is watching for changes to files under ${
228+
assetDirectories.source.root
229+
}`
230+
);
226231
};
227232

228233
return {

0 commit comments

Comments
 (0)