dev_compiler 0.1.24

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • --

dev_compiler

Build Status Coverage Status

The Dart Dev Compiler (DDC) is an experimental development tool and transpiler. It is at a very early stage today. Its aims include the following:

  • A static checker based on stricter-than-standard-Dart type rules.
  • A modular Dart-to-ES6 transpiler for Dart programs that statically check.

DDC attempts to map to idiomatic EcmaScript 6 (ES6) as cleanly as possible. To do this while cohering to Dart semantics, DDC relies heavily on static type information, static checking, and runtime assertions.

DDC is intended to support a very large subset of Dart. If a program does not statically check, DDC will not result in valid generated code. Our goal is that a program execution (of a valid program) that runs without triggering runtime assertions should run the same on other Dart platforms under checked mode or production mode.

DDC does support untyped Dart code, but it will typically result in less readable and less efficient ES6 output.

DDC has the following project goals:

  • Effective static checking and error detection.
  • A debugging solution for all modern browsers.
  • Readable output.
  • Fast, modular compilation of Dart code.
  • Easy use of generated code from JavaScript.

DDC is still in a very early stage as highlighted by our choice of ES6. ES6 itself is in active development across all modern browsers, but at various stages of support: kangax.github.io/compat-table/es6.

We are targeting the subset of ES6 supported in Chrome.

To try out DDC and/or give feedback, please read our usage page.

dev_compiler changelog

0.1.24

  • workaround breaking change on requestAnimationFrame

0.1.23

  • updates for the latest analyzer
  • removal of deprecated functionality (server mode) in prep for refactoring

0.1.22

  • fixes to support the latest analyzer
  • improvements in compile speed
  • bug fixes on function / closure handling

0.1.21

  • bug fix for dart:js constructor invocation

0.1.20

  • support new StackTrace.current method

0.1.19

  • support for dom libraries (dart:html, etc)

0.1.18

  • dart:typed_data support
  • preliminary TS / Closure output support
  • various runtime typing fixes

0.1.17

  • preliminary node module support
  • support for compiling / serving multiple html files

0.1.16

  • rolled analyzer to 0.27.2-alpha.1
  • fixes for static fields

0.1.15

  • codegen fixes for dart:convert (json decode) and dart:math (max, min)

0.1.14

  • updates to unpin analyzer and move forward to ^0.27.1+2

0.1.13

  • various fixes in js codegen
  • pinned to analyzer 0.26.2+1 to avoid breaking upstream changes

0.1.12

  • fixes for babel
  • fixes toward new js interop

0.1.11

  • moved js runtime files to lib/runtime/dart (dart_runtime.js -> dart/_runtime.js)
  • bug fix to source maps
  • initial support for f-bound quantification patterns

0.1.10

  • added an --html-report option to create a file summarizing compilation issues
  • added a -f alias to the --force-compile command line option
  • removed many info level messages that were informational to the DDC team

0.1.9

0.1.8

  • added a --version command-line option
  • added a new entry-point - dev_compiler - that aliases to dartdevc

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate dev_compiler

2. Use it

The package has the following executables:


$ dartdevc
$ dartdevrun
$ dev_compiler

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dev_compiler: "^0.1.24"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:dev_compiler/devc.dart';
  
Version Uploaded Documentation Archive
0.1.24 Apr 1, 2016 Go to the documentation of dev_compiler 0.1.24 Download dev_compiler 0.1.24 archive
0.1.23 Mar 31, 2016 Go to the documentation of dev_compiler 0.1.23 Download dev_compiler 0.1.23 archive
0.1.22 Mar 15, 2016 Go to the documentation of dev_compiler 0.1.22 Download dev_compiler 0.1.22 archive
0.1.21 Feb 22, 2016 Go to the documentation of dev_compiler 0.1.21 Download dev_compiler 0.1.21 archive
0.1.20 Feb 19, 2016 Go to the documentation of dev_compiler 0.1.20 Download dev_compiler 0.1.20 archive
0.1.19 Feb 19, 2016 Go to the documentation of dev_compiler 0.1.19 Download dev_compiler 0.1.19 archive
0.1.18 Feb 12, 2016 Go to the documentation of dev_compiler 0.1.18 Download dev_compiler 0.1.18 archive
0.1.17 Jan 29, 2016 Go to the documentation of dev_compiler 0.1.17 Download dev_compiler 0.1.17 archive
0.1.16 Jan 28, 2016 Go to the documentation of dev_compiler 0.1.16 Download dev_compiler 0.1.16 archive
0.1.15 Jan 13, 2016 Go to the documentation of dev_compiler 0.1.15 Download dev_compiler 0.1.15 archive

All 26 versions...

Analysis

This package is not analyzed, because it is discontinued.