Nodejs not working with Intellij Idea - eclipse

I would like to use Nodejs in sync with my IDE in order to do a browserify + gulp/grunt config for my frontend modules.I am currently on Eclipse which crashes when I attempt to install npm modules for my config.
I currently use grunt with my package.json and the gruntfile and the npm modules outside the project,I have also found that the watch task is useless because one has to refresh the files in Eclipse and then restart the server.
A friend recommended the Intellij Idea IDE.I have come to understand(painfully) that the Nodejs plugin is not available in the community edition and is not likely to be.I would like to know if there is any way to run tools such as gulp,npm,browserify with a seamless watch config in the IntelliJ IDEA.
I have a simple J2EE project that uses no frameworks.

You can find more details in this link.
Normally I recommend to use text advanced text editor like
1.brackets
2.atom
3.sublimetext
Then it'l be more faster and easy.

Related

How do I create a typescript project?

I am trying to learn typescript with Node.js and the TypEcs Eclipse plugin. I installed Node.js and did npm install -g typescript. I also followed instructions on the TypEcs front page to install TypEcs with Eclise Luna.
Now I have a typescript perspective as shown below. But there is no project type for TypeScript when I try to create a test project.
My question is,
How should I start a new TS project with TypEcs?
Thanks.
You should install Nodeclipse Enide Studio 2014 plugins for Node.js. Nodeclipse has simple Typescript option in new Node.js project wizards. (It is also better idea to start from simpler JavaScript first)
I am lead of Nodeclipse, I don't yet use Typescript, but I would like to collaborate on the
"Node.js + TypeScript" topic on GitHub. Be ready to share, discuss and research.
I haven't got Eclipse here to test, but I believe you can start by creating any of the available project types that includes JavaScript.
If you aren't sure what to use, choose a static web project (this doesn't have any server-side code).

How to build and install an Eclipse plugin using ant

How do I build and install an Eclipse plugin using ant? I want to build a plugin as a zip file and then install the plugin on 32bit or 64bit eclipse. What am I supposed to do here?
Indeed, using PDE/Build to achieve a so-called headless build is difficult, but not impossible.
We are still building our RCP this way.
I recommend reading Paulin's and Sharma's tutorials on the issue.
The Eclipse PDE has its own builder which is built on ant. I'm not sure from your question if you are looking to simply build/export your plugin within eclipse or generate ant build scripts that can be run outside of eclipse. The latter is more difficult. Inside eclipse you can simple go to file -> export -> Plugin-Development -> Deployable plugin and the export wizard will walk you through it, you can select to deploy a zip or exploded directory and then select output location and presto you have your plugin built as a jar that can be dropped into an eclipse instance. If you are looking to use ant outside of eclipse to build you need to go through a series of steps that are complicated to get a 'headless build", if this is what you need to do Google "pde headless" build. I've tried it but gave up. There is also a good book "Building highly modular systems with OSGI/Equinox that has a chapter devoted to this. - Duncan

CloudBees + PlayFramework + Eclipse

I want to develop and manage my DEV#CloudBees and RUN#CloudBees workspace from Eclipse, for a PlayFramework project, and I will have to work with it from several different PC. I'm using the Cloudbees SVN repository, Jenkins CI solution, database ... everything.
I installed CloudBees and PlayFramework plugins for Eclipse, created my CloudBees account, SVN repository, project, Jenkins Job and database. I've created my Play project, eclipsified it.
I understand and I have tested each component of my targeted working environment but I didn't manage to make them work smoothly together.
1- I've seen some Play modules for CloudBees but it is only for command-line use. Is there a nice Eclipse plugin wrapper for this ?
2- I have some issues writing the build.xml, especially when referencing the PlayFramework libs, because I can not use the local installation as it won't work on Jenkins.
3- How can I deploy to RUN#CloudBees from Eclipse ? If i use the CloudBees plugin, it doesn't package the PlayFramework libs.
4- How can I use the testing features of Play to be integrated in Jenkins ?
I have a lot of questions but it is enough for now :) By the way, PlayFramework is awesome and CloudBees a life-saving work environment.
Thank you for your help.
Contact the support, they are really helpful..and fast!
they do have a plugin for Jenkins, ask to get it installed on your server..I use the command
play auto-test
and it works fine. You'll need some code to check for failures depending on the .failures files. check this link
I received a very quick and efficient answer from Cloudbees support.
It confirms what mericano1 and Ryan said (thanks to them).
The CloudBees Jenkins service let users install some customization plugins like the Play! Framework one !
After adding it to the core configuration, you can add a new build step "Play!" in your job configuration and set the Play! commands you need. For example "clean", then "deps --sync" and finally "auto-test". You can also add the war -o toto.war if you need the binary.
You can check the "Play! auto-test reports" checkbox. You'll have an additional icon "Play! Test Result" in the left menu of the build result page to watch the ... Play test result page (unbelieavable :)).
Still in the job configuration, you can check the "Deploy to CloudBees" features. I didn't tried but I think the Play! libs issues wouldn't be resolved. So, add the cloudbees 0.2.2 plugin in your Play! project dependencies.yml, and you can add the bees:app:deploy command in your build step.
For Eclipse, the CloudBees plugin is fully functionnal, once you have configurated your Jenkins job. But you should stay with the Play! process to develop locally and not the Run DEV#/CloudBees Local.
1) The cloudbees module is only for the command-line. There is no Eclipse plugin (that I know of). However, the command-line is really simple play bees:app:deploy
2) Not sure here
3) Deploying Play Framework Apps is a bit different from deploying J2EE (because of the necessary play war command), thus deploying a Play app to Cloudbees from Eclipse might not be possible. However, see 1).
4) I think there is a Play plugin for Jenkins. I have never used it on/off Cloudbees.
OK, so I provided some help on questions 2 and 4, and unfortunately, the answers may not have been what you hoped. I suggest switching to command-line when it is time to deploy.
In eclipse click on external tools menu and create a new command as noted by Ryan in 1).
then you can simply click on the external tool icon.

node.js in Eclipse - which plugin(s) are most people using?

I'm mostly interested in server-side web development, though being able to redeploy some bits in Chrome would be nice.
I am currently running Eclipse Indigo on Ubuntu for developing mostly Java/Scala programs and to use git.
So far I've come across http://code.google.com/p/chromedevtools/ and https://www.ebayopensource.org/index.php/VJET/HomePage, but not sure which is preferable.
There is Nodeclipse.org effort. Current version is 0.16
update site is
http://www.nodeclipse.org/updates/
When you want to help in any way, start by raising issue
Features Creating default structure for New Node
Project and New Node Source File Generating Express project
with Wizard JavaScript Syntax highlighting Bracket
matching and marking selection occurences with background color
Content Assistant within one file Go to definition with
Ctrl+click when JSDoc is
used Refactoring within one file
(Alt+Shift+R) JSON files highlight and
validation NPM support Debugging - Breakpoint,
Trace, Variables, Expressions, etc... via Eclipse debugger plugin for
V8 Setting project properties for JSHint-Eclipse
automatically; JSHint
settings template
Passing arguments to Node application and Node.js,
specifying environment variables values to use Running
CoffeeScript *.coffee files Running *.js files with
PhantomJS, MongoDB Shell or Java 8 Nashorn jjs util
Bundled together with Markdown Editor, GitHub Flavored Markdown,
StartExplorer (for system explorer and shell), RegEx, Icon Editor,
MongoDB, RestClient Tool and other plugins (20+ in total, check
update site and Nodeclispe Plugin
List) Support for Eclipse Juno, Kepler, Luna M3
(source: nodeclipse.org)
Read http://www.nodeclipse.org/ for more & latest information.
What I have tried
VJET contains lot a bugs (in coloration, auto-competition ...). Could be better after a few updates. Node.js support is quite not up to date.
Eclipse Web Tools does no support node functions
NodeClipse http://www.nodeclipse.org/
Netbeans have a NodeJS plugin. Looks quite complete.
The chrome dev tools is just a debugger (and some chrome related utilities), not a fully usable IDE.
So far I would strongly not to use Eclipse for node.js project.
I'm using Sublime Text 2 for a while, and I'm very happy with it (And it has a node.js plugin).
I would recommend Aptana Studio (www.aptana.com/).
It's quite complete for javascript development besides it doesn't have node.js "direct support
It can be installed both as a standalone application or an Eclipse Plugin.
I've been using it for server and client development and works great for both.
Try Microsoft WebMatrix 2
It is free and has intellisense.
As of Eclipse Neon (May 2016), Supports for Node.js comes as part of the JSDT.
The only prereqs are the installation of Node.js and npm.

Boostrapping new Eclipse machines with all the Plugins

Bootstrapping Eclipse on new machines is such a time consuming process, you wind up asking yourself whether you really need each plugin. But there all handy, and help develop consistent habits.
Eclipse bootstrapping problems include:
Explaining / documenting what needs to happen
The actual time pasting in the right URLs and downloading
Version compatibility and dependencies
Eclipse likes to restart after each one
The changeover to the Eclipse Marketplace means that some plugins and instructions you find on the web tend to be inconsistent, depending on when they were written.
The Licenses... over and over and over... yes, yes, yes... I understand that the person installing needs to be aware of it, and have a chance to review them, but there's got to be a better way.
It'd be nice to have "patch file" (either binary or meta) that spells out what I want to add on top of stock Eclipse installation. I'd really like to find (or create) a 1 or 2 step process that sets up Eclipse, plus a favorite batch of plugins:
subclipse
m2eclipse
jetty support like runjettyrun
android sdk and plugin (or at least just the plugin)
aspectj
Web Objects / WOLiops
python, other langs
JVM Monitor, maybe EclEmma
probably a git plugin pretty soon.
Does command line maven help with any of this? It seems like its repository management would fit at least part of the functionality.
On a machine with an Eclipse installation matching your needs use File -> Export -> Install -> Installed software items to file. Import the generated file using the same menu on all other machines.
As Scott says, a good approach is to simply package a fully prepared Eclipse installation once all the plugins you need are installed. The downside is that you have to update most plugins afterwards.
Another option is to use Yoxos. With it, you can create a profile and configure it with all the plugins you need (and apparently Yoxos can do more than that).
Finally, this page might interest you concerning the configuration side of things.
Solution 1 is too search for more advanced Eclipse distributions.
For example, STS (Spring Tool Suite) comes with
AspectJ
EGit
m2e
(and of course) Spring IDE
One small trick can be done with m2e-android - Android Configurator for M2E Maven Integration. If installing it on clean Eclipse, it will also automatically resolve to install :
m2e
Android Developer Tools (ADT)