A compiler/patcher for a JS bridge to your Dart library, using dart2js and analyzer.
Even though calzone.dart is reaching maturity, if you're interested in using it and are having problems using it, please contact mbullington on the Dart Slack.
The best example of this is in the calzone.transformers library, which is our standard library for transformers. Most of these transformers are suggested for use, such as Promises <-> Future, Closure, and Collections.
Add this to your package's pubspec.yaml file:
dependencies: calzone: "^0.4.0"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:calzone/analysis.dart'; import 'package:calzone/builder.dart'; import 'package:calzone/compiler.dart'; import 'package:calzone/patcher.dart'; import 'package:calzone/transformers.dart'; import 'package:calzone/util.dart'; import 'package:calzone/visitor_typescript.dart';
|0.4.0||Dec 11, 2017|
|0.3.0||Apr 6, 2017|
|0.2.1||Aug 27, 2016|
|0.2.0||Aug 27, 2016|
|0.1.8||Jul 6, 2016|
|0.1.7||Feb 19, 2016|
|0.1.6||Feb 4, 2016|
|0.1.5||Dec 24, 2015|
|0.1.4||Dec 24, 2015|
|0.1.3||Dec 23, 2015|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Platform components identified in package:
Strong-mode analysis of
lib/src/compiler/base_transformer.dartfailed with the following error:
line: 31 col: 55
The getter 'types' isn't defined for the class 'TypeTransformer'.
Strong-mode analysis of
lib/src/analysis/visitor.dartfailed with the following error:
line: 45 col: 19
The getter 'fields' isn't defined for the class 'ClassMember'.
Fix further 1 Dart files.
Similar analysis of the following files failed:
Changelog entries help clients to follow the progress in your code.
Fix issues reported by
dartanalyzerreported 3 error(s) and 0 warning(s).
Use constrained dependencies.
pubspec.yamlcontains 1 dependency without version constraints. Specify version ranges for the following dependencies:
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.10.0 <2.0.0|