![]() ![]() We’ll go with the second option because it’s safer in terms of not making any syntax mistakes. You can create this file manually or use a command line utility to do so. Let’s thus create our project folder and navigate inside: mkdir GusĪ nice thing about the Node Package Manager is that you can declare what libraries you need for the project in a package.json file that you can then commit to your version controlled repository. In order to illustrate the power of Gulp, we will start a small frontend project called Gus and focus on styling issues. It follows that we set up our individual project for which we add Gulp plugins as needed. ![]() This will install Gulp.js gloablly on your VPS and make it available for you in the command line. Since we’re using NPM, all you have to do is run the following command: npm install gulp -g Installing Gulp.js is actually quite simple. If you don’t already, you can get started with this tutorial. For this I assume you already have Node.js installed together with NPM (Node Package Manager). In this tutorial, however, we will install Gulp.js on our VPS and set up a small project to illustrate how easy it is to automate tasks. ![]() A key difference between Gulp and Grunt is that instead of setting up an input/output for each plugin, Gulp pipes through all the set up plugins the source files to then produce the destination files.įor a great article on setting up Grunt.js, this tutorial is a great read. Additionally, it uses Node.js streams which makes it very fast. Gulp.js uses code over configuration for setting up its tasks and this makes it very easy to maintain for the project. Grunt.js is another such popular task runner that many developers are using for automating frontend processes. The purpose of a task runner is to automate tedious tasks that you have to do over and over again in the course of a project. Gulp.js is a task runner that can help your front-end developing experience greatly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |