I'd like to run a node.js application from Maven (https://github.com/mdevils/node-jscs in particular), and if any errors are found then print them to the console and break the build.
Are there any well-maintained Maven plugins that integrate with node.js in this way?
Related
I actually only have a Node.js CLI application which I want to package as an AppImage and maybe even with auto-updater functionality. So is it possible to use electron-builder for a Node.js application without Electron?
If not, is there some other tool out there which can bundle a Node.js application into an AppImage?
I'm trying to run an application build with Electron on Linux. They app maker offers an .exe installation file. So I figured I'd install it in WINE, but I seem to be missing something the app needs to run.
Since the install is an .exe, do I need WINE? And if I need WINE, what do I need to install to make the app work? I have tried two Electron apps, both only downloadable as a .exe install file.
Electron adds os native calls, so .exe files usually do not work. WINE is not able to emulate all of those calls, so if it isn't working for you, then you are out of luck I guess. Look for apps that offer linux versions, like https://www.electronjs.org/apps/camunda-modeler. If you have access to the repository, chances are they build it using electron-builder. You can just build it yourself with the command electron-builder build --linux in most cases
I am trying to deploy a new jHipster application to Tomcat using version 6.1.0. A previous app using older versions worked just fine. I changed my pom.xml to generate a war instead of a jar file. If I run the war file as "java -jar app.war" it works fine, but if I deploy the war file to Tomcat my browser shows error message related to npm.
I have tried both app.war and app.war.original. I have set my baseHref in webpack.common.js to match my context name.
Here is the browser response:
An error has occurred :-(
Usual error causes
You started the application from an IDE and you didn't run npm start or npm run webpack:build.
You had a network error while running npm install. If you are behind a corporate proxy, it is likely that this error was caused by your proxy. Have a look at the JHipster error logs, you will probably have the cause of the error.
You installed a Node.js version that doesn't work with JHipster: please use an LTS (long-term support) version, as it's the only version we support.
Building the client side code again
If you want to go fast, run ./mvnw to build and run everything.
If you want to have more control, so you can debug your issue more easily, you should follow the following steps:
...
After build happens in Jenkins,Iam trying to do package of node.js application in jenkins
I think you will find the NodeJS Jenkins plugin provides the functionality you are describing.
I have an app that I made with yeoman, grunt an angular JS (typical setup - image included below). I'm trying to debug my project with spyjs (or even regular javascript debugging) but I can't seem to get it working when I run "grunt serve" - the file that's loaded from WebStorm clearly isn't going through the grunt server (but localhost:63343 instead). Any ideas how I could configure things properly to get debugging to work?
Here's my SpyJS configuration:
I've also tried localhost:9000 for the URL to trace (which is the port that grunt serve runs on), and I've tried using another node interpreter.
You need using the server your client code runs on (localhost:3000) and not WebStorm built-in webserver to debug your Angular application served by Grunt. See Debugging grunt with Intellij for some hints
Note: haven't tried this with spyjs - only with a regular debugger
You need to upgrade to Webstorm 9. As per spy-js
Node.js tracing is now supported in WebStorm 9 EAP, including multi process and node cluster tracing support.
Then instead of using Spy-js profile, use Spy-js for Node.js profile.
This screenshot is from Webstorm 9 RC.
I am using too the Yeoman generator (AngularJs + grunt), and I am debugging the application using the JavaScript Debug configuration like this:
(source: ignaciosuay.com)
Have a look to this post about how to debug angularJS with Intellij (It should work too for web storm)