Blame SOURCES/build_frontend.sh

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