Code Monkey home page Code Monkey logo

Comments (7)

probert94 avatar probert94 commented on June 12, 2024

I like your idea for selecting cusom ng-installation. For a user it's simpler to select the installation folder, then knowing the exact file. Also validating the give folder seems verry helpfull.
We could also try to provide "nested" Angular-CLI, just like we do with TypeScript and NodeJS.

The Wizards ("ng new" and "ng generate") could use the ng-installation set in the preferences (global, nested, custom) to run "ng --version".
We could then perform the following checks:

  • Does "ng"-file exists in given location?
  • Is the "ng"-version compatible with plugin-version?

If the checks fail, we could show a warning and use the nested CLI-version instead.
The nested CLI should then only be used for this Wizard, the preferences shouldn't be changed.
That way we don't need to install something globally and can be sure, that there is always at least one compatible Angular-CLI installation available.

from angular-eclipse.

angelozerr avatar angelozerr commented on June 12, 2024

We could also try to provide "nested" Angular-CLI, just like we do with TypeScript and NodeJS.

My fear is that angular cli changes every time.

You have understood the idea, do the same like node and typescript runtime. I think we should improve to thoses preferences for validation (ex: node location doesn't exists, etc)

from angular-eclipse.

probert94 avatar probert94 commented on June 12, 2024

My fear is that angular cli changes every time.

Angular-CLI is now in RC, so I guess there won't be to many breaking changes.
Also, if we ship the plugin with nested version, we always have a compatible version we can use.
It might not be the latest available (depending on the release-cycle), but it will work with the current Plugin-version.
Also the users can always use a local, newer version, if they wish to.
So I don't think its a huge problem, if Angular-CLI changes often, or is it a lot of work to update the nested version?

from angular-eclipse.

angelozerr avatar angelozerr commented on June 12, 2024

Ok @Springrbua we could try to have an embed angular cli.

But perhaps it should be good to have in the project wizard the choose of the ng:

  • use embed ng
  • or use custom ng
  • or use global ng
  • or use the ng version (combo with available ng)

It's just an idea.

from angular-eclipse.

probert94 avatar probert94 commented on June 12, 2024

We could add it in Wizard, but I guess usually you use the same CLI-Version for the everything in the project, so you can set it in the preferences.
In the Wizard it will only be needed in rare cases I guess, so if we want to add it, it shouldn't be to "prominent" in the UI.

How would you implement the 4rd option (combo with available ng)?
Are they all embeded or will they be installed on demand? If so, where will they be installed?

from angular-eclipse.

angelozerr avatar angelozerr commented on June 12, 2024

We could add it in Wizard, but I guess usually you use the same CLI-Version for the everything in the project, so you can set it in the preferences.

My idea is to provide preferences to select by default the ng. But when you want to generate a CLI project, the wizard gives the capability to select and change the ng.

How would you implement the 4rd option (combo with available ng)?

By executing npm show @angular/cli versions

or with http URL

https://registry.npmjs.org/@angular%2fcli

Are they all embeded or will they be installed on demand? If so, where will they be installed?

No just by executing npm install @angular/cli@SELECTED_VERSION

from angular-eclipse.

probert94 avatar probert94 commented on June 12, 2024

So selecting the Angular-CLI version should only be possible in the project wizard (this makes sense).
It could then automatically set the project-specific preferences for the Angular-CLI, if selected CLI is different then workspace CLI.

by executing npm install @angular/cli@SELECTED_VERSION

So it is installed inside the project right? The preferences could then be set to "custom ng" with the path to the project-specific installation.
It would then automatically be updated, when you update CLI in project.

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.