Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 945 Bytes

File metadata and controls

57 lines (37 loc) · 945 Bytes

CSS Component Generator

A CLI tool to generate CSS components from templates.

Installation

global

You may have to run this with sudo

npm install -g css-component-generator

local

git clone https://github.com/liquid-surf/css-component-generator
cd css-component-generator
npm ci
node ./bin/cli.mjs

Usage

css-component-generator

The tool will prompt you for:

  1. Component name (in kebab-case)
  2. Template to use

Available Templates

  • endpoint-middleware: A template for creating endpoint middleware components
  • login: A template for creating a new login method
  • basic: print 'hello world' in the log

Adding a new template

Feel free to submit a pull request to add a new template to the repo!

Development

# Clone the repository
git clone https://github.com/liquid-surf/css-component-generator

# Install dependencies
npm install

# Run tests
npm test