saschakiefer / generator-openui5

yeoman generator for OpenUI5 applications and assets
Other
64 stars 17 forks source link

Check/generate localResources for directory when adding views/components #10

Closed saschakiefer closed 10 years ago

saschakiefer commented 10 years ago

The default view directory is "view". For this, there is also a sap.ui.localResources("view"); statement generated in index.html. If a user now creates a view in a different directory, which is not made known to the framework, it will always run into an issue. Therefore a new feature would be to check during the view generation, if there is an related localResources definition available, if not, generate one. I'll track that as errors/ feature request.

saschakiefer commented 10 years ago

As we agreed to have the views by convention always in the view subdirectory, this feature was only implemented for components.