Creating a component
miyagi new <folderName>/<componentName>`
This will create a component folder including the following files:
tpl
: index.twigcss
: index.cssjs
: index.jsdocs
: README.mdmocks
: mocks.jsonschema
: 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.
Params
--skip
You can skip any of the files like this:
miyagi new <folderName>/<componentName> --skip css js
--only
Alternatively, you can explicitly say which files you need like this:
miyagi new <folderName>/<componentName> --only tpl docs