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

Unified Diff: pkg/polymer/lib/src/transform.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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 | « pkg/polymer/lib/src/messages.dart ('k') | pkg/polymer/lib/src/transform/code_extractor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/transform.dart
diff --git a/pkg/polymer/lib/src/transform.dart b/pkg/polymer/lib/src/transform.dart
index d2bf910dc97981ef9a76b8cda89ce591c26e060e..561dd499d8a2556676f073fe9ae41da7189fcc51 100644
--- a/pkg/polymer/lib/src/transform.dart
+++ b/pkg/polymer/lib/src/transform.dart
@@ -11,17 +11,21 @@ import 'transform/code_extractor.dart';
import 'transform/import_inliner.dart';
import 'transform/script_compactor.dart';
import 'transform/polyfill_injector.dart';
+import 'transform/common.dart';
export 'transform/code_extractor.dart';
export 'transform/import_inliner.dart';
export 'transform/script_compactor.dart';
export 'transform/polyfill_injector.dart';
+export 'transform/common.dart' show TransformOptions;
-/** Phases to deploy a polymer application. */
-var phases = [
- [new InlineCodeExtractor()],
- [new ObservableTransformer()],
- [new ImportedElementInliner()],
- [new ScriptCompactor()],
- [new PolyfillInjector()]
-];
+/** Creates phases to deploy a polymer application. */
+List<List<Transformer>> createDeployPhases(TransformOptions options) {
+ return [
+ [new InlineCodeExtractor(options)],
+ [new ObservableTransformer()],
+ [new ImportedElementInliner(options)],
+ [new ScriptCompactor(options)],
+ [new PolyfillInjector(options)]
+ ];
+}
« no previous file with comments | « pkg/polymer/lib/src/messages.dart ('k') | pkg/polymer/lib/src/transform/code_extractor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698