Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delneg/source-map-sharp
https://github.com/mozilla/source-map for .NET, re-written in F#
https://github.com/delneg/source-map-sharp
dotnet fsharp js sourcemaps
Last synced: 3 months ago
JSON representation
https://github.com/mozilla/source-map for .NET, re-written in F#
- Host: GitHub
- URL: https://github.com/delneg/source-map-sharp
- Owner: delneg
- License: other
- Created: 2020-12-23T00:12:16.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T16:26:12.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T07:26:00.519Z (4 months ago)
- Topics: dotnet, fsharp, js, sourcemaps
- Language: F#
- Homepage:
- Size: 221 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Source Map Sharp
![Tests status](https://github.com/delneg/source-map-sharp/workflows/source-map-sharp-action/badge.svg?branch=master)
## AboutThis is a direct rewrite (meaning, the goal was not to write 'idiomatic' F# code, but to resemble inital JS code as close as possible) of source map generation tool https://github.com/mozilla/source-map
Which is originally written in JS. The initial purpose is to use it with https://github.com/fable-compiler/Fable project
See https://github.com/fable-compiler/Fable/issues/2166 - "Bring back source map support"
UPD: The issue above was closed, and this project is now being used by Fable to generated Source Maps. Hooray!
### Current support status
+ Fable - working fine
+ .NET - working fine### Running tests
dotnet:
`dotnet test`
Fable (js):
```
dotnet tool restore
pnpm install
pnpm test
```### Files - status
Legend:
๐ - Everything fine
๐คจ - Everything fine except minor details (or not important right now details)
๐ด - Not needed / won't do
๐จ - Should be done, but isn't
๐คฏ - Done but no tested
1. ๐ `ArraySet` - Done & tested
2. ๐ `Base64` - Done & tested
3. ๐ `Base64-vlq` - Done & tested
4. ๐ด `binary-search` - Not done, probably won't need
5. ๐คจ `mapping-list` - Done, not tested specifically, coverage shows 95% via other tessts
6. ๐ด `mapping.wasm` - Not done, probably won't need
7. ๐ด `read-wasm-browser` - Not done, probably won't need
8. ๐ด `read-wasm` - Not done, probably won't need
9. ๐จ `source-map-consumer` - Not done, Don't know if will need it or not at the moment
10. ๐ `source-map-generator` - Done except the `consumer` parts, tested except `consumer` parts
11. ๐ `source-node` - Done except the `consumer` parts, tested except `consumer` parts
12. ๐ด `url-browser` - Not done, probably won't need
13. ๐ด `url` - Not done, probably won't need
14. ๐คจ `util` - Done partially, what's needed
15. ๐ด `wasm` - Not done, probably won't need#### "SourceMapConsumer"-related stuff
Not done at the moment:
1. SourceNode `fromStringWithSourceMap` function
2. SourceMapGenerator `fromSourceMap` function
3. SourceMapConsumer module
4. SourceMapNode, SourceMapGenerator - `consumer`-related tests### Help needed
1. Source map consumer
2. Documentation & usage examples
3. Decisions on WASM stuff - Rust repo https://github.com/fitzgen/source-map-mappings