Code Monkey home page Code Monkey logo

Comments (9)

luisalves00 avatar luisalves00 commented on June 1, 2024 2

If I do File>Import I cannot see "existing angular project", like with gradle or maven. If I have an existing project how the import is done?

from angular-eclipse.

malakeel avatar malakeel commented on June 1, 2024 1

Not sure why this is closed !
This does not answer the OP question. I am having the same requirements.
How do I import an existing Angular2 project created by another tool into eclipse as "Angular2 project" ?

from angular-eclipse.

angelozerr avatar angelozerr commented on June 1, 2024

I'm sorry but I don't understand very well your problem?

It would be nice, if I can import a previously created Angular2-eclipse project

You can do that today, no? What is your problem?

from angular-eclipse.

Plutoz01 avatar Plutoz01 commented on June 1, 2024

Sorry, I wasn't enough clear and maybe mixed 2 things:
1: I created a new Angular2 project, then I removed from the eclipse workspace and I searched the open project at wrong place: I tried File->Import instead of File -> Open project. So this part is fine.

2: After I created a new Angular2 project I added to git and ignored .project file. Then deleted project a from local and pulled it again from git repo. This is my real problem: I can't find any feature called like 'new Angular2 project with existing source code', so I created a new Angular2 project in the same folder. This triggered an unwanted 'ng init' command and I had to stopped the process manually. Instead of this it could be more useful if the project wizard optionally calls 'npm update' to get all dependencies.

I hope, this is enough clear now.

from angular-eclipse.

angelozerr avatar angelozerr commented on June 1, 2024

After I created a new Angular2 project I added to git and ignored .project file

Why? If you do that you will have problem too with Java project, or other project kind.

I can't find any feature called like 'new Angular2 project with existing source code'

If you use Import / Git / Project from Git, it will create an empty .project after import. The only thing that you will loose is the TypeScript Builder, otherwise it will work since Angular2 Eclipse, TypeScript IDE doesn't use Eclipse nature.

from angular-eclipse.

angelozerr avatar angelozerr commented on June 1, 2024

@Plutoz01 is my answer help you?

from angular-eclipse.

angelozerr avatar angelozerr commented on June 1, 2024

None answer, I close this issue. Please reopen if you have some other problems.

from angular-eclipse.

lmilton-ithaka avatar lmilton-ithaka commented on June 1, 2024

I simply opened the project in eclipse. It worked. File-->Open Projects from File System

from angular-eclipse.

TrXtR avatar TrXtR commented on June 1, 2024

Using Open Projects will result in the project imported being closed and unable to be opened.
This is due to lack of .project files.

The reason to ignore .project related files, is because of people that follow a pattern to make code ide agnostic.
With a java project this is resolved by using maven, which would be used to generate .project etc.
But there's no solution like with importing angular projects.

So when importing bulk angular projects (that dont contain ide dependant configuration files), for each project you have to create a new project that links to the content. This is cumbersome.
So yes the sane solution to this is to for each project go and create eclipse .project files and make the project ide dependant.
Which breaks the pattern.

Previously, the solution could be to use angular ide, which now is not recommended and deprecated.
And so that leaves the cumbersome solution, or the pattern breaking one.

(necro becuse it's what comes up)

from angular-eclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.