I am looking for a way to deploy a custom page to sharepoint.
Currently I was able to do it via sharepoint, by adding an aspx page to the project. This added an aspx pages to layouts and it deployed it to sharepoint.
The page page did work, but I was unable to make it the welcome page. It seems that the welcome page can be only a page that resides in "SitePages" directory.
So how could I deploy to SitePages a page via visual studio?
I am using Sharepoint 2013 with visual studio 2012.