Wednesday, 24 May 2017

Good practices for Gulp and NPM

I am beginning in the NodeJS world, I am using it to develop applications on AngularJS. So, I chose gulp to make better my workflow. I wrote a pair of scripts that fill a folder named dist with all my html and css files, and the JavaScript files are minify in the process. Anyway, I did all those things in a not very orthodox way. I don't know what are the good practices. What are the advantages for the way I install the npm packages, Global and Local?, I mean I am using lite-server, gulp, babel, etc. But why these dependencies have to be installed as local?. I am building a module that I want to use in all my projects as dependency. How can I make my own repo?

Finally, my main question is: Could you help me with a guide or tutorial to use the best practices?

Thanks in advance



via HerberColop

No comments:

Post a Comment