x-scalpel
https://www.npmjs.com/package/x-scalpel
Last updated 2 years ago by zhangking .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install x-scalpel 
SYNC missed versions from official npm registry.

通过入口文件分析项目依赖,并可视化展现

检测项目中可能废弃的文件或者依赖

https://www.npmjs.com/package/x-scalpel

var scalpel = require('x-scalpel');
var path = require('path');

var config = {
    nodeHaste:false, // node-haste 解析支持
    entry:path.resolve('./js/Go/Entry.js'),
    root: path.resolve('./js'),
    packageJson: path.resolve('./package.json'),
    fileFilter: /^\.|node_modules|.+\.md/,
    fileMatch: function(a,b){
        if (/\.png|\.jpg/.test(a)) {
            return a.replace('@2x','').replace('@3x','') == b;
        } else {
            return a == b;
        }
    }
}

scalpel(config);

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 7
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |