Skip to content

Allow templates to omit App_Resources #2513

@tjvantoll

Description

@tjvantoll

As the NativeScript 2.5 release, NativeScript templates now must provide a complete App_Resources folder in order to work. I believe we should revert that change, and make App_Resources optional for templates. Here’s why:

  • The easier we make templates to create the more people will create them. We don’t have many templates right now and it’d be great to have more community-written ones.
  • Very few templates will actually need to change files in App_Resources. Few templates will need to add images, and none will want to alter the default splash screens or icons. That means most template authors will do what I did, and copy/paste the App_Resources folder from the default hello world template.
  • We update the App_Resources folder in the default template fairly often, and I want those updates to make it into my templates. To accomplish this currently I have to manually check for App_Resources updates with each release, copy and paste the folder again, and publish a brand new version of each of my templates.

I realize that this change was made for performance reasons—that we don’t want users to download two templates when using App_Resources-free templates. But I believe the developer convenience outweighs the moderate performance gains. And most users will continue to use one of our three default templates, all of which include an App_Resources folder, and will therefore not be subject to this small performance hit.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions