Blame SOURCES/build_frontend.sh

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