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
"All code in any code-base should look like a single person typed it, no matter how many people contributed." - Rick Waldron
- Use Editorconfig when possible.
- Two space indents. Don't use tabs anywhere.
- No trailing whitespace, except in markdown files where a linebreak must be forced.
- Files must end in a new line
More to come in the form of a wiki page...
This code is open source software licensed under the Apache 2.0 License.