Skip to content

Commit

Permalink
signalk-server: remove docs and examples
Browse files Browse the repository at this point in the history
Since nodejs blindly installs everything it takes a lot of space and it
no longer fits in the large image. Remove examples and docs to shrink
the size a bit.
  • Loading branch information
jhofstee committed Feb 13, 2025
1 parent e89dfe3 commit d7f4557
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ do_install:append() {
rm -rf ${D}${nonarch_libdir}/node_modules/${PN}/node_modules/@serialport/bindings-cpp/prebuilds/win32-ia32
rm -rf ${D}${nonarch_libdir}/node_modules/${PN}/node_modules/@serialport/bindings-cpp/prebuilds/win32-x64

# this folder keeps the default settings. start-signalk.sh copies them
# this directory keeps the default settings. start-signalk.sh copies them
# to the data partition on first boot.
install -d ${DEFAULTS}
install -m 0644 ${WORKDIR}/defaults.json ${DEFAULTS}
Expand All @@ -72,4 +72,8 @@ do_install:append() {

rm -rf ${D}${nonarch_libdir}/node_modules/${PN}/node_modules/put/test
rm -rf ${D}/usr/node_modules

find "${D}${nonarch_libdir}" -depth -type d -name "docs" -exec rm -rf {} \;
find "${D}${nonarch_libdir}" -depth -type d -name "examples" -exec rm -rf {} \;
find "${D}${nonarch_libdir}" -depth -type d -name "samples" -exec rm -rf {} \;
}

0 comments on commit d7f4557

Please sign in to comment.