GruntJS in Simple English Part5

JSHINT How to install JSHint npm install grunt-contrib-jshint–save-dev Usages of JSHint Ignoring the specific warnings Save the loggings We can defined the various configurations UGLIFY How to install Uglify ? npm install grunt-contrib-uglify –save -dev Usages of Uglify Variable renaming called mangling This configuration will…

GruntJS in Simple English Part4

How we use grunt in Javascript? We used many ways for grunt in Javascript some of the main features are below. Validating Javascript using – jshint Compressing Javascript using – Uglify Cleaning folders and files using – Contrib-Clean (We Checked already in previous part) We…

GruntJS in Simple English Part2

Why we use grunt ? What are the things grunt done ? Validate HTML/JS/CSS Compress CSS and JS Compile the CoffeeScript , TypeScript (mainly nowadays used for Angular2)..etc LESS to CSS Grunt Architecture ? Using package.json file we can described the Gruntjs file configurations. In…

GruntJS in simple English part 1

Introduction:- GruntJs is used for Task Runner. What is Task runner why we use? In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you’ve configured it…

BackboneJS Adding current page(View) refresh

Add icon in template:- 1 2 3 4 5 6 <li> <a id=”refreshPage”> //Adding refresh icon <i class=”fa fa-refresh”></i> </a> </li> Add functionality in model:- 1 2 3 4 5 //Adding refresh functionality $(‘#refreshPage’).click(function(e){ e.preventDefault(); Backbone.history.loadUrl(Backbone.history.fragment); });