lib/grunt/helper.js
function (buildConfig, options) {
        options = options || {};

        var includeLib = options.includeLib;
        if (includeLib === undefined) {
            includeLib = true;
        }

        var src = [];
        if (includeLib) {
            if (buildConfig.nodeProject) {
                src = src.concat([
                    '*.js',
                    '<%=buildConfig.libDirectory%>/**/*.js'
                ]);
            } else if (buildConfig.bowerJSON && buildConfig.bowerJSON.main) {
                src.push(buildConfig.bowerJSON.main);
            }
        }

        if (options.includeBuild) {
            src.push('project/**/*.js');
        }

        if (options.includeTest) {
            src.push('<%=buildConfig.testDirectory%>/**/*spec.js');
        }

        return src;
    }
function (buildConfig, options) {
        options = options || {};

        var includeLib = options.includeLib;
        if (includeLib === undefined) {
            includeLib = true;
        }

        var src = [];
        if (includeLib) {
            if (buildConfig.nodeProject) {
                src = src.concat([
                    '*.js',
                    '<%=buildConfig.libDirectory%>/**/*.js'
                ]);
            } else if (buildConfig.bowerJSON && buildConfig.bowerJSON.main) {
                src.push(buildConfig.bowerJSON.main);
            }
        }

        if (options.includeBuild) {
            src.push('project/**/*.js');
        }

        if (options.includeTest) {
            src.push('<%=buildConfig.testDirectory%>/**/*spec.js');
        }

        return src;
    }
function ( buildConfig , options ) { options = options || { } ; var includeLib = options . includeLib ; if ( includeLib === undefined ) { includeLib = true ; } var src = [ ] ; if ( includeLib ) { if ( buildConfig . nodeProject ) { src = src . concat ( [ '*.js' , '<%=buildConfig.libDirectory%>/**/*.js' ] ) ; } else if ( buildConfig . bowerJSON && buildConfig . bowerJSON . main ) { src . push ( buildConfig . bowerJSON . main ) ; } } if ( options . includeBuild ) { src . push ( 'project/**/*.js' ) ; } if ( options . includeTest ) { src . push ( '<%=buildConfig.testDirectory%>/**/*spec.js' ) ; } return src ; }
Returns the project sources paths.

@function
@memberof! GruntTaskHelper
@private
@param {Object} buildConfig - The grunt buildConfig data
@param {Object} [options] - Any optional options
@param {Boolean} [options.includeLib=false] - True if to include the main library files
@param {Boolean} [options.includeBuild=false] - True if to include build files
@param {Boolean} [options.includeTest=false] - True if to include test files
@returns {Array} The project sources paths
Returns the project sources paths .