Coder Social home page Coder Social logo

assets-frontend's Introduction

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

Syntax

"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...

License

This code is open source software licensed under the Apache 2.0 License.

assets-frontend's People

Contributors

alexanderjamesking avatar anthonymunene avatar avilaplana avatar bejulshah avatar benaveryee avatar brightpixels avatar chaphilippe avatar duncancrawford avatar erasmos avatar richiv avatar spacebaboon avatar stingrayfunk avatar stmcluck avatar timsb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.