GithubHelp home page GithubHelp logo

simonwhatley / govuk-design-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphagov/govuk-design-system

0.0 0.0 0.0 10.48 MB

One place for service teams to find styles, components and patterns for designing government services.

Home Page: https://www.gov.uk/design-system

License: MIT License

HTML 0.09% JavaScript 13.49% SCSS 4.63% Nunjucks 81.79%

govuk-design-system's Introduction

GOV.UK Design System

One place for service teams to find styles, components and patterns for designing government services.

Run locally

You'll need Git and Node.js installed to get this project running.

Note: You will need the active LTS (Long-term support) Node.js version for this project (as specified in .nvmrc)

Fork repository (optional)

If you're an external contributor make sure to fork this project first

Clone repository

git clone [email protected]:alphagov/govuk-design-system.git # or clone your own fork

cd govuk-design-system

Using nvm (optional)

If you work across multiple Node.js projects there's a good chance they require different Node.js and npm versions.

To enable this we use nvm (Node Version Manager) to switch between versions easily.

  1. install nvm
  2. Run nvm install in the project directory (this will use .nvmrc)

Install npm dependencies

npm install

Start a local server

This will build sources, serve pages and watch for changes.

npm start

Build

Build ./src to ./deploy/public

npm run build

Run the Sass linter

We are using the tool sass-lint to lint the Sass files in source/stylesheets. You can run the linter from command line by running:

npm run lint

GOV.UK Frontend packages

Design System consumes the GOV.UK Frontend package via NPM. This is defined in the package.json file.


Continuous integration

When changes are pushed to GitHub, Github Actions will:

  • run the tests
  • lint the Sass stylesheets in source/stylesheets
  • run the npm run build command to ensure that the site can be generated

If any of these fail, this will be reported in the GitHub status checks interface.

Deployment

govuk-design-system's People

Contributors

36degrees avatar adamsilver avatar alex-ju avatar aliuk2012 avatar calvin-lau-sig7 avatar charlottedowns avatar debsdee avatar dependabot[bot] avatar edwardhorsford avatar eoinshaughnessy avatar frankieroberto avatar hannalaakso avatar harryvos avatar ignaciaorellana avatar imranh-gds avatar joelanman avatar kellylee-gds avatar kon-b avatar laurenmcallister avatar lfdebrux avatar m-green avatar mikerogers0 avatar nickcolley avatar nooshu avatar quis avatar simonneb avatar simonwhatley avatar stephengill avatar stulorente-cronin avatar timpaul 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.