爱意满满的作品展示区。
timqian
10.02D

js-code-structure: 分析 js 项目中文件的依赖关系

  •  
  •   timqian ·
    timqian · Jul 12, 2016 · 3409 views
    This topic created in 3617 days ago, the information mentioned may be changed or developed.

    What is js-code-structure?

    js-code-structure 是一个分析 js 项目中文件的依赖关系的工具。

    Why js-code-structure?

    在网页上展示文件间的依赖关系(被依赖与依赖别人)可以帮助你直观的了解项目的结构。

    How to use js-code-structure?

    Install

    $ npm install -g js-code-structure

    Usage

    1. 打开命令行
    2. 来到项目根目录
    3. 输入 jss

    一个描述项目结构的 html 将会在浏览器中打开

    例子: appium 项目的代码结构:

    源码: https://github.com/timqian/js-code-structure

    8 replies    2016-07-14 17:23:25 +08:00
    fhefh
        1
    fhefh  
       Jul 12, 2016
    这个不错 mark
    zhangshu
        2
    zhangshu  
       Jul 14, 2016 via Android
    点个赞
    bigfei
        3
    bigfei  
       Jul 14, 2016
    顶一记。。
    Tankpt
        4
    Tankpt  
       Jul 14, 2016
    类似 webpack 的那种分析模块么
    timqian
        5
    timqian  
    OP
       Jul 14, 2016
    @bigfei 😊
    timqian
        6
    timqian  
    OP
       Jul 14, 2016
    @Tankpt 不是哦,只是静态的文本分析
    zhouyg
        7
    zhouyg  
       Jul 14, 2016
    看了下,是不是通过检测 import 和 require 的关键字实现的吧。
    timqian
        8
    timqian  
    OP
       Jul 14, 2016
    @zhouyg 是的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 19:12 · PVG 03:12 · LAX 12:12 · JFK 15:12
    ♥ Do have faith in what you're doing.