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
flutter packages get.
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 on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
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:
Changelog entries help clients to follow the progress in your code.
Use constrained dependencies.
pubspec.yamlcontains 1 dependency without version constraints. Specify version ranges for the following dependencies:
Fix analysis and formatting issues.
Analysis or formatting checks reported 9 errors 22 hints.
Strong-mode analysis of
lib/src/analysis/analyzer.dartfailed with the following error:
line: 16 col: 80
The getter 'name' isn't defined for the class 'Directive'.
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'.
Similar analysis of the following files failed:
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|