mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-28 15:57:52 +00:00
buildsys: add lint incremental mode, use stricter check mode for full build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a19ccbb9cd
commit
2622cc7cca
2
debian/control
vendored
2
debian/control
vendored
@ -3,7 +3,7 @@ Section: web
|
||||
Priority: optional
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Build-Depends: debhelper (>= 10~),
|
||||
pve-eslint,
|
||||
pve-eslint (>= 7.12.1-1),
|
||||
Standards-Version: 3.9.8
|
||||
Homepage: http://www.proxmox.com
|
||||
|
||||
|
@ -65,12 +65,16 @@ JSSRC= \
|
||||
all: ${SUBDIRS}
|
||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
|
||||
|
||||
.lint-incremental: ${JSSRC}
|
||||
eslint $?
|
||||
touch "$@"
|
||||
|
||||
.PHONY: lint
|
||||
check: lint
|
||||
lint: ${JSSRC}
|
||||
eslint ${JSSRC}
|
||||
eslint --strict ${JSSRC}
|
||||
|
||||
proxmoxlib.js: ${JSSRC}
|
||||
proxmoxlib.js: .lint-incremental ${JSSRC}
|
||||
# add the version as comment in the file
|
||||
echo "// ${DEB_VERSION_UPSTREAM_REVISION}" > $@.tmp
|
||||
cat ${JSSRC} >> $@.tmp
|
||||
|
Loading…
Reference in New Issue
Block a user