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

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

  •  
  •   timqian ·
    timqian · Jul 12, 2016 · 3739 views
    This topic created in 3766 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
    fhefh
    Jul 12, 2016
    1
    这个不错 mark
    zhangshu
    zhangshu
    Jul 14, 2016 via Android
    2
    点个赞
    bigfei
    bigfei
    Jul 14, 2016
    3
    顶一记。。
    Tankpt
    Tankpt
    Jul 14, 2016
    4
    类似 webpack 的那种分析模块么
    timqian
    timqian
    OP
    Jul 14, 2016
    5
    @bigfei 😊
    timqian
    timqian
    OP
    Jul 14, 2016
    6
    @Tankpt 不是哦,只是静态的文本分析
    zhouyg
    zhouyg
    Jul 14, 2016
    7
    看了下,是不是通过检测 import 和 require 的关键字实现的吧。
    timqian
    timqian
    OP
    Jul 14, 2016
    8
    @zhouyg 是的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1352 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 21:26 · PVG 05:26 · LAX 13:26 · JFK 16:26
    ♥ Do have faith in what you're doing.