Rating:
List Price:
Discount: 0.00
Sale Price:
(as of 12/31/1969 16:00 PST)Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply to the purchase of this product..
Check Price Right Now!
Availability:
Free Shipping: unspecified
Product Description
Details
No features available.
New Post has been published on http://cloudifica.com/grunt-js-cookbook/
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality
Anya is LIVE right now
FREE
Free to watch • No registration required • HD streaming
Here is very interesting post about using NPM as alternative to Gulp.js and Grunt.js. Making things simple is definitely the right way so I must try pure NPM for my next JS based project. Tip.
Java
Clojure at Scale
Clojure is language that totally scared me for a long time but it seems that it's slowly shifting to the main stream. Evidence for that is the following post about switching from Python to Clojure.
Whats New In Java 8
I'm still not fully familiar with Java 8 features and when learning them I found article as the best overview available. Tip
A quick disclaimer: I no longer use grunt. I have changed to gulp because I prefer its code over configuration approach. However I think grunt still has great value for someone who wants the advantages of automation without all the details of JavaScript.
This is not an introduction to grunt, that is very well explained on the official site. Grunt is a task runner for JavaScript. That sounds very simple, you can use grunt to do tasks for you, however isn't all programming running prescribed tasks or programs. I would say yes and so what is the use of grunt?Â
Grunt is nothing but a neat way to package tasks which are added as plugins. Essentially grunt has no value without the plugins that its community has generated. With these grunt is wonderful.
So with that here is a whirlwind intro to some of the grunt tasks I have made use of.
Concatenation contrib-concat
With this plugin you can automatically gather JavaScript/CSS saved in several locations and combine them to one file. This is best practise for performance by reducing HTTP request and speeding page load time.Â
Minification contrib-uglify, css-min
There are plugins to minify JS, CSS and HTML. This decreases the sizes of assets by removing comments, white space and several other things that human readers find very useful. This reduced size of files to be served is also helpful in speeding up a page load time.
Watch contrib-watch
Automate the automated tasks, this task watches for changes to files, upon which it will run other grunt tasks. Save any changes in your js files and a new minified version will be ready almost instantaneously
Linting jslintÂ
Existing for JavaScript and CSS these task will check the quality of code you are writing, The value of jslint at catching mistakes is really huge.
Some More interesting task
The above are a powerful toolkit on there own, this next selection are more for the  curious
load-grunt-tasks
Efficiency or Laziness, whichever it is, it becomes contagious once grunt is running. This task saves you from having to individually add every grunt plugin to your grunt file. And will instead load every node package that is prefixed with 'grunt-'
time-grunt
This will record the time that each task takes to run. If a task is build of several tasks it will tell you the percentage time on each. So far this is more interesting than useful. It might provide early warning if you are minifying lots of images that you have too many as the time creeps up.
grunt-newer
This task provides can prefix any other task and will only run that task again if the files it is acting upon have changed since the last time the task was run. A useful way of speeding things up.
localtunnel-me
Not a grunt task but a great addition to the development workflow. Previously I was pushing a version of my project to heroku to show it to other people. This meant that my project was littered with commits such as 'test this new thing on phone'. Now this is all replaced with localtunnel. Grunt has several plugins that allow you to spin up a server with your project. with local tunnel you can take a locally running server and with no knowledge of how make it available the world over with one command
$ lt --port 8000
your local server port 800 will be made available at 'random.localtunnel.me' A really great serviceÂ
Yeoman describes itself as the 'The web's scaffolding tool for modern webapps'. When I first looked at yeoman, a few months ago, I very quickly dismissed it as not for me. The main reason I did is it looked liked a magical wrapper around Grunt and Bower. Calling itself a scaffolding tool I thought I would hide many of the implementation details that I thought I should be learning. I also foresaw very little benefit atop mastering grunt and bower individually, which looked like they were doing the majority of the work.
Well I have started looking again and I have changed my mind drastically. I decided I needed to look again after watch this excellent talk from Paul Irish. Yeoman fulfils one role fantastically and that role is as a demonstrator. When pushing yourself to learn new techniques I find myself looking at a lot of other peoples code. This is great but most of the time you find yourself looking at a finished product. This means that the implementation details such as build steps are hidden around all the actual code. Trying to learn about simple grunt tasks by looking at the JQuery repository will feel overwhelming. Even though you might be aware that you should only need to look through their grunt file you are never sure if something they are running in the gruntfile is dependent on a particular structure elsewhere in the repo. This is were Yeoman steps in, Yeoman's scaffolds are all the unglamorous bits of a project with all the excitement of the application stripped away.
Being a scaffolding system it is opinionated, many of the individual scaffolds are not overly flexible. Being a relative newcomer however studying these scaffolds has ended up me arriving at the realisation that the workflows promoted in these proto applications are superior to what I was managing on my own. I now make frequent use of Yeomans webapp scaffold.
Getting started with yeoman.
Read about grunt, bower, node & npm. You don't need a deep understanding of any one of these. However understanding what each is for can be useful when working out how the whole thing fits together.Â
With that out of the way lets get started. Assuming that npm is up and running yeoman is installed using
npm install -g yo
yo then becomes a global command. Running yo brings up a helpful list of options which will walk you through things like finding and installing a generator (project template) as well as building a new project from a template.
All yeoman generators are separate packages and can be installed directly with npm. To install the webapp generator and use it.
npm install -g generator-webapp
mkdir newProject
cd newProject
yo webapp
Next steps
Open the project and have a look around. Even if you never use a generator in one of your own projects you will learn a lot.
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality
Anya is LIVE right now
FREE
Free to watch • No registration required • HD streaming