-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (28 loc) · 711 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (28 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: all clean install lint
all: install
clean:
@echo "Cleaning dependencies..."
@for dir in src/*/; do \
if [ -d "$$dir" ]; then \
echo "Cleaning $$dir"; \
rm -rf "$$dir/node_modules" "$$dir/package-lock.json"; \
fi \
done
install: clean
@echo "Installing dependencies..."
@for dir in src/*/; do \
if [ -f "$$dir/package.json" ]; then \
echo "Installing dependencies in $$dir"; \
cd "$$dir" && npm install && cd ../..; \
fi \
done
@echo "Done!"
lint:
@echo "Running lint on all Lambda functions..."
@for dir in src/*/; do \
if [ -f "$$dir/package.json" ]; then \
echo "Linting $$dir"; \
cd "$$dir" && npm run lint && cd ../..; \
fi \
done
@echo "Lint complete!"