How to use webstorm for both server and client project togehter

Hi

I'm developing a Node.JS application based on loopback.io project structure.  This project has both server side code and client side code together in a one single root directory.  All the client code goes inside a folder named client and server side code goes into (server, common) folders.

I've different requirements for both of the server side and client side code.  Example server side code uses ES6 and don't need any Babel etc... to convert where as client side code needs conversion.  Also I need different jshint rules for server side code as well as client side code.

Has anyone setup webstorm to handle both client and server code together?

Appreciate all inputs.

Thanks
-Kesav

4 comments
Comment actions Permalink

I have the same problem on a project that have Node-RED on server and AngularJS on client.

The codes are structured at the same way, server and client folders. 

0
Comment actions Permalink

Hmm... not sure what this has to do with WebStorm. You just need to set up your build procedure accordingly - using whatever tool you like. The only WebStorm limitation here is that you can't have multiple JavaScript Language version set for a project - so you need to choose the 'highest' one: if your client code is written with ES6, and server code uses pure JS, you need setting JavaScript Language version to 'ECMAScript 6'

 

as for JShint, you can have different configuration files (.jshintrc) per project. When validating a JavaScript file IDE will look for .jshintrc file in the file's folder or above, up to the project's root.

0
Comment actions Permalink

Hello Elena,

Thank you for your informations on this. I don't know what are the Kolla issues on it, but in my case have nothing to do with build procedure. 

I'm newbie on Webstorm but I'm sure that there is special features for angular client projects and other special features for node server projects.

My question is: How can I enjoy the best features of Webstorm when I have a projects that needs to keep client and server codes in the same VSC project in a way that the pipeline of my CF/PAAS could handle the continues delivery like a charm.

Best regards,
Bernardo Baumblatt.

0
Comment actions Permalink

>I'm newbie on Webstorm but I'm sure that there is special features for angular client projects and other special features for node server projects.

Yes, WebStorm does provide special support for Angular and for Node.js. But they can happily co-exist in the same project. Do you have any problems keeping them together?

0

Please sign in to leave a comment.