Skip to content

Possibility to create a new project from existing one along with its dependencies #847

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

Closed
vchimev opened this issue Sep 2, 2015 · 5 comments

Comments

@vchimev
Copy link

vchimev commented Sep 2, 2015

Currently --copy-from option of the tns create <App Name> command takes as argument the app directory of an existing NativeScript project. In this way the newly created project is not aware of the dependencies of the old one described in its package.json file.

It would be nice if there is a possibility to copy not only the app folder content, but also project's dependencies (and runtimes versions) information.

@Fatme
Copy link
Contributor

Fatme commented Sep 2, 2015

You can get the dependencies and/or runtimes versions from old package.json file and use tns init.

@vchimev
Copy link
Author

vchimev commented Sep 4, 2015

Yes, but still you have to get them manually.

My idea is for example --copy-from option to take as argument package.json file (or the directory of package.json and app folder) and include its list of dependencies in the package.json file of the new project. Then you would be able to proceed with tns install.

@PanayotCankov
Copy link
Contributor

👍

@rosen-vladimirov
Copy link
Contributor

Maybe I'm missing something, but what's the business case here? In case you want the same project, can't you just copy the directory and change the id in the package.json ? Can you point existing IDE that allows copy project (maybe there's such option, but I really can't remember ever using it)?

@vchimev
Copy link
Author

vchimev commented Dec 1, 2015

@rosen-vladimirov
I see my idea behind this issue to be implemented as --template option (#374 (comment)) in 1.6.0. Closing this one.

@vchimev vchimev closed this as completed Dec 1, 2015
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

No branches or pull requests

4 participants