title: Variables in Grunt.js
body: <p>Is it possible to access in grunt.js to variables of Wildcards outside of wildcards?
  For example my config looks like that:</p>
  
  <pre><code>module.exports = function(grunt) {
  grunt.initConfig({
  globalConfig: grunt.file.readJSON('src/config.json'),
  pkg: grunt.file.readJSON('package.json'),
  concat: {
    options: {
      separator: ';'
    },
    dist: {
      src: ['src/**/*.js'],
      dest: 'dist/&lt;%= pkg.name %&gt;.js'
    }
  },
  uglify: {
    options: {
      banner: '/*! &lt;%= pkg.name %&gt; &lt;%= grunt.template.today("dd-mm-yyyy") %&gt; */\n'
    },
    dist: {
      files: {
        'dist/&lt;%= pkg.name %&gt;.min.js': ['&lt;%= concat.dist.dest %&gt;']
      }
    }
  },
  qunit: {
    files: ['test/**/*.html']
  },
  jshint: {
    files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
    options: {
      // options here to override JSHint defaults
      globals: {
        jQuery: true,
        console: true,
        module: true,
        document: true
      }
    }
  },
  watch: {
    files: ['&lt;%= jshint.files %&gt;'],
    tasks: ['jshint', 'qunit']
  }
  });
  
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-concat');
  
  grunt.registerTask('test', ['jshint', 'qunit']);
  
  grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
  
  };
  </code></pre>
  
  <p>My JSON-file ot globalConfig looks like that:</p>
  
  <pre><code>{
      "buildOrder": ["file1.js", "file2.js", "file3.js"]
  } 
  </code></pre>
  
  <p>How can I access to the buildOrder-Array and use it in concat.dist.src for example?</p>
  
  <p>By wildcard I would access like that:</p>
  
  <pre><code>&lt;%= globalConfig.buildOrder %&gt;
  </code></pre>
  
  <p>But I want to use the array outside of the wildcard because it´s an array:</p>
  
  <pre><code>dist: {
      src: globalConfig.buildOrder,
      dest: 'dist/app.bundle.js'
  } 
  </code></pre>