A generator for iRep/E-Detail projects, for use internally
npm install generator-havas
|2||downloads in the last week|
|6||downloads in the last month|
|Version||0.1.1 last updated 5 months ago|
|Keywords||yeoman-generator, havas, irep, generator-havas|
A generator for Yeoman.
How to install
Make sure you have yo installed.
$ npm install -g yo
To install generator-havas from npm, run:
$ npm install -g generator-havas
Finally, initiate the generator:
$ yo havas
A few extras
Yo Havas will also build and scaffold all the elements necessary for a new page, just run
$ yo havas:page "Page Name Goes Here"
The string will be used as the title of the page, and will also be converted to uppercase and spaces converted to underscores for file and folder names.
The command creates a .hbs file, a sass file and a img folder.
A separate css file is required to stop irepper pulling in all assets, so don't move this to inside the build block
All the modules in this boilerplate avoid jQuery wherever possible because it's slow at even simple things http://jsperf.com/add-class-test
Yo Havas comes with a Modal module, the popups are infinitely stackable, and avoid jQuery where-ever doesn't cause me a headache to stay as performant as possible they run at well above/below depending how you look at it, 60fps in the dev tools timeline.
Refs are pulled from an array and created on request, again avoiding jQuery. They rely on the modal module for the popup functionality.