In the Solution Explorer, review the project structure. In the New ASP.NET Project dialog, select the ASP.NET Core Empty template and click the OK button. In Visual Studio, create a new ASP.NET Web Application. TypeScript files are automatically compiled into JavaScript using default Visual Studio settings and will be our raw material to process using Grunt. To begin, set up a new empty web application and add TypeScript example files. Grunt-contrib-watch: A plugin that watches file activity. Grunt-contrib-uglify: A plugin that minifies JavaScript to reduce size. Grunt-contrib-concat: A plugin that joins files into a single file. Grunt-contrib-jshint: A plugin that reviews JavaScript code quality. Grunt-contrib-clean: A plugin that removes files or directories. The finished example cleans the target deployment directory, combines JavaScript files, checks code quality, condenses JavaScript file content and deploys to the root of your web application. This example uses an empty ASP.NET Core project as its starting point, to show how to automate the client build process from scratch. Grunt is fully supported in Visual Studio. Grunt is a JavaScript task runner that automates script minification, TypeScript compilation, code quality "lint" tools, CSS pre-processors, and just about any repetitive chore that needs doing to support client development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |