Next, we will create gulp tasks to minimize html and javascript files in our solution. Go to command prompt (RUN > cmd) and type the below command and press enter, Now, we will install gulp from the command prompt. This will add package.json file in the solution. Select Web node and select npm Configuration file and click Add. To do this, right click project > Add New Item. Let’s first include package.json file to hold the npm packages. A dependency on global installation requires a manual installation on the system. This setup will be really helpfull when we try to setup a new development machine by getting latest version from source control where all the project dependencies are automatically restored by npm package manager based on package.json file. Note – Though we can use the globally installed tool, it is always recommended to use the local installation. As mentioned in the previous article, we need to install Gulp tool locally into our project using npm package manager to start using it. In this quick start article, let’s understand how to use this tool to automate some of the most repetitive tasks using Gulp in Visual Studio 2017. Microsoft included Gulp support into Visual Studio IDE (from VS 2013) for Asp.Net projects. In short, Gulp is a client side task runner tool to automate the repetitive time consuming task in web development. Read What is Gulp? How to Use Gulp?, to understand Gulp tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |