Coder Social home page Coder Social logo

matthiaskomarek / cosy Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 281 KB

A Yeoman Generator for your COmponent SYstem. Creates a Lerna Project with Storybook, React, Jest, Rollup Bundle, Visual Regression Tests and more coming soon!

License: MIT License

JavaScript 99.75% CSS 0.25%

cosy's Introduction

cosy
COSY

A Yeoman Generator for your COmponent SYstem.
Creates a Lerna Project with Storybook, React, Jest, Rollup Bundle, Visual Regression Tests and more coming soon!

npm version

Usage

Create your project

Install the required tools and generator: yo, generator-cosy

// npm
npm install -g yo generator-cosy

// yarn
yarn global add yo generator-cosy

Make a new directory, and cd into it:

mkdir my-new-component-system && cd $_

Run yo cosy to setup your component system folder structure

yo cosy

Questions the generator will ask

  1. Your project name
  2. Do you want to use @scoped npm package names
  3. Package scope name (only if previous question is true, will use @scope as prefix for your packages)
  4. Do you want to use yarn?
  5. Do you want to use yarn workspaces (only if previous question is true)

Subgenerators

yo cosy:package <component-name>

Generates a new component as package. If you have specified a @scope, this subgenerator will use the package scope as prefix for your new created package name.

You can omit the <component-name> part on the cli, the generator will than ask for your component name.

Questions

  1. Component name (only if not specified as cli argument)
  2. Package name
  3. Atomic design stage (Atom, Molecules, Organism, Template, Page)

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.