File tree Expand file tree Collapse file tree
packages/thruk-consol-theme/consol-theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ BUILD_PACKAGES += ncurses-devel
3737BUILD_PACKAGES += net-snmp
3838BUILD_PACKAGES += net-snmp-devel
3939BUILD_PACKAGES += net-snmp-utils
40- BUILD_PACKAGES += npm # thruk theme
4140BUILD_PACKAGES += openssl-devel
4241BUILD_PACKAGES += pam-devel
4342BUILD_PACKAGES += pango-devel
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ BUILD_PACKAGES += ncurses-devel
4141BUILD_PACKAGES += net-snmp
4242BUILD_PACKAGES += net-snmp-devel
4343BUILD_PACKAGES += net-snmp-utils
44- BUILD_PACKAGES += npm # thruk theme
4544BUILD_PACKAGES += openssl-devel
4645BUILD_PACKAGES += pam-devel
4746BUILD_PACKAGES += pango-devel
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ BUILD_PACKAGES += libsqlite3-dev # gearmand
4444BUILD_PACKAGES += libssl-dev
4545BUILD_PACKAGES += libsystemd-dev # grafana-loki
4646BUILD_PACKAGES += libxml2-dev
47- BUILD_PACKAGES += npm # thruk theme
4847BUILD_PACKAGES += patch
4948BUILD_PACKAGES += python3-dev
5049BUILD_PACKAGES += python3-setuptools
@@ -99,6 +98,7 @@ OS_PACKAGES += libsqlite3-0
9998OS_PACKAGES += libuuid1
10099OS_PACKAGES += libxcomposite1 # chrome
101100OS_PACKAGES += libxdamage1 # chrome
101+ OS_PACKAGES += libxfixes3 # npm
102102OS_PACKAGES += libxkbcommon0 # chrome
103103OS_PACKAGES += libxrandr2 # chrome
104104OS_PACKAGES += mariadb-server|mysql-server|virtual-mysql-server
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ BUILD_PACKAGES += libsqlite3-dev # gearmand
4444BUILD_PACKAGES += libssl-dev
4545BUILD_PACKAGES += libsystemd-dev # grafana-loki
4646BUILD_PACKAGES += libxml2-dev
47- BUILD_PACKAGES += npm # thruk theme
4847BUILD_PACKAGES += patch
4948BUILD_PACKAGES += python2-dev
5049BUILD_PACKAGES += python3-dev
@@ -101,6 +100,7 @@ OS_PACKAGES += libsqlite3-0
101100OS_PACKAGES += libuuid1
102101OS_PACKAGES += libxcomposite1 # chrome
103102OS_PACKAGES += libxdamage1 # chrome
103+ OS_PACKAGES += libxfixes3 # npm
104104OS_PACKAGES += libxkbcommon0 # chrome
105105OS_PACKAGES += libxrandr2 # chrome
106106OS_PACKAGES += mariadb-server|mysql-server|virtual-mysql-server
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ BUILD_PACKAGES += make
5050BUILD_PACKAGES += mysql
5151BUILD_PACKAGES += net-snmp
5252BUILD_PACKAGES += net-snmp-devel
53- BUILD_PACKAGES += npm # thruk theme
5453BUILD_PACKAGES += openldap2-devel
5554BUILD_PACKAGES += pango-devel
5655BUILD_PACKAGES += patch
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ BUILD_PACKAGES += ncurses-devel
4141BUILD_PACKAGES += net-snmp
4242BUILD_PACKAGES += net-snmp-devel
4343BUILD_PACKAGES += net-snmp-utils
44- BUILD_PACKAGES += npm # thruk theme
4544BUILD_PACKAGES += openssl-devel
4645BUILD_PACKAGES += pam-devel
4746BUILD_PACKAGES += pango-devel
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ BUILD_PACKAGES += libsqlite3-dev # gearmand
4444BUILD_PACKAGES += libssl-dev
4545BUILD_PACKAGES += libsystemd-dev # grafana-loki
4646BUILD_PACKAGES += libxml2-dev
47- BUILD_PACKAGES += npm # thruk theme
4847BUILD_PACKAGES += patch
4948BUILD_PACKAGES += python3-dev
5049BUILD_PACKAGES += python3-setuptools
@@ -101,6 +100,7 @@ OS_PACKAGES += libsqlite3-0
101100OS_PACKAGES += libuuid1
102101OS_PACKAGES += libxcomposite1 # chrome
103102OS_PACKAGES += libxdamage1 # chrome
103+ OS_PACKAGES += libxfixes3 # npm
104104OS_PACKAGES += libxkbcommon0 # chrome
105105OS_PACKAGES += libxml2
106106OS_PACKAGES += libxrandr2 # chrome
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ BUILD_PACKAGES += libsqlite3-dev # gearmand
4444BUILD_PACKAGES += libssl-dev
4545BUILD_PACKAGES += libsystemd-dev # grafana-loki
4646BUILD_PACKAGES += libxml2-dev
47- BUILD_PACKAGES += npm # thruk theme
4847BUILD_PACKAGES += patch
4948BUILD_PACKAGES += python3-dev
5049BUILD_PACKAGES += python3-setuptools
@@ -99,6 +98,7 @@ OS_PACKAGES += libsqlite3-0
9998OS_PACKAGES += libuuid1
10099OS_PACKAGES += libxcomposite1 # chrome
101100OS_PACKAGES += libxdamage1 # chrome
101+ OS_PACKAGES += libxfixes3 # npm
102102OS_PACKAGES += libxkbcommon0 # chrome
103103OS_PACKAGES += libxml2
104104OS_PACKAGES += libxrandr2 # chrome
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ SHELL=/bin/bash
22NAME =Consol
33N_PREFIX =$(shell pwd) /node_modules
44NODEVERSION =16
5+ export PATH := $(shell ls -d1 ../../node/node-* /bin) :$(PATH )
56
67.PHONY : Thruk
78
@@ -11,50 +12,37 @@ stylesheets/$(NAME).css: Thruk node_modules src/$(NAME).css
1112 mkdir -p stylesheets
1213 NODE_ENV=production \
1314 N_PREFIX=$(N_PREFIX ) \
14- ./node_modules/.bin/n exec $(NODEVERSION ) \
1515 npx tailwindcss -o stylesheets/${NAME} .css --input ./src/${NAME} .css --postcss ./postcss.config.js --minify
1616 touch stylesheets/${NAME} .css
1717
1818dev : Thruk node_modules
1919 mkdir -p stylesheets
2020 NODE_ENV=dev \
2121 N_PREFIX=$(N_PREFIX ) \
22- ./node_modules/.bin/n exec $(NODEVERSION ) \
2322 npx tailwindcss -o stylesheets/${NAME} .css --input ./src/${NAME} .css --postcss ./postcss.config.js
2423
2524watch : Thruk node_modules
2625 mkdir -p stylesheets
2726 NODE_ENV=dev \
2827 N_PREFIX=$(N_PREFIX ) \
29- ./node_modules/.bin/n exec $(NODEVERSION ) \
3028 npx tailwindcss -o stylesheets/${NAME} .css --input ./src/${NAME} .css --postcss ./postcss.config.js --watch
3129
3230Thruk :
3331 test -e Thruk || git clone https://github.com/sni/Thruk.git
3432 test -h Thruk || ( cd Thruk && git pull )
3533 ln -fns $$(realpath Thruk/themes/base.css) base.css
3634
37- node : node_modules/.bin/n
38-
39- node_modules/.bin/n :
40- npm install n
41- N_PREFIX=$(N_PREFIX ) \
42- ./node_modules/.bin/n $(NODEVERSION )
43-
44- node_modules : node
35+ node_modules :
4536 N_PREFIX=$(N_PREFIX ) \
46- ./node_modules/.bin/n exec $( NODEVERSION ) npm i -D \
37+ npm i -D \
4738 tailwindcss@latest \
4839 postcss@latest \
4940 autoprefixer@latest \
5041 postcss-import@latest \
5142 @tailwindcss/forms@latest \
52- # sometimes .bin dissapears after installing modules
53- test -e ./node_modules/.bin/n || $(MAKE ) node
5443
5544clean :
5645 rm -rf \
57- node \
5846 node_modules \
5947 package.json \
6048 package-lock.json \
You can’t perform that action at this time.
0 commit comments