haskell-language-server/hls-graph/html
Nick Suchecki 411db02883
Add pre-commit hook for cleaning up mixed-line endings (#2679)
* Update pre-commit hook to include changing line endings

* Fix non-lf lines

* Check pre-commit excludes files

* Revert "Check pre-commit excludes files"

This reverts commit 7b9670f863.

* Actually add the exclude to contributing docs

* Fix merge failure with previous patch

* Inadvertently overwrote merge

* Add LF option for stylish-haskell and pre-commit file

Co-authored-by: Anton Latukha <anton.latukha@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-04 14:50:18 +00:00
..
data Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
ts Add pre-commit hook for cleaning up mixed-line endings (#2679) 2022-02-04 14:50:18 +00:00
profile.html Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
README.md Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
shake.js Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00

Shake HTML

HTML files originally used by Shake and now by hls-graph, for profiling build runs.

Files

  • profile.html is the actual profiler.
  • profile-data.js, progress-data.js and metadata.js are files with sample data, matching that generated by the compiler.
  • shake.js is generated from the code in ts.

Development

Before doing any work you need the jQuery, Flot and dgtable JavaScript dependencies. These can be found in the js-jquery, js-flot and js-dgtable repos. Copy the associated JavaScript files into a lib directory, renaming to take away version numbers and .min parts.

To build and test shake.js from html run:

tsc -p ts               # generated shake.js
tslint -p ts            # run the linter

Or, for the one liner:

tsc -p ts && tslint -p ts

To test out the profile.html just open it after doing the above steps.