]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
buildsys: add lint incremental mode, use stricter check mode for full build
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 09:10:19 +0000 (10:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 09:10:19 +0000 (10:10 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/control
src/Makefile

index 700ac22118163a92c60614e8cbcd416eae9dac1e..36d800cb4705612c9fafa7826ae755c1da4601b3 100644 (file)
@@ -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
 
index 2844841b0d6fb0bdde12dee2d8a1b8a3f7b89468..324e755aaac39f89db737b77877ccae92d781240 100644 (file)
@@ -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