Component creation

Atomico automates the process of creating standardized components, a system of directories created thanks to the package tfolder

npm run create:component

tfolder template/tfolder/component src/components

Create a component inside the src/components/ directory

Where :

  1. template/tfolder/component: source of the template to clone for the component.
  2. src/components: Destination of the cloned template for the component.

Console output example

tfolder template/tfolder/component src/components

? Component Name? ยป custom-element

The attached template will create the following files:

src/components/${component}
                ${component}.js
                ${component}.css
                ${component}.md

${component} It will be replaced by the name entered when starting the script.