JavaScript dependency management

后端 未结 6 1918
清歌不尽
清歌不尽 2020-12-08 08:06

I am currently maintaining a large number of JS files and the dependency issue is growing over my head. Right now I have each function in a separate file and I manually main

6条回答
  •  庸人自扰
    2020-12-08 08:31

    JSAnalyse uses static code analysis to detect dependencies between javascript files: http://jsanalyse.codeplex.com/

    It also allows you to define the allowed dependencies and to ensure it during the build, for instance. Of course, it cannot detect all dependencies because javascript is dynamic interpretet language which is not type-safe, like already mentioned. But it at least makes you aware of your javascript dependency graph and helps you to keep it under control.

提交回复
热议问题