1.0.5 • Published 1 year ago

@amphore-dev/architect-plugin-react v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Architect plugin: React

The architect-plugin-react extends the functionality of the Architect CLI tool, enabling developers to easily generate React components, React Native components, and TypeScript versions for both. This plugin simplifies the creation of components for modern JavaScript and TypeScript frameworks, making it easy to scaffold projects and maintain consistency in your codebase.

Features

  • Generate React components and React Native components.
  • Supports both JavaScript and TypeScript versions for React and React Native.
  • Easy integration with the Architect CLI tool for seamless project management.
  • Customizable output directory and component structure.

Supported Languages

The plugin supports the following languages for component generation:

LanguageDescription
reactStandard React component (JavaScript)
react-typescriptReact component using TypeScript
react-nativeReact Native component (JavaScript)
react-native-typescriptReact Native component using TypeScript

Installation

Install the plugin in your project directory with either npm or Yarn:

npm install --save-dev @amphore-dev/architect-plugin-react

or

yarn add --dev @amphore-dev/architect-plugin-react

Usage

To configure the plugin, modify the architect.config.json file in your project directory. Specify the language you want to use for component generation:

{
    "plugins": ["@amphore-dev/architect-plugin-react"],
    "language": "react-typescript",
    "outputDir": "src"
}

License

This plugin is licensed under the ISC License.

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago