@@ -222,7 +222,18 @@ PACKAGES_PATTERN ?= package.json
222222PACKAGES_FILTER ?= .*/.*
223223
224224
225- # Common exclude flags (Note: order does matter to some degree):
225+ # Minimum set of exclude flags (Note: order does matter to some degree):
226+ FIND_EXCLUDE_FLAGS ?= \
227+ -not -path "$(ROOT_DIR ) /.git/*" \
228+ -not -path "$(NODE_MODULES ) /*" \
229+ -not -path "$(DOCS_DIR ) /**/$(NODE_MODULES_FOLDER ) /*" \
230+ -not -path "$(BUILD_DIR ) /*" \
231+ -not -path "$(REPORTS_DIR ) /*" \
232+ -not -path "$(TMP_DIR ) /*" \
233+ -not -path "$(ROOT_DIR ) /**/$(BUILD_FOLDER ) /*" \
234+ -not -path "$(ROOT_DIR ) /**/$(TMP_FOLDER ) /*"
235+
236+ # Common exclude flags that most recipes should use (Note: order does matter to some degree):
226237FIND_COMMON_EXCLUDE_FLAGS ?= \
227238 -not -path "$(ROOT_DIR ) /.*" \
228239 -not -path "$(NODE_MODULES ) /*" \
@@ -253,15 +264,7 @@ FIND_EXAMPLES_EXCLUDE_FLAGS ?= \
253264FIND_FILES_EXCLUDE_FLAGS ?= $(FIND_COMMON_EXCLUDE_FLAGS )
254265
255266# Markdown exclude flags:
256- FIND_MARKDOWN_EXCLUDE_FLAGS ?= \
257- -not -path "$(ROOT_DIR ) /.git/*" \
258- -not -path "$(NODE_MODULES ) /*" \
259- -not -path "$(DOCS_DIR ) /**/$(NODE_MODULES_FOLDER ) /*" \
260- -not -path "$(BUILD_DIR ) /*" \
261- -not -path "$(TMP_DIR ) /*" \
262- -not -path "$(REPORTS_DIR ) /*" \
263- -not -path "$(ROOT_DIR ) /**/$(BUILD_FOLDER ) /*" \
264- -not -path "$(ROOT_DIR ) /**/$(TMP_FOLDER ) /*"
267+ FIND_MARKDOWN_EXCLUDE_FLAGS ?= $(FIND_EXCLUDE_FLAGS )
265268
266269# Packages exclude flags:
267270FIND_PACKAGES_EXCLUDE_FLAGS ?= \
0 commit comments