Skip to content

Creating a component

miyagi new <folderName>/<componentName>`

This will create a component folder including the following files:

  • tpl: index.twig
  • css: index.css
  • js: index.js
  • docs:
  • mocks: mocks.json
  • schema: schema.json

NOTE: The component will be located based on your current working directoy (so you are able to use autocompletion) and the file names depend on your files settings.



You can skip any of the files like this:

miyagi new <folderName>/<componentName> --skip css js


Alternatively, you can explicitly say which files you need like this:

miyagi new <folderName>/<componentName> --only tpl docs