A CLI tool to generate CSS components from templates.
You may have to run this with sudo
npm install -g css-component-generatorgit clone https://github.com/liquid-surf/css-component-generator cd css-component-generator npm ci node ./bin/cli.mjs css-component-generatorThe tool will prompt you for:
- Component name (in kebab-case)
- Template to use
endpoint-middleware: A template for creating endpoint middleware componentslogin: A template for creating a new login methodbasic: print 'hello world' in the log
Feel free to submit a pull request to add a new template to the repo!
# Clone the repository git clone https://github.com/liquid-surf/css-component-generator # Install dependencies npm install # Run tests npm test