OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
6 * Logic to validate that developers are correctly using Polymer constructs. | 6 * Logic to validate that developers are correctly using Polymer constructs. |
7 * This is mainly used to produce warnings for feedback in the editor. | 7 * This is mainly used to produce warnings for feedback in the editor. |
8 */ | 8 */ |
9 library polymer.src.build.linter; | 9 library polymer.src.build.linter; |
10 | 10 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 return !_invalidTagNames.containsKey(name); | 537 return !_invalidTagNames.containsKey(name); |
538 } | 538 } |
539 | 539 |
540 const String _RED_COLOR = '\u001b[31m'; | 540 const String _RED_COLOR = '\u001b[31m'; |
541 const String _MAGENTA_COLOR = '\u001b[35m'; | 541 const String _MAGENTA_COLOR = '\u001b[35m'; |
542 const String _NO_COLOR = '\u001b[0m'; | 542 const String _NO_COLOR = '\u001b[0m'; |
543 | 543 |
544 const String USE_INIT_DART = | 544 const String USE_INIT_DART = |
545 'To run a polymer applications, you need to call "initPolymer". You can ' | 545 'To run a polymer applications, you need to call "initPolymer". You can ' |
546 'either include a generic script tag that does this for you:' | 546 'either include a generic script tag that does this for you:' |
547 '\'<script type="application/dart">import "package:polymer/init.dart";' | 547 '\'<script type="application/dart">export "package:polymer/init.dart";' |
548 '</script>\' or add your own script tag and call that function. ' | 548 '</script>\' or add your own script tag and call that function. ' |
549 'Make sure the script tag is placed after all HTML imports.'; | 549 'Make sure the script tag is placed after all HTML imports.'; |
550 | 550 |
551 const String USE_DART_JS = | 551 const String USE_DART_JS = |
552 'To run a polymer applications in Dartium, make sure to include' | 552 'To run a polymer applications in Dartium, make sure to include' |
553 '\'<script src="packages/browser/dart.js"></script>\' in your page'; | 553 '\'<script src="packages/browser/dart.js"></script>\' in your page'; |
554 | 554 |
555 const String BOOT_JS_DEPRECATED = | 555 const String BOOT_JS_DEPRECATED = |
556 '"boot.js" is now deprecated. Instead, you can initialize your polymer ' | 556 '"boot.js" is now deprecated. Instead, you can initialize your polymer ' |
557 'application by calling "initPolymer()" in your main. If you don\'t have a ' | 557 'application by calling "initPolymer()" in your main. If you don\'t have a ' |
558 'main, then you can include our generic main by adding the following ' | 558 'main, then you can include our generic main by adding the following ' |
559 'script tag to your page: \'<script type="application/dart">import ' | 559 'script tag to your page: \'<script type="application/dart">export ' |
560 '"package:polymer/init.dart";</script>\'. Additionally you need to ' | 560 '"package:polymer/init.dart";</script>\'. Additionally you need to ' |
561 'include: \'<script src="packages/browser/dart.js"></script>\' in the page ' | 561 'include: \'<script src="packages/browser/dart.js"></script>\' in the page ' |
562 'too. Make sure these script tags come after all HTML imports.'; | 562 'too. Make sure these script tags come after all HTML imports.'; |
OLD | NEW |