Skip to content

ONSdigital/eq-prototypes

Repository files navigation

eQ prototypes

Install

Install RVM and run:

  • gem install bundler
  • git clone [email protected]: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

Releases

No releases published

Packages

No packages published