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

Side by Side Diff: pkg/polymer/lib/src/build/messages.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Contains all error and warning messages produced by polymer. 5 /// Contains all error and warning messages produced by polymer.
6 library polymer.src.build.messages; 6 library polymer.src.build.messages;
7 7
8 import 'package:code_transformers/messages/messages.dart'; 8 import 'package:code_transformers/messages/messages.dart';
9 import 'constants.dart'; 9 import 'constants.dart';
10 10
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 places you probably want to override this behavior to prevent duplicate code. 549 places you probably want to override this behavior to prevent duplicate code.
550 To do this, use the following pattern to update your pubspec.yaml: 550 To do this, use the following pattern to update your pubspec.yaml:
551 551
552 transformers: 552 transformers:
553 - polymer: 553 - polymer:
554 inline_stylesheets: 554 inline_stylesheets:
555 web/my_file.css: false 555 web/my_file.css: false
556 556
557 If you would like to hide this warning and keep it inlined, do the same thing 557 If you would like to hide this warning and keep it inlined, do the same thing
558 but assign the value to true. 558 but assign the value to true.
559 ''' 559 ''');
560 );
561 560
562 const DART_SUPPORT_NO_LONGER_REQUIRED = const MessageTemplate( 561 const DART_SUPPORT_NO_LONGER_REQUIRED = const MessageTemplate(
563 const MessageId('polymer', 43), 562 const MessageId('polymer', 43),
564 'No need to include "dart_support.js" by hand anymore.', 563 'No need to include "dart_support.js" by hand anymore.',
565 '"dart_support.js" not necessary', 564 '"dart_support.js" injected automatically',
566 ''' 565 '''
567 The script `packages/web_components/dart_support.js` is still used, but you no 566 The script `packages/web_components/dart_support.js` is still used, but you no
568 longer need to put it in your application's entrypoint. 567 longer need to put it in your application's entrypoint.
569 568
570 In the past this file served two purposes: 569 In the past this file served two purposes:
571 570
572 * to make dart2js work well with the platform polyfills, and 571 * to make dart2js work well with the web_components polyfills, and
573 * to support registering Dart APIs for JavaScript custom elements. 572 * to support registering Dart APIs for JavaScript custom elements.
574 573
575 Now, the code from `dart_support.js` is split in two halves. The half for 574 Now, the code from `dart_support.js` is split in two halves. The half for
576 dart2js is now injected by the polymer transformers automatically during `pub 575 dart2js is now injected by the polymer transformers automatically during `pub
577 build`. The `web_components` package provides an HTML file containing the other 576 build`. The `web_components` package provides an HTML file containing the other
578 half. Developers of packages that wrap JavaScript custom elements (like 577 half. Developers of packages that wrap JavaScript custom elements (like
579 `core_elements` and `paper_elements`) will import that file directly, so 578 `core_elements` and `paper_elements`) will import that file directly, so
580 application developers don't have to worry about it anymore. 579 application developers don't have to worry about it anymore.
581 ''' 580 ''');
582 );
583 581
584 const SCRIPT_INCLUDED_MORE_THAN_ONCE = const MessageTemplate( 582 const SCRIPT_INCLUDED_MORE_THAN_ONCE = const MessageTemplate(
585 const MessageId('polymer', 44), 583 const MessageId('polymer', 44),
586 'The `%-url-%` script was included more than once.', 584 'The `%-url-%` script was included more than once.',
587 'Dart script file included more than once.', 585 'Dart script file included more than once.',
588 ''' 586 '''
589 Duplicate dart scripts often happen if you have multiple html imports that 587 Duplicate dart scripts often happen if you have multiple html imports that
590 include the same script. The simplest workaround for this is to move your dart 588 include the same script. The simplest workaround for this is to move your dart
591 script to its own html file, and import that instead of the script (html imports 589 script to its own html file, and import that instead of the script (html imports
592 are automatically deduped). 590 are automatically deduped).
593 591
594 For example: 592 For example:
595 593
596 <script type="application/dart" src="foo.dart"></script> 594 <script type="application/dart" src="foo.dart"></script>
597 595
598 Should turn into: 596 Should turn into:
599 597
600 <link rel="import" href="foo.html"> 598 <link rel="import" href="foo.html">
601 599
602 And `foo.html` should look like: 600 And `foo.html` should look like:
603 601
604 <script type="application/dart" src="foo.dart"></script> 602 <script type="application/dart" src="foo.dart"></script>
605 '''); 603 ''');
604
605 const WEB_COMPONENTS_NO_LONGER_REQUIRED = const MessageTemplate(
606 const MessageId('polymer', 45),
607 'No need to include "webcomponents.js" by hand anymore.',
608 '"webcomponents.js" injected automatically',
609 '''
610 The script `packages/web_components/webcomponents.js` is still used, but you no
611 longer need to put it in your application's entrypoint.
612
613 The polyfills provided by this file are no longer required in chrome and will
614 automatically be added during `pub build` and `pub serve`.
615 ''');
616
617 const PLATFORM_JS_RENAMED = const MessageTemplate(
618 const MessageId('polymer', 46),
619 '"platform.js" has been renamed to "webcomponents.js".',
620 '"platform.js" renamed to "webcomponents.js".',
621 '''
622 The script `packages/web_components/platform.js` has been renamed to
623 `packages/web_components/webcomponents.js`. This is automatically fixed in
624 `pub serve` and `pub build` but we may remove this functionality in the next
625 breaking version of Polymer.
626
627 In addition, it is no longer required that you include this file directly, as
628 `pub build` and `pub serve` will inject it for you, and its not required when
629 running in dartium with a local server.
630 ''');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698