HelloZeroNet / HelloZeroNet/ZeroNet

Generate Coffeescript source maps

Đang mở
#390 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It would be great if we could get this working for debugging the resulting JS in Firefox. [Some](http://ryanflorence.com/2012/coffeescript-source-maps/) [links](http://tarantsov.com/WorkflowThu/source-maps-with-coffeescript-and-uglify-js/).

Currently we're reading the compiler output on stdout:

``` python
compiler = subprocess.Popen(command, shell=True, stderr=subprocess.STDOUT,stdout=subprocess.PIPE)
out = compiler.stdout.read().decode("utf8")
```

So we would need to switch to using temporary files in order to get the map file out, and then making sure it gets served up - or at least stored locally. And we would also need to think about how to stop that leaking with published sites.

Any thoughts?

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by tracing the Python compiler subprocess that reads compiler output from stdout. Determine how temporary files could expose the CoffeeScript source map and how the map should be served or stored. Done means Firefox can use the generated map for debugging without leaking it through published sites.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
coffeescript, python
Lĩnh vực
build-system, devtools
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.