Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: pkg/polymer/lib/builder.dart

Issue 28053008: Transformer plugin for polymer. This will make it possible (one day) to use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/polymer/lib/deploy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/builder.dart
diff --git a/pkg/polymer/lib/builder.dart b/pkg/polymer/lib/builder.dart
index 590155a46395db93758c40fb3e81d4e374f5f145..d4bacbb0be571761b60593981a1e6de07cb604d9 100644
--- a/pkg/polymer/lib/builder.dart
+++ b/pkg/polymer/lib/builder.dart
@@ -86,6 +86,8 @@ import 'package:args/args.dart';
import 'src/build/linter.dart';
import 'src/build/runner.dart';
+import 'src/build/common.dart';
+
import 'transformer.dart';
@@ -142,7 +144,7 @@ Future lint({List<String> entryPoints, CommandLineOptions options,
String currentPackage, Map<String, String> packageDirs}) {
if (options == null) options = _options;
if (currentPackage == null) currentPackage = readCurrentPackageFromPubspec();
- var linterOptions = new TransformOptions(currentPackage, entryPoints);
+ var linterOptions = new TransformOptions(entryPoints);
var formatter = options.machineFormat ? jsonFormatter : consoleFormatter;
var linter = new Linter(linterOptions, formatter);
return runBarback(new BarbackOptions([[linter]], null,
@@ -199,7 +201,7 @@ Future deploy({List<String> entryPoints, CommandLineOptions options,
if (options == null) options = _options;
if (currentPackage == null) currentPackage = readCurrentPackageFromPubspec();
var barbackOptions = new BarbackOptions(
- createDeployPhases(new TransformOptions(currentPackage, entryPoints)),
+ (new PolymerTransformerGroup(new TransformOptions(entryPoints))).phases,
options.outDir, currentPackage: currentPackage,
packageDirs: packageDirs);
return runBarback(barbackOptions)
« no previous file with comments | « no previous file | pkg/polymer/lib/deploy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698