Blame SOURCES/build_frontend.sh

28ad2d
#!/bin/bash
28ad2d
28ad2d
# Build the frontend
28ad2d
yarn run build
28ad2d
28ad2d
# Build the bundled plugins
28ad2d
mkdir plugins-bundled/external
28ad2d
yarn run plugins:build-bundled
28ad2d
for plugin in plugins-bundled/internal/input-datasource; do
28ad2d
  mv $plugin $plugin.tmp
28ad2d
  mv $plugin.tmp/dist $plugin
28ad2d
  rm -rf $plugin.tmp
28ad2d
done
28ad2d
rm plugins-bundled/README.md plugins-bundled/.gitignore plugins-bundled/external.json
28ad2d
28ad2d
# Fix permissions (webpack sometimes outputs files with mode = 666 due to reasons unknown (race condition/umask issue afaics))
28ad2d
chmod -R g-w,o-w public/build plugins-bundled