Sorry for not blogging for a while, have been busy with joining a new company. I wanted to finish up the blog post series with Running Grunt to test your JavaScript application. In this post I will cover using Jasmine and Phantom.js. I have been a big fan of phantomjs a headless browser to test […]
Using Grunt JavaScript Minification We will continue from our last blog post on Grunt: using less and css minification to JavaScript minification using a plugin called Uglify. JSHint To begin we will use a linting tool called jshint, to help us in taming our JavaScript with some static code analysis to flags suspicious usage. We […]
In this post I will go through using grunt for our css minification task and also showcase another preprocessor for css called less. First off lets start with a express 4 application, we will create it with Visual Studio NTVS, the latest RC contains a template for express 4. We can install grunt by command […]
Visual Studio 2013 provides Task Runner Explorer for us to run Grunt & Gulp task right inside of Visual Studio. One can download Task Runner Explorer from Visual Studio Gallery Once installed we can now use npm to install grunt for us in our node web project.
1 2 3 4 5 6 |
npm install grunt --save-dev //the command above will install into our package.json file "devDependencies": { "grunt": "^0.4.5" } |
We now will create a new Gruntfile.js […]
So what is Grunt? Grunt is a task-based command line build tool for JavaScript projects. If you are in the .NET world you may have written some bat files to automate some task, e.g copy some files from one directory to the other. Or have used Psake or MSBuild
1 2 3 |
@echo off xcopy C:\source\*.txt C:\target exit |
And if you come from […]