0.2.4 • Published 7 years ago

@barbershopio/generator-razor v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

Razor Generator

Quickly create React components with corresponding stylesheets and test files!

Installation

It's recommended to install the generator globally so you can use it on any project.

npm i -g generaor-razor
yarn global add generator-razor

Basic Usage

To create a component, run the following command from the root directory of your project and follow the prompts.

yo razor:component MyNewComponent

Configuration

The first time you run the generator you'll be prompted with a number of choices that are saved in a .yo-rc.json configuration file.

Bonus: Generate a Google Tag Manager Config

Just run the following and answer the prompts.

yo razor:analytics

This will generate a gtm.json file in the root directory. This file can be imported into Google Tag Manager by choosing:

Admin -> Import Container

Changelog

0.2.4 (10-10-2017)

  • Update flow component signature

0.2.0 (4-21-2017)

  • Add option to include flow annotation in a component.
  • Convert test file template to Jest format
  • Start changelog
  • Add CONTRIBUTING.md