create-7geese-component

1.0.0Β β€’Β PublicΒ β€’Β Published

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 πŸ‘Œ

/create-7geese-component/

    Package Sidebar

    Install

    npm i create-7geese-component

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    163 kB

    Total Files

    24

    Last publish

    Collaborators

    • halfdanhem
    • jeremygonzalez
    • maxparm
    • laytong
    • severest
    • himynameisdave