@justeat/generator-component

2.15.0 • Public • Published

generator-component

Fozzie Bear

A generator for Fozzie components.


npm version CircleCI Coverage Status Known Vulnerabilities

Usage

Installation

First, install yeoman if you haven't already done so:

$ npm install --global yo

And then install the component generator:

$ npm install --global @justeat/generator-component

Running the generator

To run the generator, use this command from any directory within the fozzie-components repo:

yo @justeat/component

An interactive prompt should now be displayed asking for a Component name, description and a number of options for you to define the component that you are creating.

Once you have completed all the prompts, your scaffolded component will be generated 🎉

Contributing

In order to contribute to the generator-component, it's advised to link your local build of the generator to Yeoman.

To do this, run yarn link from the root of the generator-component folder in the mono-repo.

Once you have done this, running yo @justeat/component will run your local copy of the generator (rather than the version installed globally via NPM).

Note

!!! There is a manual step temporary required: Please, add your component to .circleci/config.yml under save_cache_dist_directories manually after the component is generated.

/@justeat/generator-component/

    Package Sidebar

    Install

    npm i @justeat/generator-component

    Weekly Downloads

    2

    Version

    2.15.0

    License

    Apache-2.0

    Unpacked Size

    42.3 kB

    Total Files

    36

    Last publish

    Collaborators

    • ilia.chikmarev
    • fidel.montesino
    • anastasiia.horban
    • raouf.sawehli
    • mmakwe-onyeka
    • gregory.palaci
    • arielfdr
    • dawidchar
    • roberto.santana
    • lizzie.turney
    • davidpn.11
    • dandel10n
    • mwh1989
    • kevinrodrigues
    • fozzie-bot
    • ashleynolan
    • simonsje
    • xander-marjoram
    • sergii.semenkiv
    • thomaswilliammcclean
    • benrwhite
    • robertellison
    • zlatin.ivanov
    • joshuang2332
    • oliversweb
    • andymayje
    • jamieomaguire
    • adammorr
    • lsphillips