0.1.2 • Published 6 years ago
fractal-create-component v0.1.2
fractal-create-component
Custom Fractal command that Creates a new component directory and files.
More on Fractal commands here: https://fractal.build/guide/cli/custom-commands.html.
Setup
Install from npm:
npm install --save-dev fractal-create-componentIn fractal.js, run init function, passing fractal object:
const fractalCreateComponent = require('fractal-create-component');
fractalCreateComponent.init(fractal);Usage
In desired component parent directory, run fractal cc <component-name> or fractal create-component <component-name> to create the component-name directory with a .scss, .twig, and .config.js file.
fractal cc button will create:
./button/button.scss, ./button/button.twig, ./button/button.config.js