Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snapshot plugin to project package.json #2151

Closed
wants to merge 1 commit into from

Conversation

jasssonpet
Copy link
Contributor

@jasssonpet jasssonpet commented Oct 21, 2016

This will enable the snapshot plugin for newly created apps.

@jasssonpet jasssonpet added this to the 2.4.0 milestone Oct 21, 2016
@jasssonpet jasssonpet self-assigned this Oct 21, 2016
@jasssonpet jasssonpet force-pushed the jasssonpet/enable-snapshot branch from b35ba7c to 5f56578 Compare October 21, 2016 10:25
@jasssonpet jasssonpet changed the base branch from master to release October 21, 2016 10:25
@dtopuzov
Copy link
Contributor

It looks ok, but please DO NOT merge, it will hit the current CI infrastructure.

@@ -63,7 +63,10 @@ export class ProjectDataService implements IProjectDataService {
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>"
"repository": "<fill-your-repository-here>",
"devDependencies": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the code is here? It can be added to the templates as all devDependencies from the template will be added to the currently created project:
https://github.com/NativeScript/nativescript-cli/blob/master/lib/services/project-service.ts#L76

https://github.com/NativeScript/nativescript-cli/blob/master/lib/services/project-service.ts#L100-L102

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case I prefer to add this to the templates. @jasssonpet what do you think?

Copy link
Contributor Author

@jasssonpet jasssonpet Oct 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can move it to the templates, but are we sure there aren't any templates outside the NativeScript organization? Or should I add it to the hello-world template and it will be copied like the App_Resources are?

Copy link
Contributor

@enchev enchev Oct 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made pull requests for all three templates. No other templates outside of the organization
NativeScript/template-hello-world-ng#24
NativeScript/template-hello-world#53
NativeScript/template-hello-world-ts#14

@jasssonpet jasssonpet closed this Oct 26, 2016
@jasssonpet jasssonpet deleted the jasssonpet/enable-snapshot branch October 26, 2016 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants