graphdb-workbench

Bundling

How the packages are built and assembled by webpack into the single dist/ folder that GraphDB serves.

Contents

Build steps

npm run build (root) runs in two phases:

  1. scripts/build.sh builds each package with its own toolchain: packages/api, packages/shared-components (Stencil) and packages/workbench (Angular). Each writes to its own dist/.
  2. postbuild runs webpack --config=webpack.config.prod.js, which bundles root-config and legacy-workbench and assembles everything into the root dist/.

npm run build-dev does the same with webpack.config.dev.js.

Root webpack build

The configuration is split into webpack.config.common.js (shared) and webpack.config.prod.js / webpack.config.dev.js, merged with webpack-merge on top of webpack-config-single-spa.

If a new top-level folder is published in dist/, it must also be allowed in the backend’s Spring Security configuration (see CI).

Production vs. development


See also: Developers Guide