Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

himynameisdave/create-7geese-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-7geese-component

💎 A command-line utility for creating new 7Geese components.

Scaffolds out a component with the following structure:

./static/js/apps/components/my-component/
    |-- my-component.jsx
    |-- my-component.less
    |-- my-component.jestspec.jsx
    |-- my-component.examples.md

Install

Install the CLI globally:

npm i -g create-7geese-component

Usage

You can run the command with create-7geese-component, but that's kind of long, so you can also use the shortended c7c.

Name

All you need to do give your component a name. Do so like this:

c7c --name MyComponent

Omitting the name argument will cause the program to prompt you for one. Your name can also be kebabcased, like my-sweet-Component.

Path

The command assumes you are running this at the root of the 7Geese repo and want your new component to live in ./static/js/apps/components/. But perhaps you are a cool kid and want to specify your own path to /components/ relative to the current directory, do so like this:

c7c --name my-component --path ./another-path/

Created by Dave Lunny in 2018 👌

About

💎A CLI for creating new 7Geese components

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published