/pugin

Pugin is a component-based pattern design library for Parliamentary Digital Service microservices.

Primary LanguageRubyOtherNOASSERTION

Pugin

pugin is a component-based pattern design library created by the Parliamentary Digital Service that holds all of the reusable partials, styles and scripts for elements of the UK Parliament's microservices. It is named after the designer Augustus Welby Northmore Pugin, who provided designs for the interior of the Palace of Westminster.

Build Status Test Coverage License

NOTE: This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.

Contents

Requirements

pugin requires the following:

Installation

Within your rails application, add the below to your Gemfile.

gem 'pugin', '~> 0.2'

Usage

This gem's main function is to expose front-end components and assets to the host application's asset pipeline.

Once you add the gem to your Gemfile run:

bundle install

Now all of the view components should be available within your host application.

Example

<%= render 'pugin/components/status' %>

Getting Started with Development

To clone the repository and set up the dependencies, run the following:

git clone https://github.com/ukparliament/pugin.git
cd pugin
bundle install

Running the tests

We use RSpec as our testing framework and tests can be run using:

bundle exec rake

Contributing

If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.

  1. Fork the repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Ensure your changes are tested using Rspec
  6. Create a new Pull Request

License

pugin is licensed under the Open Parliament Licence.