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

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

Issue 573863003: simple index.html files for folders that contain entry points (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove unused import Created 6 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/build/index_page_builder.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/transformer.dart
diff --git a/pkg/polymer/lib/transformer.dart b/pkg/polymer/lib/transformer.dart
index c367716ec5dbd410f46cecb93ab5c00279a7eea3..67ccbc51e34e7b17674f7283c511f3156e2c10dd 100644
--- a/pkg/polymer/lib/transformer.dart
+++ b/pkg/polymer/lib/transformer.dart
@@ -11,6 +11,7 @@ import 'package:path/path.dart' as path;
import 'src/build/build_filter.dart';
import 'src/build/common.dart';
+import 'src/build/index_page_builder.dart';
import 'src/build/import_inliner.dart';
import 'src/build/linter.dart';
import 'src/build/build_log_combiner.dart';
@@ -118,7 +119,7 @@ List<List<Transformer>> createDeployPhases(
// that is reachable and have the option to lint the rest (similar to how
// dart2js can analyze reachable code or entire libraries).
var phases = options.lint ? [[new Linter(options)]] : [];
- return phases..addAll([
+ phases.addAll([
[new ImportInliner(options)],
[new ObservableTransformer()],
[new ScriptCompactor(options, sdkDir: sdkDir)],
@@ -126,6 +127,10 @@ List<List<Transformer>> createDeployPhases(
[new BuildFilter(options)],
[new BuildLogCombiner(options)],
]);
+ if (!options.releaseMode) {
+ phases.add([new IndexPageBuilder(options)]);
+ }
+ return phases;
}
final RegExp _PACKAGE_PATH_REGEX = new RegExp(r'packages\/([^\/]+)\/(.*)');
« no previous file with comments | « pkg/polymer/lib/src/build/index_page_builder.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698