Skip to content

siliconcat/assets-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assets-frontend

Front end assets for the Tax platform

Using service-manager

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

Development

Requirements

Running with Grunt (Development mode)

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

Running Frontend Tests

The grunt Karma test runner is used to run our frontend tests with the command:

$ ./server.sh test

Running the Frontend build

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)

Dependancies

GOV.UK Elements pulled in using the Subtree merge strategy.

$ git submodule init && git submodule update
$ ./update_govuk_elements.sh

Contributing

  1. Fork this repo
  2. Create a feature branch
  3. Bump the package.json version number
  4. Push to your fork
  5. Open a pull request back to this repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • CSS 60.7%
  • JavaScript 39.1%
  • Other 0.2%