Skip to content

Commit b0cb92e

Browse files
committed
Put js update checker in separate script
1 parent 2b5519b commit b0cb92e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,5 @@ docker-images:
6868

6969
# Call this target to see which Javascript dependencies are not up to date
7070
check-js-updates:
71-
@if [[ ! -x ./node_modules/.bin/npm-check-updates ]]; then \
72-
npm install npm-check-updates > /dev/null 2>&1; \
73-
fi
74-
@ncu
71+
@./tools/check_js_updates.sh
7572

tools/check_js_updates.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
CHECKER=./node_modules/.bin/ncu
6+
7+
if [[ ! -x ${CHECKER} ]]; then
8+
npm install npm-check-updates > /dev/null 2>&1; \
9+
fi
10+
11+
${CHECKER}
12+

0 commit comments

Comments
 (0)