Skip to content

Instantly share code, notes, and snippets.

@Kalimaha
Created December 7, 2016 03:36
Show Gist options
  • Select an option

  • Save Kalimaha/9e5e9add442aa91c667d7603f259ff39 to your computer and use it in GitHub Desktop.

Select an option

Save Kalimaha/9e5e9add442aa91c667d7603f259ff39 to your computer and use it in GitHub Desktop.
Grunt Playground
(function () {
'use strict';
module.exports = function (grunt) {
grunt.registerTask('easy_task', 'I am trying hard here.', function () {
console.log('Hallo, World!');
grunt.option('x', 42)
})
}
}())
(function () {
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.task.loadTasks('./tasks');
grunt.registerTask('default', ['easy_task', 'simple_task']);
}
}())
{
"name": "grunt-playground",
"version": "0.1.0",
"devDependencies": {
"grunt": "^1.0.1"
}
}
(function () {
'use strict';
module.exports = function (grunt) {
grunt.registerTask('simple_task', 'I am trying hard here.', function () {
console.log('Hallo, Grunt!');
console.log('I received: ' + grunt.option('x'));
})
}
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment