This module contains JavaScript components used by other Stroom modules.
We expect this module to grow until it needs refactoring.
Builds need to happen on the dist branch - this branch has the .gitignore
and the bundle files, i.e. the built code. You'll need to merge
or rebase
from master
first, to make sure the build files are up-to-date. Never merge from dist
to master
or any other branch. The dist
branch can be used as a dependency in package.json - this means we don't need to publish to NPM. This is fine for now because the bundles are very small but at some point this will probably be too hefty and we'll want releases and SNAPSHOTs published to NPM.
To actually do a build:
- Checkout
dist
andmerge
frommaster
. - Use Rollup to build:
rollup -c
. - Add, commit, and push the altered bundle files.