Can dart produce readable javascript libraries?
As @SetLadd mentioned https://github.com/dart-lang/dev_compiler was built for this purpose (beside others). Some reported that they were able to produce usable output already a while back.
dev_compiler has a commandline tool dartdevc
.
- install DART SDK
- run
pub global activate dev_compiler
- run
pub global run dartdevc -o out main.dart
ordartdevc -o out main.dart
(depending on your path setting).For more details see https://github.com/dart-lang/dev_compiler/blob/master/USAGE.md
The Dart Dev Compiler (DDC) is an experimental development tool and transpiler.
It is at a very early stage today.
Initial commit was on Nov 17, 2014.
DDC attempts to map to idiomatic EcmaScript 6 (ES6) as cleanly as possible.
Maybe someday there will be the day when we can say with confidence: "It is a mature development tool and transpiler" but currently DDC is still in a very early stage.