@alifd/fusion-collector
Collect info for fusion based project
Last updated 2 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: '', //
    cmd_type: '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
    "basicPackageVersion": "1.15.2",// 主体包版本
    "orignTemplate": "@alifd/fusion-design-pro", // 项目来源于哪个模版
    // 只有内网才收集
    "dependencies": {}, // {...pkg.dependencies, ...pkg.peerDependencies }, 其中@alife/next, @alifd/next, @icedesign/base的版本数据需要来源于node_modules
    "nextComponents": {}, // 基础组件的使用分类
}

Current Tags

  • 1.3.0-beta                                ...           beta (5 months ago)
  • 1.3.5                                ...           latest (2 months ago)

22 Versions

  • 1.3.5                                ...           2 months ago
  • 1.3.4                                ...           2 months ago
  • 1.3.3                                ...           4 months ago
  • 1.3.2                                ...           5 months ago
  • 1.3.1                                ...           5 months ago
  • 1.3.0                                ...           5 months ago
  • 1.3.0-beta                                ...           5 months ago
  • 1.2.5                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |