- Oracle JET for Developers
- Raja Malleswara Rao Pattamsetti
- 173字
- 2021-07-02 22:03:04
Installing Yeoman and Grunt
Yeoman is the scaffolding tool for web applications, and easily kick starts your new web project development, ensuring the best practices are covered. This means that you don’t have to go through the initial project setup tasks you would normally go through to get started; instead, get ready to use application structures along with modular architecture.
Grunt is a JavaScript task runner, a tool used to automatically perform frequent tasks such as minification, compilation, unit testing, linting (the process of running a program that will analyze code for potential errors), and so on. It uses a command-line interface to run custom tasks defined in a file (known as a Gruntfile). Grunt helps in automating the tedious non-functional activities such as minimization, compilation, unit testing, and linting. It's much easier than the method we have been using for years.
We can install them together using the following command:
npm -g install yo grunt-cli
This should complete the installation, as shown in the following screenshot: