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

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

Issue 723393003: update to polymer js 0.5.1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final tweaks Created 6 years 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
Index: pkg/polymer/lib/transformer.dart
diff --git a/pkg/polymer/lib/transformer.dart b/pkg/polymer/lib/transformer.dart
index 6bcfbbeba569ce143ddcddedb4a14fc12b1368f8..f9573fe06015b6c3c58013706e3c8468ffe32fdd 100644
--- a/pkg/polymer/lib/transformer.dart
+++ b/pkg/polymer/lib/transformer.dart
@@ -44,7 +44,16 @@ TransformOptions _parseSettings(BarbackSettings settings) {
bool csp = args['csp'] == true; // defaults to false
bool injectBuildLogs =
!releaseMode && args['inject_build_logs_in_output'] != false;
- bool injectPlatformJs = args['inject_platform_js'] != false;
+ bool injectWebComponentsJs = true;
+ if (args['inject_platform_js'] != null) {
+ print(
+ 'Deprecated polymer transformer option `inject_platform_js`. This has '
+ 'been renamed `inject_web_components_js` to match the new file name.');
+ injectWebComponentsJs = args['inject_platform_js'] != false;
+ }
+ if (args['inject_webcomponents_js'] != null) {
+ injectWebComponentsJs = args['inject_webcomponents_js'] != false;
+ }
return new TransformOptions(
entryPoints: readFileList(args['entry_points']),
inlineStylesheets: _readInlineStylesheets(args['inline_stylesheets']),
@@ -53,7 +62,7 @@ TransformOptions _parseSettings(BarbackSettings settings) {
releaseMode: releaseMode,
lint: _parseLintOption(args['lint']),
injectBuildLogsInOutput: injectBuildLogs,
- injectPlatformJs: injectPlatformJs);
+ injectWebComponentsJs: injectWebComponentsJs);
}
// Lint option can be empty (all files), false, true, or a map indicating

Powered by Google App Engine
This is Rietveld 408576698