Skip to content
angelozerr edited this page Mar 25, 2017 · 5 revisions

Terminal

When you install Eclipse JEE distribution, it provides a Local Terminal:

Terminal Toolbar

You can use Local Terminal to consumes angular-cli (see angular-cli to know the prerequisites)

Local Terminal

The only problem is that there is none interaction with your workspace. For instance when you execute ng new myproject to generate an Angular2 project with angular-cli, at the end of this command, Eclipse workspace is not refreshed with the created project. To do that, ng new myproject command must be interpreted and an Eclipse project must be created at the end of the command.

This idea was submitted to TM project which provides Local terminal (please vote), but by waiting for an answer, I have decided to provide a new Local Terminal (Interpreter):

Local Terminal Interpreter Dialog.png

ng new

At the end, refresh the created project

ng New

ng serve

Start the Web Browser.

ng Serve

Please note that:

  • you can use too ng launches do start server.
  • if you wish to customize port, live reloading of server, you can do it with .ember-cli file.

ng generate

Refresh the generated component, etc

ng build

Refresh the "dist" folder.

You can use too ng launches do do that.

Terminal Debug

If the use of terminal doesn't work (ex: doesn't create the Eclipse Project after a ng new), please create an issue here:

  • by explaining what you try to do (ex: use of Angular2 Project wizard doesn't refresh the project).
  • and adding Terminal trace in the issue.

To have terminal trace, you can open the View Terminal Debug with Window / Show View / Other.... After that when you generate an Angular2 Project with wizard (which opens a terminal), or you type command in terminal, the Terminal Debug view should display terminal traces.

Terminal Debug View