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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/generator/PolymerSample.java

Issue 337073003: Update samples and editor template to use polymer 0.11.0 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/polymer/CHANGELOG.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. 2 * Copyright (c) 2013, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 18 matching lines...) Expand all
29 "Sample web application using the polymer library [mobile friendly]", 29 "Sample web application using the polymer library [mobile friendly]",
30 "Create a sample web application using the Polymer (polymer) library"); 30 "Create a sample web application using the Polymer (polymer) library");
31 31
32 List<String[]> templates = new ArrayList<String[]>(); 32 List<String[]> templates = new ArrayList<String[]>();
33 33
34 templates.add(new String[] { 34 templates.add(new String[] {
35 "pubspec.yaml", 35 "pubspec.yaml",
36 "name: {name}\n" 36 "name: {name}\n"
37 + "description: A sample Polymer application\n" 37 + "description: A sample Polymer application\n"
38 + "dependencies:\n" 38 + "dependencies:\n"
39 + " polymer: \">=0.11.0-dev.2 <0.12.0\"\n" 39 + " polymer: \">=0.11.0 <0.12.0\"\n"
40 + "transformers:\n" 40 + "transformers:\n"
41 + "- polymer:\n" 41 + "- polymer:\n"
42 + " entry_points: web/{name.lower}.html\n"}); 42 + " entry_points: web/{name.lower}.html\n"});
43 templates.add(new String[] {"build.dart", "@webui/build.dart"}); 43 templates.add(new String[] {"build.dart", "@webui/build.dart"});
44 templates.add(new String[] {"web/{name.lower}.html", "@webui/webapp.html"}); 44 templates.add(new String[] {"web/{name.lower}.html", "@webui/webapp.html"});
45 templates.add(new String[] {"web/{name.lower}.css", "@webui/webapp.css"}); 45 templates.add(new String[] {"web/{name.lower}.css", "@webui/webapp.css"});
46 templates.add(new String[] {"web/clickcounter.dart", "@webui/clickcounter.da rt"}); 46 templates.add(new String[] {"web/clickcounter.dart", "@webui/clickcounter.da rt"});
47 templates.add(new String[] {"web/clickcounter.html", "@webui/clickcounter.ht ml"}); 47 templates.add(new String[] {"web/clickcounter.html", "@webui/clickcounter.ht ml"});
48 48
49 setTemplates(templates); 49 setTemplates(templates);
50 setMainFile("web/{name.lower}.html"); 50 setMainFile("web/{name.lower}.html");
51 } 51 }
52 52
53 @Override 53 @Override
54 public boolean isValidProjectName(String name) { 54 public boolean isValidProjectName(String name) {
55 return !name.equalsIgnoreCase("polymer"); 55 return !name.equalsIgnoreCase("polymer");
56 } 56 }
57 57
58 } 58 }
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698