How to create an API app without basic or advanced template


I need your wise guidance on this topic.

I want to create a web app but this time I decide to use another approach: Split it into three repos (api, backend and frontend). For backend and fronted I will use a JavaScript framework (not AngularJS!) but for the API, I decided go to with Yii2 but I want to know how to generate my app without all bloatware from basic or advanced templates (specially views). I hasten to answers like: Hey dude, why do not you use the basic template and create a module called api? Yeah, I know this is valid way but what I want to know is: How to create my own "template".

Thanks in advanced.