Import and make use of Polymer-Dart 1.0.0 release candidate

别等时光非礼了梦想. 提交于 2019-12-03 17:29:16

With the following pubspec.yaml it works fine for me:

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"

There is an TodoMVC application ported to Polymer.dart 0.17 (see the branches polymer-0.17 and polymer-0.17-behaviors.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!