index.js
function (options) {

        var me = this;
        var filter = options && options.filter;

        return me.custom(function (file, callback) {

            if (!filter || !filter(file)) {

                var iterator = getIterator(file);

                if (iterator) {
                    iterator(file, me, {
                        process: function (file, dependencies) {

                            if (dependencies.length > 0) {
                                me.dependencyMap[ file.path ] = uniqueDependencies(dependencies).map(
                                    function (dependency) {
                                        return dependency.absolute;
                                    }
                                );
                            }

                        }
                    });
                }
            }

            callback();

        });

    }
function (options) {

        var me = this;
        var filter = options && options.filter;

        return me.custom(function (file, callback) {

            if (!filter || !filter(file)) {

                var iterator = getIterator(file);

                if (iterator) {
                    iterator(file, me, {
                        process: function (file, dependencies) {

                            if (dependencies.length > 0) {
                                me.dependencyMap[ file.path ] = uniqueDependencies(dependencies).map(
                                    function (dependency) {
                                        return dependency.absolute;
                                    }
                                );
                            }

                        }
                    });
                }
            }

            callback();

        });

    }
分析文件的依赖

只能分析 html css amd 三种文件

@param {Object} options
@property {Function=} options.filter 文件过滤