mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-02 23:17:58 +00:00
ship a minified version of the widget-toolkit JS library
so use sites can switch between literal and minified version like we do already for ExtJS via the debug flag. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0676eb3738
commit
e09af56554
1
debian/control
vendored
1
debian/control
vendored
@ -6,6 +6,7 @@ Build-Depends: debhelper-compat (= 13),
|
|||||||
libjs-marked,
|
libjs-marked,
|
||||||
pve-eslint (>= 7.28.0),
|
pve-eslint (>= 7.28.0),
|
||||||
sassc,
|
sassc,
|
||||||
|
uglifyjs,
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://www.proxmox.com
|
Homepage: https://www.proxmox.com
|
||||||
|
|
||||||
|
12
src/Makefile
12
src/Makefile
@ -4,7 +4,7 @@ SUBDIRS= css images proxmox-dark
|
|||||||
|
|
||||||
# bundle it for now from the libjs-marked debian package to avoid touching our proxies file mapper,
|
# bundle it for now from the libjs-marked debian package to avoid touching our proxies file mapper,
|
||||||
# we could also just ship a link to the packages file and load from same path as the widget-toolkit
|
# we could also just ship a link to the packages file and load from same path as the widget-toolkit
|
||||||
MARKEDJS=/usr/share/javascript/marked/marked.min.js
|
MARKEDJS=/usr/share/javascript/marked/marked.js
|
||||||
|
|
||||||
JSSRC= \
|
JSSRC= \
|
||||||
Utils.js \
|
Utils.js \
|
||||||
@ -128,11 +128,15 @@ proxmoxlib.js: .lint-incremental $(JSSRC)
|
|||||||
cat $(JSSRC) $(MARKEDJS) >> $@.tmp
|
cat $(JSSRC) $(MARKEDJS) >> $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
install: proxmoxlib.js
|
proxmoxlib.min.js: proxmoxlib.js
|
||||||
|
uglifyjs $< -c -m -o $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
install: proxmoxlib.js proxmoxlib.min.js
|
||||||
install -d -m 755 $(WWWBASEDIR)
|
install -d -m 755 $(WWWBASEDIR)
|
||||||
install -m 0644 proxmoxlib.js $(WWWBASEDIR)
|
install -m 0644 proxmoxlib.js proxmoxlib.min.js $(WWWBASEDIR)
|
||||||
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
|
set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f proxmoxlib.js proxmoxlib.js.tmp .lint-incremental
|
rm -f proxmoxlib.js* proxmoxlib.min.js* .lint-incremental
|
||||||
|
Loading…
Reference in New Issue
Block a user