Skip to content

Commit

Permalink
Update with Polymer and dart 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrancois committed Nov 14, 2013
1 parent 086a90f commit 8879575
Show file tree
Hide file tree
Showing 31 changed files with 340 additions and 1,307 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#Dart Web UI clickstart
#Dart Polymer clickstart

This clickstart demonstrates a basic todo application with Web UI on CloudBees with continuous deployment.
This clickstart demonstrates a basic todo application with Polymer on CloudBees with continuous deployment.

To try, just click on :

<a href="https://grandcentral.cloudbees.com/?CB_clickstart=https://raw.github.com/nfrancois/dart-clickstart/master/clickstart.json"><img src="https://d3ko533tu1ozfq.cloudfront.net/clickstart/deployInstantly.png"/></a>
<a href="https://grandcentral.cloudbees.com/?CB_clickstart=https://raw.github.com/nfrancois/dart-polymer-clickstart/master/clickstart.json"><img src="https://d3ko533tu1ozfq.cloudfront.net/clickstart/deployInstantly.png"/></a>

## Change build

Expand Down
12 changes: 10 additions & 2 deletions app/LICENSE
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
All html and css in this directory is forked from the public domain TodoMVC
project at https://github.com/addyosmani/todomvc/tree/master/template.
LICENSE
-------

All html and css in this directory is public domain, forked from
https://github.com/addyosmani/todomvc/tree/master/template.

All Dart code is subject to the following:
Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
23 changes: 14 additions & 9 deletions app/README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
TodoMVC sample application written with the Dart Web UI package, which includes
web components and MDV templates bound to models.
TodoMVC sample application written with the
[Polymer.dart package][polymer-dart], which includes
custom elements and data binding.

To run this code, launch "web/main.html". If you encounter an error about a
missing "web/out/main.html" file, right click on "build.dart" and select "Run".
To run this code with Dartium, launch `web/index.html`.

Generated code will be created under "web/out/". Any time you edit and save a
To run this code with Chrome/Firefox/etc, run `build.dart` first,
and then right-click on `out/web/index.html` and select 'Run as JavaScript'.

Generated code will be created under "out/web/". Any time you edit and save a
source file, the necessary files will be regenerated automatically. Look at
"build.dart" to see how this works.
`build.dart` to see how this works.

You can also find this example on the development site for the Dart Web UI
package:
View the [source][source] for this example.

https://github.com/dart-lang/web-ui/tree/master/example/todomvc
Please report any [bugs or feature requests][bugs].

[polymer-dart]: http://www.dartlang.org/polymer-dart/
[source]: https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/samples/third_party/todomvc/
[bugs]: http://dartbug.com/new
7 changes: 3 additions & 4 deletions app/build.dart
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:io';
import 'package:web_ui/component_build.dart';
import 'package:polymer/builder.dart';

void main() {
build(new Options().arguments, ['web/index.html']);
void main(args) {
build(entryPoints: ['web/index.html'], options: parseOptions(args));
}
16 changes: 9 additions & 7 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Todo_MVC
description: A sample Dart application with Web UI.
homepage: https://github.com/dart-lang/web-ui/tree/master/example/todomvc
name: todomvc
description: TodoMVC built with the polymer.dart package
version: 0.14.0
dependencies:
web_ui: ">=0.4.20 <0.4.21"
polymer: ">=0.9.0 <0.10.0"
transformers:
- polymer:
entry_points: web/index.html
dev_dependencies:
js: any
benchmark_harness: ">=1.0.2 <1.0.3"
unittest: ">=0.9.0 <0.10.0"
environment:
sdk: ">=0.7.1"
sdk: ">=0.8.10+6 <2.0.0"
171 changes: 0 additions & 171 deletions app/test/expected/todomvc_listorder_shadowdom_test.html.txt

This file was deleted.

Loading

0 comments on commit 8879575

Please sign in to comment.