0% found this document useful (0 votes)
439 views

Automation With Grunt JS

Grunt is a JavaScript task runner that helps automate mundane, repetitive tasks like minifying files, compiling Sass to CSS, concatenating files, etc. It uses plugins called grunt-contrib plugins to perform tasks. The Gruntfile.js file is used to configure plugins and register tasks. There are over 6000 plugins available to add functionality like image optimization, notification of changes, file watching, cleaning files, and more. Users can also create their own plugins and publish them for others to use.

Uploaded by

vijay kumar
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
439 views

Automation With Grunt JS

Grunt is a JavaScript task runner that helps automate mundane, repetitive tasks like minifying files, compiling Sass to CSS, concatenating files, etc. It uses plugins called grunt-contrib plugins to perform tasks. The Gruntfile.js file is used to configure plugins and register tasks. There are over 6000 plugins available to add functionality like image optimization, notification of changes, file watching, cleaning files, and more. Users can also create their own plugins and publish them for others to use.

Uploaded by

vijay kumar
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Presence of _______ is must is to proceed ahead with installation of grunt


--Node.js

2. Registering of tasks happens within


--Gruntfile

3. The 3 main actions to be performed in gruntfile include


--Configurations , loading plug-ins, Register tasks

4. Which takes care of performing the repetitive mundane work in Grunt.js?


--Task runner

5. Grunt.js helps with simplification through automation. Is this true or false ?


--True

6. The number of plug-ins available in grunt is around


--6000+

7. CSS with superpowers' : This refers to _____________


--SASS

8. Grunt does not allow users to add their custom developed plug-ins and publish
them to npm.
--False

9. Grunt prefers____ model approach to coding.


--Configuration

10.How can one reduce the size of images using grunt?


-- grunt-contrib-imagemin

11.After installing any plug-ins, the file which would reflect the dependency
changes automatically___________
--package.json

12.Which plug-in takes care of sending automatic notifications?


--grunt-notify

13.Which grunt plug-in would be of use if you would like to monitor set of .js
files and take any appropriate actions if any changes happens to them?
--Watch

14.After installing the required plug-ins, the next activity would be _______
--Add the plug-in in gruntfile through loadNpmTasks

15.Which plug-in assists with cleaning of the unwanted folders & files
--grunt-contrib-clean

16.The grunt plug-in to remove any unwanted CSS within project is _________
--grunt-uncss

17.Banner in gruntfile becomes the __________


--Commented Header of the file

18.The final step of creating a plug-in is


--publish

19.Which plug-in assists with injection of bower dependency code ?


--grunt-wiredep
20.Can one create his own plug-in and add to the grunt library ?
--Yes

21.While installing grunt.js, the g in "$ npm install grunt-cli -g" represents
--Global

22.Which of these is not an example of the operations of the Task runner?


--Prefixing CSS

23.While installing grunt.js, the cli in "$ npm install grunt-cli -g" represents
--Command line interface

24.Officially maintained plug-ins carry prefix _________


contrib

25.Which plug-in helps with revisioning the files ?


--grunt-filerev

26.SASS expands for


--Syntactically Awesome Stylesheets

You might also like