Commit Graph

12 Commits

Author SHA1 Message Date
sigmund@google.com f809a49118 Add linter by default for polymer's pub-build, also cleans up the linter code.
Now that barback support listening for log messages, we can remove the logging
hooks we temporarily added in our linter.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//112843004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31110 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 21:04:19 +00:00
sigmund@google.com fcb74c7a3f Add a build filter (only necessary HTML files are emitted) and logic to use .min.js by default, but keeps it disabled until the dart2js/mirrors bugs are addressed (dartbug.com/14720).
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//61193002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30164 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 18:39:47 +00:00
sigmund@google.com 97d8be2f42 Fix builder.dart - avoid breaking users, print a warning instead and continue
with a default.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//52753003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29588 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 21:30:57 +00:00
sigmund@google.com 73d3885f63 Fixes to build.dart after Options() was removed
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//50603010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29584 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 20:45:50 +00:00
whesse@google.com 40c7befb81 Remove uses of Options in polymer lint and deploy tools.
BUG=
R=sgjesse@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//52883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29569 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 17:44:08 +00:00
sigmund@google.com 4d357c5148 Improves how to initialize polymer apps and fixes polymer build and linter to
match Dartium semantics (Issue 14238). In particular:
  - only one script tag is allowed per document
  - initPolymer can be call from init.dart or the users main method, the build
    process knows how to call the user's main given the new Dartium semantics.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//27903006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28971 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 23:30:23 +00:00
jmesserly@google.com 821e6fec2a Several fixes here to fix bugs and get our tests into a reliable state:
* customElementsReady future. We don't fire Polymer.onReady until custom elements are ready too

* deploy without dart.js by default. This is the expected deployment mode for real apps. Also make sure we test this on DRT and compiler==js, so Pete can change Dartium without causing build breaks :)

* stop using "package:observe" test "performMicrotaskCheckpoint" hack in Polymer. This was too blunt; it affected timing of all async operations. Instead we only trigger Observable.dirtyCheck. It's using the latest Zone API as well.

* mixin ChangeNotifier explicitly. This is mainly to fix a quirk of our test environment (test server loads "packages/polymer" in untransformed mode, causing it to pick up Observable instead of ChangeNotifier).

* fix change watchers to blacklist "attributeChanged" :)

* fix serializeValue to only use the runtime value

* fix deserializeValue to get the right Type for dart:core types

* cleanup prop_attr_reflection_test to use mutation observer

R=blois@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//29823005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28956 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:49:51 +00:00
sigmund@google.com 580d807b66 Transformer plugin for polymer. This will make it possible (one day) to use
polymer transformers in pub-build and pub-serve by writing:

transformers:
  - polymer:
      entry_points: web/index.html

I say one day because there are still a few pending bugs on the vm and the pub
side of things that need to be resolved before this works.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//28053008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28942 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 19:21:52 +00:00
sethladd@google.com fcae6eb88d clarify that deploy is optional
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//26192002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28325 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 21:05:21 +00:00
kevmoo@j832.com 05609779d3 pkg/polymer builder.dart doc tweaks
.then() expects a function w/ one param

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//24426003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27903 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 19:08:54 +00:00
sigmund@google.com ba97c385d4 Rearranges the polymer package now that the old compiler is gone.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23757034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27462 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 00:18:09 +00:00
sigmund@google.com 26b11cf6f9 Switch polymer's build.dart to use the new linter. This CL does the following
changes:
  - deletes the old compiler entirely and switches over to the new linter.
  - adds a new build_helper.dart (to replace components_build.dart)
  - defines 'lint' and 'deploy' methods that can be called from build.dart
  - includes options to limit the scope of what's an entrypoint, and to override
    the currentPackage and packageDirs
  - includes the '--deploy' flag to address: dartbug.com/13050

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23898009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27403 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 20:38:28 +00:00