🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@acrool/react-component-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acrool/react-component-cli

Quickly create React components using CLI

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Acrool React Component CLI

Acrool React Component CLI Logo

Quickly create React components using CLI

NPM npm npm

npm downloads npm

Features

  • Quickly create React components using CLI
  • Supports atomic design structure (atoms, molecules, organisms)
  • Configurable component paths

Install

yarn add @acrool/react-component-cli

Usage

Create configuration file .acrool-react-component in your project root:

module.exports = {
    atom: 'src/components/atoms',
    molecule: 'src/components/molecule',
    organize: 'src/components/organize',
    form: 'src/components/form',
};

run generate

# type: atom|molecule|organize|form
npx acrool-react-component generate -t {type} -n {componentName}

Here is a faster way your can add in your package.json

{
  "scripts": {
    "dev": "next dev",
    "comp": "acrool-react-component generate"
  }
}

fast run

yarn comp -n TitleBlock

# âś” The component has been successfully generated to ./src/components/atoms/TitleName
# ✨  Done in 0.12s.

Develop

build

yarn build && npx acrool-react-component generate -n TitleBlock

License

MIT © Acrool & Imagine

Keywords

typescript

FAQs

Package last updated on 01 May 2025

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