@alifd/fusion-collector
Collect info for fusion based project
Last updated 4 months ago by aboutblank .
MIT · Original npm · Tarball · package.json
$ cnpm install @alifd/fusion-collector 
SYNC missed versions from official npm registry.

fusion-collector

fusion project 的静态分析器, 用来提取 next 组件的使用情况

使用方法:

import { collectDetail } from '@alifd/fusion-collector';
collectDetail({
    rootDir: process.cwd(), // 项目根地址
    kit: 'ice-scripts', // 统计的来源
    kitVersion: '', //
    cmdType: 'dev' // 触发环节 默认为build
});

测试

tnpm  i -g @alifd/fusion-collector

DEBUG=next:collect tnpm run compile-test

收集信息:

  • package.json
  • 已安装的模块版本信息
  • src 下每个 js/jsx 文件的 import / require 的模块
  • 对引入的 next 基本组件/业务组件/第三方模块 使用情况的分析

对象结构:

// 返回结构
{
    collectDetail
};

// collectDetail
{
    "project_id": "", // ssh格式的gitUrl
    "author": "游鹿", // 项目作者
    "repoName": "@alifd/fusion-collector", // 仓库名
    "gitUrl": "",
    "kit": "fie-toolkit-next",
    "kitVersion": "",
    "projectName": "", // 项目名称 来自packge.json
    "description": "", // 项目描述 来自packge.json
    "basicPackage": "@alifd/next", // 主体包名称 
    "basicPackageVersion": "1.15.2"// 主体包版本
}

Current Tags

  • 1.2.5                                ...           latest (4 months ago)

15 Versions

  • 1.2.5                                ...           4 months ago
  • 1.2.4                                ...           6 months ago
  • 1.2.3                                ...           6 months ago
  • 1.2.2                                ...           6 months ago
  • 1.2.1                                ...           6 months ago
  • 1.2.0                                ...           6 months ago
  • 1.0.1                                ...           7 months ago
  • 1.0.0                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 1
This Week 147
This Month 501
Last Day 73
Last Week 333
Last Month 1,984
Dependencies (4)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |