I have just started with the theme development in the magetento 2.1. I am over all new to magento. I wanted to know the setup and the ways to one develop a theme in magento . After a lot of reading the procedure i follow after making a change in the custom theme file is
- When changing/overriding the layout file run the 'php bin/magento setup:static-content:deploy --theme vendor/theme' command.
- When changing/overriding the less files/static files using grunt i run 'grunt exec:vendor && grunt less:vendor'. (Offcourse after configuring grunt).
But if instead of modifying the files from the app/design/frontend/vendor/theme/ if i modify the less/static files from 'pub/static/frontend/vendor/theme/en_US/' I can just run grunt less:vendor and i can get the compiled css there and after my development is done i can copy the files back to app/design/frontend folder at respective places.
What are the best practices or the common way of theme development steps?
PS: All vendor is your vendor and all theme is respective theme name.