Front end assets for the Tax platform
Unless you're making changes to the frontend assets, you'll most likely be using service-manager to serve assets to your frontends. The ASSETS_FRONTEND service is responsible for serving released artifacts and can be started with:
$ sm --start ASSETS_FRONTEND
The command below will kick off a local node.js server on a predefined port(9032). This serves the assets with sourcemaps via the grunt task runner.
$ ./server.sh dev
The grunt Karma test runner is used to run our frontend tests with the command:
$ ./server.sh test
Compiles the assets for production.
$ ./server.sh build
Compiles the assets for npm.
$ ./server.sh build --release=$VERSION_NUMBER
(Where $VERSION_NUMBER is a string in semver format. i.e. 1.50.0)
GOV.UK Elements pulled in using the Subtree merge strategy.
$ git submodule init && git submodule update
$ ./update_govuk_elements.sh
- Fork this repo
- Create a feature branch
- Bump the
package.json
version number - Push to your fork
- Open a pull request back to this repo