SlideShare a Scribd company logo
Grunt
Session 3
Front-End Web Developer Nanodegree
Front end development gurant
Node.js
• A very powerful JavaScript-based
framework/platform built on Google Chrome's
JavaScript V8 Engine.
• Node.js is an open source, cross-platform
runtime environment.
• It is used to develop I/O intensive web
applications like video streaming sites, single-
page applications, and other real time web
applications.
Front end development gurant
Grunt
• Grunt is a JavaScript Task Runner which can be
used as a command line tool for JavaScript
objects.
• It is a task manager written on top of NodeJS.
• Grunt can perform repetitive tasks very easily,
such as compilation, unit testing, minifying
files, running tests, etc.
• Grunt includes built-in tasks that extend the
functionality of your plugins and scripts.
Grunt
• Grunt can perform repetitive tasks very easily,
such as compilation, unit testing, minifying
files, running tests, etc.
• Grunt includes built-in tasks that extend the
functionality of your plugins and scripts.
Grunt
• Grunt includes built-in tasks that extend the
functionality of your plugins and scripts.
• Using Grunt, you can perform minification,
compilation, and testing of files easily.
• Grunt unifies the workflows of web
developers.
• You can easily work with a new codebase
using Grunt because it contains less
infrastructure.
INSTALLATION OF GRUNT
(WINDOWS)
Step 1: We need NodeJs to run Grunt.
To download NodeJs, open the link https://nodejs.org/en/
Step 2: Next, run the setup to install
the NodeJs on your computer.
Step 2: Next, run the setup to install
the NodeJs on your computer.
Step 2: Next, run the setup to install
the NodeJs on your computer.
Step 3: Next, you need to set
environment variables.
• Path User Variable
• Right click on My Computer.
• Select Properties.
• Next, select Advanced tab and click
Environment Variables.
• Under Environment Variables window,
double click on the PATH as shown in the screen.
• You will get an Edit User Variable window
as shown. Add NodeJs folder path in the Variable
Value field as C:Program Filesnodejsnode_modulesnpm.
If the path is set already for other files,
then you need to put a semicolon(;)
after that and add the NodeJs path as shown below:
Step 3: Next, you need to set
environment variables.
At the end, click the OK button.
Step 3: Next, you need to set
environment variables.
System Variable:
• Under System Variables, double
click on Path as shown in the
following screen.
• You will get an Edit System
Variable window as shown. Add
NodeJs folder path in the Variable.
• You will get an Edit System
Variable window as shown. Add
NodeJs folder path in the Variable
Value field as C:Program
Filesnodejs and click OK.
Step 4: To install Grunt on your system, you need to install
Grunt's command line interface (CLI) globally
• npm install -g grunt-cli
• Running the above command will put the grunt command in your system path,
which makes it to run from any directory.
• Installing the grunt-cli does not install Grunt task runner. The role of the grunt-
cli is to run the version of Grunt which has been installed next to a Gruntfile. It
allows a machine to install multiple versions of Grunt simultaneously.
Step 5: Now, we shall create configuration files
in order to run Grunt.
Step 5: Now, we shall create configuration
files in order to run Grunt.
Gruntfile.js :The Gruntfile.js file is used to define our configuration for Grunt. It is the place where our
settings will be written.
// our wrapper function (required by grunt and its plugins)
// all configuration goes inside this function
module.exports = function(grunt) {
// CONFIGURE GRUNT
grunt.initConfig({
// get the configuration info from package.json file
// this way we can use things like name and version (pkg.name)
pkg: grunt.file.readJSON('package.json'),
// all of our configuration goes here
uglify: {
// uglify task configuration
options: {
},
build: {
}
}
});
// log something
grunt.log.write('Hello world! Welcome to Tutorialspoint!!n');
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify']);
};
Step 5: Now, we shall create configuration
files in order to run Grunt.
Contact me
Engmarwaayad@gmail.com
https://eg.linkedin.com/in/marwa-ayad-mohamed-0a405215
https://www.facebook.com/WTM.Cairo/

More Related Content

PDF
GruntJS + Wordpress
PPTX
Grunt to automate JS build
PPTX
Grunt and Bower
PPTX
Backup, Restore, and Disaster Recovery
PDF
Production Ready Javascript With Grunt
PDF
Introduction to Express and Grunt
GruntJS + Wordpress
Grunt to automate JS build
Grunt and Bower
Backup, Restore, and Disaster Recovery
Production Ready Javascript With Grunt
Introduction to Express and Grunt

What's hot (20)

DOCX
Automation m ysql_and_customer_photo
ODP
Introduction-to-Ubuntu-2013
PDF
Guide to the Open Source Desktop
PDF
Deep dive-oz
PDF
Yeoman + Grunt + Bower - Google I/O Rewind Sri Lanka
PDF
Writing your own browser reload functionality
PPTX
Strategies for Backing Up MongoDB
PPTX
Virtual Machine LAMP on Windows
PDF
Hybrid (Windows + Linux) Apps with Docker Swarm
ODP
Integrating the Ruby Debugger into YaST
PDF
Clojure web dev history
PDF
Postgis setup
PDF
PPT
Chrome OS axel mérida
PPT
Google Chrome OS
PDF
Cloud Compt
PDF
Docker use dockerfile
PDF
Using filesystem capabilities with rsync
PPTX
Docker lightning
PDF
Juju presentation
Automation m ysql_and_customer_photo
Introduction-to-Ubuntu-2013
Guide to the Open Source Desktop
Deep dive-oz
Yeoman + Grunt + Bower - Google I/O Rewind Sri Lanka
Writing your own browser reload functionality
Strategies for Backing Up MongoDB
Virtual Machine LAMP on Windows
Hybrid (Windows + Linux) Apps with Docker Swarm
Integrating the Ruby Debugger into YaST
Clojure web dev history
Postgis setup
Chrome OS axel mérida
Google Chrome OS
Cloud Compt
Docker use dockerfile
Using filesystem capabilities with rsync
Docker lightning
Juju presentation
Ad

Similar to Front end development gurant (20)

PPTX
Modern Development Tools
PDF
Front end workflow with yeoman
PDF
Workshop 3: JavaScript build tools
PPTX
Protractor Testing Automation Tool Framework / Jasmine Reporters
PPTX
Improving build solutions dependency management with webpack
PPT
TechMentor Fall, 2011 - Automating User Data Migration Duing Windows 7 Migrat...
PPTX
Mastering node.js, part 1 - introduction
PDF
GeoServer Developers Workshop
PDF
Automate your WordPress Workflow with Grunt.js
PPTX
Prosit google-cloud
PPTX
Introduction to NodeJS JSX is an extended Javascript based language used by R...
PDF
Deploying software at Scale
PPTX
3 Things Everyone Knows About Node JS That You Don't
PDF
GruntJS
PDF
How to Install Node.js and NPM on Windows and Mac?
PDF
Magento Docker Setup.pdf
PDF
Development Setup of B-Translator
PDF
OpenStack Murano introduction
PPTX
Introduction to using Grunt & Bower with WordPress theme development
PDF
Install nagios
Modern Development Tools
Front end workflow with yeoman
Workshop 3: JavaScript build tools
Protractor Testing Automation Tool Framework / Jasmine Reporters
Improving build solutions dependency management with webpack
TechMentor Fall, 2011 - Automating User Data Migration Duing Windows 7 Migrat...
Mastering node.js, part 1 - introduction
GeoServer Developers Workshop
Automate your WordPress Workflow with Grunt.js
Prosit google-cloud
Introduction to NodeJS JSX is an extended Javascript based language used by R...
Deploying software at Scale
3 Things Everyone Knows About Node JS That You Don't
GruntJS
How to Install Node.js and NPM on Windows and Mac?
Magento Docker Setup.pdf
Development Setup of B-Translator
OpenStack Murano introduction
Introduction to using Grunt & Bower with WordPress theme development
Install nagios
Ad

More from marwa Ayad Mohamed (9)

PPTX
2017 arab wic marwa ayad machine learning
PPTX
PPTX
software testing
PPTX
Front end development session1
PPTX
Tensorflow windows installation
PPTX
Tensorflow
PPTX
Mobile gpu cloud computing
PPTX
Create first-web application-googleappengine
PDF
 Introduction google cloud platform
2017 arab wic marwa ayad machine learning
software testing
Front end development session1
Tensorflow windows installation
Tensorflow
Mobile gpu cloud computing
Create first-web application-googleappengine
 Introduction google cloud platform

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
history of c programming in notes for students .pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
L1 - Introduction to python Backend.pptx
PDF
AI in Product Development-omnex systems
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPT
Introduction Database Management System for Course Database
PPTX
ai tools demonstartion for schools and inter college
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Which alternative to Crystal Reports is best for small or large businesses.pdf
history of c programming in notes for students .pptx
Odoo POS Development Services by CandidRoot Solutions
ISO 45001 Occupational Health and Safety Management System
Operating system designcfffgfgggggggvggggggggg
Design an Analysis of Algorithms I-SECS-1021-03
L1 - Introduction to python Backend.pptx
AI in Product Development-omnex systems
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Online Work Permit System for Fast Permit Processing
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo Companies in India – Driving Business Transformation.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Adobe Illustrator 28.6 Crack My Vision of Vector Design
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
How to Migrate SBCGlobal Email to Yahoo Easily
Introduction Database Management System for Course Database
ai tools demonstartion for schools and inter college

Front end development gurant

  • 1. Grunt Session 3 Front-End Web Developer Nanodegree
  • 3. Node.js • A very powerful JavaScript-based framework/platform built on Google Chrome's JavaScript V8 Engine. • Node.js is an open source, cross-platform runtime environment. • It is used to develop I/O intensive web applications like video streaming sites, single- page applications, and other real time web applications.
  • 5. Grunt • Grunt is a JavaScript Task Runner which can be used as a command line tool for JavaScript objects. • It is a task manager written on top of NodeJS. • Grunt can perform repetitive tasks very easily, such as compilation, unit testing, minifying files, running tests, etc. • Grunt includes built-in tasks that extend the functionality of your plugins and scripts.
  • 6. Grunt • Grunt can perform repetitive tasks very easily, such as compilation, unit testing, minifying files, running tests, etc. • Grunt includes built-in tasks that extend the functionality of your plugins and scripts.
  • 7. Grunt • Grunt includes built-in tasks that extend the functionality of your plugins and scripts. • Using Grunt, you can perform minification, compilation, and testing of files easily. • Grunt unifies the workflows of web developers. • You can easily work with a new codebase using Grunt because it contains less infrastructure.
  • 9. Step 1: We need NodeJs to run Grunt. To download NodeJs, open the link https://nodejs.org/en/
  • 10. Step 2: Next, run the setup to install the NodeJs on your computer.
  • 11. Step 2: Next, run the setup to install the NodeJs on your computer.
  • 12. Step 2: Next, run the setup to install the NodeJs on your computer.
  • 13. Step 3: Next, you need to set environment variables. • Path User Variable • Right click on My Computer. • Select Properties. • Next, select Advanced tab and click Environment Variables. • Under Environment Variables window, double click on the PATH as shown in the screen. • You will get an Edit User Variable window as shown. Add NodeJs folder path in the Variable Value field as C:Program Filesnodejsnode_modulesnpm. If the path is set already for other files, then you need to put a semicolon(;) after that and add the NodeJs path as shown below:
  • 14. Step 3: Next, you need to set environment variables. At the end, click the OK button.
  • 15. Step 3: Next, you need to set environment variables. System Variable: • Under System Variables, double click on Path as shown in the following screen. • You will get an Edit System Variable window as shown. Add NodeJs folder path in the Variable. • You will get an Edit System Variable window as shown. Add NodeJs folder path in the Variable Value field as C:Program Filesnodejs and click OK.
  • 16. Step 4: To install Grunt on your system, you need to install Grunt's command line interface (CLI) globally • npm install -g grunt-cli • Running the above command will put the grunt command in your system path, which makes it to run from any directory. • Installing the grunt-cli does not install Grunt task runner. The role of the grunt- cli is to run the version of Grunt which has been installed next to a Gruntfile. It allows a machine to install multiple versions of Grunt simultaneously.
  • 17. Step 5: Now, we shall create configuration files in order to run Grunt.
  • 18. Step 5: Now, we shall create configuration files in order to run Grunt.
  • 19. Gruntfile.js :The Gruntfile.js file is used to define our configuration for Grunt. It is the place where our settings will be written. // our wrapper function (required by grunt and its plugins) // all configuration goes inside this function module.exports = function(grunt) { // CONFIGURE GRUNT grunt.initConfig({ // get the configuration info from package.json file // this way we can use things like name and version (pkg.name) pkg: grunt.file.readJSON('package.json'), // all of our configuration goes here uglify: { // uglify task configuration options: { }, build: { } } }); // log something grunt.log.write('Hello world! Welcome to Tutorialspoint!!n'); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); // Default task(s). grunt.registerTask('default', ['uglify']); }; Step 5: Now, we shall create configuration files in order to run Grunt.