Comments (7)
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.
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.
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.
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.
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.
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.
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)
- ng command not recognized in eclipse preference HOT 43
- can't install HOT 1
- Angular template editor doesn't work on linux HOT 3
- Getting [ts] errors on all of my HTML files HOT 5
- Add to workspace Angular Project downloaded from repository HOT 6
- Files and folders in project get locked
- Workspace build hangs at 66% HOT 1
- ng new not working with latest cli
- ng serve using wrong node/npm version
- Not able to create a new project HOT 8
- Eclipse update site not working HOT 2
- Files are deleted when switching to another GIT branch
- Not able to create project in linux with 1.3.0 version of angular plugin
- Create Angular project not initializing anything but metadata HOT 3
- Contributor guide HOT 4
- after plugin installed, no angular wizard available
- Getting started is not enough HOT 4
- got a software not signed error
- Unable to build project after Angular install HOT 3
- angular-cli doesn't work with ngWizards -> Location doesn't belong to an @angular/cli project. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-eclipse.