Code Monkey home page Code Monkey logo

create-styled-components's Introduction

create-styled-components

README

日本語ドキュメント

see document/Create Styled Components for Vscode.pptx

Features

This extension is partially copied from github project below and changed templates for our project.
brendon1555/vscode-react-component-generator

It can create template components with typescript, jest test and storybook.

About Template.

Our template will use the libraries below.
@testing-library/react
jest
typescript
@chakra-ui
react-i18next(for localize)

Install

From vsix file

  1. Download vsix file from dist folder.
    create-styled-components-0.0.1.vsix.
  2. Click extension icon in VSCode.
  3. Click the ... in top-right conner of the extension window.
  4. Click the Install from VSIX in the submenu.
  5. Select you downloaded vsix file and install it.

Usage

From Explorer

  • Right click the folder in the sidebar where you want to create a component.
  • Select Create Styled Component.
  • Select Typescript(it is only select) and whether to include Storybook or Tests.
  • Enter a name for the Component.
  • A Component will be created in a directory named after your input.

From Command Palette

  • Open the command palette and type Create Styled Component, press Enter.
  • Select Typescript(it is only select) and whether to include Storybook or Tests.
  • Enter a name for the Component.
  • A Component will be created in a directory named after your input.

Configuration

You can access to the extension's settings through VSCode settings. You can customize:

reactComponentGenerator.componentsPath (default: "")

Path relative to the workspace root to place components when not using the Explorer.

Known Issues

Only use Typescript.

Release Notes

0.0.1

It is for our project.


Following extension guidelines

see here

generate installer file command

npm install -g vsce

vsce package

more

create-styled-components's People

Contributors

sonlichao avatar

Watchers

 avatar

Forkers

shioyang

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.