Giter Site home page Giter Site logo

javgt / vscode-component-creator Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 7.08 MB

This extension is used for the creation of components in a more optimal and faster way

License: MIT License

TypeScript 98.72% JavaScript 1.28%
javascript react typescript vscode-extension

vscode-component-creator's Introduction

React Create Component

React Create Component logo

Generate your components quickly, with multiple easily customizable templates

Features

  • Create a component depending on the selected language.
  • Create a style file depending on the type of style or extension selected.
  • You can create styles per module.
  • You can create a component with built-in style import.
  • It generates a barrel in your folder.
  • In the tsx files, integrate the interface.

Commands

Command Description context keybindings
RCC: Create Component Create a component in the path that you select palette command ctrl + shift + l
RCC: Delete cache Delete the cache of the component creator palette command
RCC: Create page Create a page in the path that you select menu context

Integrations

Integrations Technologies
Framework or library React, React Native
Language Javascript, Typescript
Style extensions CSS, SASS, SCSS
Styles options CSS Module, styled-component, tradicional
Extras Storybook, Test Testing Library

How does it work?

Use from a specific path

Working You can use it by clicking on the folder where you want your component to be and clicking on the "Create Component" option.

Use by entering the path

Working You can also use it by giving it by executing the "Create Component" command from the command palette To create a component it can also be executed with the following keys (ctrl + shift + l)

Settings

Ejemplo de resultado en Typescript

You can change the configurations of the templates to make the creation more customizable and faster, for more information go to the configuration documentation

Structure Results

ComponentFolder
│
│── Component.{jsx, tsx}
│
|── styles(.module).{css, scss, sass}
│
|── Component.stories.{jsx, tsx} [optional]
│
|── Component.test.{jsx, tsx} [optional]
│
└── index.{js, ts}

Example of output with traditional CSS

Typescript

Ejemplo de resultado en Typescript

css

Ejemplo de resultado de CSS

Barrel

Ejemplo de resultado de Barrel

Testing

Ejemplo de resultado de test

Storybook

Ejemplo de resultado de storybook

License

React Create Component is MIT licensed.

vscode-component-creator's People

Contributors

javgt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-component-creator's Issues

ReactNative Style

Hola, vengo usando tu extensión hace un tiempo, ahora estoy trabajando con react native y me gustaría tener esta opción aquí , no es muy diferente a los que ya tenes, por ahí solo tendrías que agregar un archivo de estilos con la siguiente linea

export const styles = StyleSheet.create({})

y el archivo del componente algo así

import { Text } from 'react-native'
import { styles } from './Historial.styles';

const Historial = () => {
	return <Text>Historial</Text>;
};

export default Historial;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.