aboutcode-org / aboutcode-org/scancode.io

Create a pipeline to analyze a JavaScript/TypeScript-based app, including webpacked JS

Đang mở
#650 5 bình luận 0 reaction 1 người được giao Được @keshav-space nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
215
Fork
203
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
6

Mô tả

When I use JavaScript in an application, I have a few typical configurations and contexts:

**At development time:**
- I will use npm with a package.json (or more rarely bower) to describe my top level dependencies, and I will save a package-lock.json (or yarn.lock if I use yarn) that contains a frozen set of resolved package deps.
- I may have a directory with nested node_modules that contain my actual dependencies
- I may use webpack to combine one or more libraries together (typically for use in the web browser for frontend code) or some other "minifying" or bundling tool
- I may use TypeScript as source code and transpile it to JS, or I may use other transpilers such as Babel.

**At run time:**
- I may deploy some `node_modules` as-is (typical for a node-based server-side application) or as resources in some other deployed artifacts (seen sometimes in Java)
- I will deploy the transpiled/webpacked code together with a possible .jsmap map file that may contain the original sources and the mapping of transpiled symbols back to their source code equivalent

**My problem** is to find which subset of the devel codebase (the From side) has been deployed (the To side) knowing that the deployed JS may be:

- remixed, minified, transpiled or webpacked
- copied as-is
- The same can be said for JS and CSS, and CSS could be transpiled from SCSS and/or Compass

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.