Created
December 7, 2016 03:36
-
-
Save Kalimaha/9e5e9add442aa91c667d7603f259ff39 to your computer and use it in GitHub Desktop.
Grunt Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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) | |
| }) | |
| } | |
| }()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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']); | |
| } | |
| }()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "grunt-playground", | |
| "version": "0.1.0", | |
| "devDependencies": { | |
| "grunt": "^1.0.1" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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