Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@barbershopio/generator-razor

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barbershopio/generator-razor

Quickly create React components with corresponding stylesheets and test files!

  • 0.2.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
4
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 10 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc