npm install -g grunt-cli
npm install
npm install grunt-contrib-concat --save-dev
| module.exports = function(grunt) { | |
| // 1. All configuration goes here | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| concat: { | |
| // 2. Configuration for concatinating files goes here. | |
| } | |
| }); | |
| // 3. Where we tell Grunt we plan to use this plug-in. | |
| grunt.loadNpmTasks('grunt-contrib-concat'); | |
| // 4. Where we tell Grunt what to do when we type "grunt" into the terminal. | |
| grunt.registerTask('default', ['concat']); | |
| }; |
| { | |
| "name": "example-project", | |
| "version": "0.1.0", | |
| "devDependencies": { | |
| "grunt": "~0.4.1" | |
| } | |
| } |