Skip to content

Instantly share code, notes, and snippets.

@robhrt7
Created June 26, 2014 14:57
Show Gist options
  • Save robhrt7/d8ec45b39c27ade30757 to your computer and use it in GitHub Desktop.
Save robhrt7/d8ec45b39c27ade30757 to your computer and use it in GitHub Desktop.

Revisions

  1. robhrt7 created this gist Jun 26, 2014.
    30 changes: 30 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    /*
    Usefull snippent for this kind of custom Grunt functions https://gist.github.com/operatino/bd857f570adaf2872c37
    */

    module.exports = function (grunt) {

    var baseConfig = {
    foo: 'bar'
    };
    grunt.initConfig(baseConfig);

    var someFunc = function(){
    var foo = grunt.config.get('foo');
    };

    grunt.config.merge({
    task: {
    some: [
    '<%= foo %>',
    ]
    },

    otherTask: {
    some: someFunc()
    }
    });

    };