Skip to content

ONSdigital/eq-prototypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

33161c9 · Jul 23, 2020
Jul 13, 2020
Dec 6, 2018
Jun 29, 2020
Jul 13, 2020
Jul 13, 2020
May 5, 2020
Jul 10, 2020
Jul 23, 2020
Jun 1, 2020
Jun 6, 2018
Jul 22, 2020
Mar 16, 2020
Mar 16, 2020
Apr 27, 2018
Oct 24, 2018
Jun 27, 2019
Apr 20, 2016
Mar 20, 2018
Jan 2, 2018
Jan 9, 2018
Jan 9, 2018
Feb 21, 2020
Jan 9, 2018
Mar 16, 2020
Mar 16, 2020

Repository files navigation

eQ prototypes

Install

Install RVM and run:

  • gem install bundler
  • git clone https://github.com/ONSdigital/eq-prototypes.git
  • cd eq-prototypes
  • bundle install
  • npm install

Run

Install node and gulp and then run:

  • gulp to build

Developement

Run gulp dev to run in development (localhost:4000 by default)

View Prototypes

Javascript development

To build custom code with access to pattern library modules

  • Create a bundle.js file in any folder inside _prototypes/.
  • Reference pattern library modules in ./_js/modules/
  • Run gulp from the command line in the root of the project.
  • A corresponding compiled bundle.js with be written to the folder js/compiled/
  • Reference the generated bundle.js in your HTML file(s).

CDN Version

Default css CDN version: v1.0.0 To use a specific version add cdn: v1.0.1 to _prototypes/yourprototype/yourversion/yourtemplate.html