Skip to content

Commit 58dcab2

Browse files
committed
Add recipe to list browser compatible packages
1 parent 0dc2107 commit 58dcab2

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

tools/make/lib/ls/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ include $(TOOLS_MAKE_LIB_DIR)/ls/python.mk
226226
include $(TOOLS_MAKE_LIB_DIR)/ls/r.mk
227227
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs.mk
228228
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs_addons.mk
229+
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs_browser_compatible.mk
229230
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs_clis.mk
230231
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs_names.mk
231232
include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs_namespaces.mk
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# VARIABLES #
3+
4+
# Define the root directory from which to search for packages:
5+
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6+
7+
# Define the path of the executable:
8+
LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES ?= $(TOOLS_PKGS_DIR)/pkgs/browser-compatible/bin/cli
9+
10+
# Define the command flags:
11+
LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES_FLAGS ?=
12+
13+
14+
# TARGETS #
15+
16+
# List browser compatible package names.
17+
#
18+
# This target prints a list of all packages which are compatible with browser environments.
19+
20+
list-pkgs-browser-compatible: $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES) $(NODE_MODULES)
21+
$(QUIET) $(NODE) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES_FLAGS) $(PACKAGES_DIR)
22+
23+
.PHONY: list-pkgs-browser-compatible

0 commit comments

Comments
 (0)