GruntJS is a JavaScript task runner written on top of NodeJS. It can be used to automate repetitive tasks for your application, such as minifying, compiling, unit testing, linting, and more; from
with minimal effort.
Why use a task launcher?
In a word: automation. The less work you have to do when doing repetitive tasks like minification, compilation, unit testing, linting, etc., the easier your work becomes. Once you’ve configured it with the Gruntfile, the task executor can do most of this chore for you – and your team – with little or no effort. The Grunt ecosystem is huge and growing every day. With literally hundreds of plugins to choose from, you can use Grunt to automate almost anything with minimal effort. If someone else hasn’t created what you need, creating and publishing your own Grunt plugin in npm is a breeze.
How To Install
Before proceeding with the installation, you need to update the local package index. This can be done with the following command:
sudo apt-get update
Then install curl with:
sudo apt-get install curl
Next, add the NodeJS 8.x package repository:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Then we need to install NodeJS and NPM along with development tools:
sudo apt-get install build-essential nodejs
Now check if NodeJS and NPM are really working on your server:
node --version && npm --version
#5.x.x
#v8.x.x
Then you need to Install Grunt:
sudo npm install -g grunt-cli
Then Ryou can run the command (described below) to check the version installed
grunt --version
#grunt-cli v1.2.0
Install Grunt into a new project
To install grunt you need to add two files. It need to be added to your project directory: package.json and Gruntfile.js.
- package.json: This file is used by NPM to store meta-data for projects published as NPM modules.
- Gruntfile.js: This file is named Gruntfile.js or Gruntfile.coffee`and is used to configure or define tasks, as well as to load Grunt plugins.
Change to the root directory of your package:
cd /path/to/project
Then you need to run the special command to create package.json file:
sudo npm init
Next, you will be asked to answer some questions, you need to answer them in the command line questionnaire. After creating the package.json file, install Grunt as a development dependency:
sudo npm install grunt --save-dev
Then you need to create the Gruntfile.js file:
nano Gruntfile.js
Then remains two things. First, you need to register a simple default task:
var grunt = require('grunt');
grunt.registerTask('default', 'default task description', function(){
console.log('hello world');
});
Second, run the default task:
grunt
That’s all. The procedure to install GruntJS is finished.
IverCare Pharmacy: IverCare Pharmacy – IverCare Pharmacy
Yuks?k RTP slotlar: Yeni az?rbaycan kazino sayt? – Pinco kazino
Situs judi resmi berlisensi: Promo slot gacor hari ini – Situs judi resmi berlisensi
Onlayn kazino Az?rbaycan: Yeni az?rbaycan kazino sayti – Etibarli onlayn kazino Az?rbaycanda
Yeni az?rbaycan kazino sayt? Canl? krupyerl? oyunlar Onlayn rulet v? blackjack
Situs togel online terpercaya: Situs togel online terpercaya – Abutogel login
Slot game d?i thu?ng: Khuy?n mai GK88 – Khuy?n mai GK88
Promo slot gacor hari ini: Bandar bola resmi – Beta138
Khuy?n mai GK88: Khuy?n mai GK88 – Ca cu?c tr?c tuy?n GK88
jollibet app jollibet Jollibet online sabong
Jackpot togel hari ini: Link alternatif Abutogel – Jackpot togel hari ini
Jackpot togel hari ini: Link alternatif Abutogel – Jackpot togel hari ini
https://gkwinviet.company/# GK88
Situs judi resmi berlisensi: Live casino Mandiribet – Live casino Mandiribet
Swerte99 app: Swerte99 casino – Swerte99 slots
Abutogel login Situs togel online terpercaya Bandar togel resmi Indonesia
Beta138: Login Beta138 – Login Beta138
Link vao GK88 m?i nh?t: Dang ky GK88 – Link vao GK88 m?i nh?t
Online casino Jollibet Philippines: jollibet login – Jollibet online sabong
Swerte99: Swerte99 bonus – Swerte99 slots
Jiliko casino Jiliko login Jiliko slots
jollibet app: jollibet casino – 1winphili
Online betting Philippines: jollibet login – jollibet login
https://gkwinviet.company/# Ca cu?c tr?c tuy?n GK88
Swerte99: Swerte99 slots – Swerte99 online gaming Pilipinas