我喜欢聚合物 - 我喜欢Dart.Polymer-Dart库几乎是Web开发(imho)发生的最好的事情.
Polymer 1.0已经发布,Google员工正在努力构建相应的Dart包装器,如Dart的Web开发Google Group所述.
很久以前我在Polymer 0.5中建立了一个相当庞大的项目,现在是升级的时候了.由于Polymer 1.0的各种变化,迁移非常困难,并且预计会有很多代码中断.由于Polymer 1.0旨在为将来的版本构建最终的API结构,因此我决定从头开始在Polymer 1.0中构建项目.目前,还没有正式的0.17 Polymer-Dart包装发布,这就是我想利用开发分支'0.17-0-dev-interop-reverse'的原因.
但是,现在,我想知道如何将Polymer-Dart dev项目实际导入到我的Polymer Dart项目中.我正在使用Webstorm 10和Dart 1.11.3.
此外,开发版目前不支持什么?我在某处看到它丢失了变压器 - 情况仍然如此吗?
我的问题基本上是,如何在Dart中使用Polymer 1.0而不必等待正式的0.17版本.
以下pubspec.yaml对我来说很好:
Dart Polymer 1.0.0-rc.2
name: todomvc
description: TodoMVC built with the polymer.dart package
version: 0.15.1
dependencies:
browser: any
polymer: 1.0.0-rc.2
polymer_elements: 1.0.0-rc.2
reflectable: 0.3.2
web_components: ^0.12.0
transformers:
- web_components:
entry_points:
- web/index.html
- test/listorder_test.html
- test/markdone_test.html
- test/mainpage_test.html
- reflectable:
entry_points:
- web/index.dart
- test/listorder_test.dart
- test/markdone_test.dart
- test/mainpage_test.dart
- test/pub_serve:
$include: test/**_test{.*,}.dart
- $dart2js:
minify: true
environment:
sdk: ">=1.2.0 <2.0.0"
Run Code Online (Sandbox Code Playgroud)
有一个TodoMVC应用程序移植到Polymer.dart 0.17(参见分支polymer-0.17和polymer-0.17-behaviors.
| 归档时间: |
|
| 查看次数: |
1216 次 |
| 最近记录: |