From 3c85ab1eb0ef0dbaa8fde675e1a8eb2774bb68d8 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 12 Feb 2016 18:14:17 +0100 Subject: [PATCH 01/10] update angular2 dependencies to beta.6 --- templates/web-angular/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web-angular/pubspec.yaml b/templates/web-angular/pubspec.yaml index 0526689b..efcedd06 100644 --- a/templates/web-angular/pubspec.yaml +++ b/templates/web-angular/pubspec.yaml @@ -3,7 +3,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.3 + angular2: 2.0.0-beta.6 browser: ^0.10.0 transformers: - angular2: From 5fec51e2dfae2ff26df0905d990b0b81394b91c4 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 12 Feb 2016 18:19:40 +0100 Subject: [PATCH 02/10] add dart_to_js_script_rewriter dependencies --- templates/web-angular/pubspec.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/web-angular/pubspec.yaml b/templates/web-angular/pubspec.yaml index efcedd06..f03c62b5 100644 --- a/templates/web-angular/pubspec.yaml +++ b/templates/web-angular/pubspec.yaml @@ -5,6 +5,8 @@ environment: dependencies: angular2: 2.0.0-beta.6 browser: ^0.10.0 + dart_to_js_script_rewriter: ^0.1.0 + transformers: - angular2: platform_directives: @@ -12,3 +14,4 @@ transformers: platform_pipes: - 'package:angular2/common.dart#COMMON_PIPES' entry_points: web/main.dart +- dart_to_js_script_rewriter From 715b395cc30b4b386d642dce255f06b01ea1f9de Mon Sep 17 00:00:00 2001 From: Kevin Segaud Date: Fri, 12 Feb 2016 18:27:21 +0100 Subject: [PATCH 03/10] delete empty line From c42e3e99775ac342e7ed09cf18d94f7210ed701d Mon Sep 17 00:00:00 2001 From: Kevin Segaud Date: Fri, 12 Feb 2016 18:29:07 +0100 Subject: [PATCH 04/10] add description --- templates/web-angular/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web-angular/pubspec.yaml b/templates/web-angular/pubspec.yaml index f03c62b5..6c47d1cb 100644 --- a/templates/web-angular/pubspec.yaml +++ b/templates/web-angular/pubspec.yaml @@ -1,4 +1,5 @@ name: __projectName__ +description: A Dart app that uses Angular 2 version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' @@ -6,7 +7,6 @@ dependencies: angular2: 2.0.0-beta.6 browser: ^0.10.0 dart_to_js_script_rewriter: ^0.1.0 - transformers: - angular2: platform_directives: From 3aec99d37e029615e3f1a2becd7d1a48737ca897 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 12 Feb 2016 19:01:48 +0100 Subject: [PATCH 05/10] remove all library keyword --- bin/stagehand.dart | 2 -- lib/generators/console_full.dart | 2 -- lib/generators/console_simple.dart | 2 -- lib/generators/package_simple.dart | 2 -- lib/generators/server_appengine.dart | 2 -- lib/generators/server_shelf.dart | 2 -- lib/generators/web_angular.dart | 2 -- lib/generators/web_polymer.dart | 2 -- lib/generators/web_simple.dart | 2 -- lib/src/cli_app.dart | 2 -- lib/src/common.dart | 1 - lib/stagehand.dart | 1 - templates/console-full/lib/__projectName__.dart | 1 - templates/console-full/test/__projectName___test.dart | 2 -- templates/package-simple/lib/__projectName__.dart | 1 - templates/package-simple/lib/src/__projectName___base.dart | 2 -- templates/package-simple/test/__projectName___test.dart | 2 -- templates/server-appengine/lib/memcache.dart | 4 +--- templates/web-polymer/lib/main_app.dart | 2 -- templates/web-polymer/web/index.dart | 1 - test/cli_test.dart | 2 -- test/common_test.dart | 2 -- test/generators_test.dart | 2 -- test/mock_test.dart | 2 -- test/validate_templates.dart | 2 -- 25 files changed, 1 insertion(+), 46 deletions(-) diff --git a/bin/stagehand.dart b/bin/stagehand.dart index 9ad7b984..33b7a7f8 100644 --- a/bin/stagehand.dart +++ b/bin/stagehand.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.cli; - import 'dart:async'; import 'dart:io' as io; diff --git a/lib/generators/console_full.dart b/lib/generators/console_full.dart index 645205ac..2c89fb58 100644 --- a/lib/generators/console_full.dart +++ b/lib/generators/console_full.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.console.full; - import '../stagehand.dart'; import '../src/common.dart'; import 'console_full_data.dart'; diff --git a/lib/generators/console_simple.dart b/lib/generators/console_simple.dart index 91393275..2b7df279 100644 --- a/lib/generators/console_simple.dart +++ b/lib/generators/console_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.console.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'console_simple_data.dart'; diff --git a/lib/generators/package_simple.dart b/lib/generators/package_simple.dart index 17c2aa41..af05de88 100644 --- a/lib/generators/package_simple.dart +++ b/lib/generators/package_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.package.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'package_simple_data.dart'; diff --git a/lib/generators/server_appengine.dart b/lib/generators/server_appengine.dart index bca95b0c..6614f3c9 100644 --- a/lib/generators/server_appengine.dart +++ b/lib/generators/server_appengine.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.server.appengine; - import 'server_appengine_data.dart'; import '../stagehand.dart'; import '../src/common.dart'; diff --git a/lib/generators/server_shelf.dart b/lib/generators/server_shelf.dart index 9067fca9..6102d9bb 100644 --- a/lib/generators/server_shelf.dart +++ b/lib/generators/server_shelf.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.server.shelf; - import '../stagehand.dart'; import '../src/common.dart'; import 'server_shelf_data.dart'; diff --git a/lib/generators/web_angular.dart b/lib/generators/web_angular.dart index 65c4233d..dc381c36 100644 --- a/lib/generators/web_angular.dart +++ b/lib/generators/web_angular.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.angular; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_angular_data.dart'; diff --git a/lib/generators/web_polymer.dart b/lib/generators/web_polymer.dart index 71fe721c..74bfb691 100644 --- a/lib/generators/web_polymer.dart +++ b/lib/generators/web_polymer.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.polymer; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_polymer_data.dart'; diff --git a/lib/generators/web_simple.dart b/lib/generators/web_simple.dart index 45166478..2d5db18b 100644 --- a/lib/generators/web_simple.dart +++ b/lib/generators/web_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_simple_data.dart'; diff --git a/lib/src/cli_app.dart b/lib/src/cli_app.dart index 868ebda2..2cd956e5 100644 --- a/lib/src/cli_app.dart +++ b/lib/src/cli_app.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.cli_app; - import 'dart:async'; import 'dart:convert' show JSON; import 'dart:io' as io; diff --git a/lib/src/common.dart b/lib/src/common.dart index ef2f9f05..a031784c 100644 --- a/lib/src/common.dart +++ b/lib/src/common.dart @@ -5,7 +5,6 @@ /** * Some utility methods for stagehand. */ -library stagehand.utils; import 'dart:convert' show UTF8; diff --git a/lib/stagehand.dart b/lib/stagehand.dart index 3d05a789..c89105e0 100644 --- a/lib/stagehand.dart +++ b/lib/stagehand.dart @@ -21,7 +21,6 @@ * * to create a new instance of the `webapp` template in a `foobar` directory. */ -library stagehand; import 'dart:async'; import 'dart:convert'; diff --git a/templates/console-full/lib/__projectName__.dart b/templates/console-full/lib/__projectName__.dart index a9715f99..8c5efa47 100644 --- a/templates/console-full/lib/__projectName__.dart +++ b/templates/console-full/lib/__projectName__.dart @@ -2,7 +2,6 @@ // is governed by a BSD-style license that can be found in the LICENSE file. /// The __projectName__ library. -library __projectName__; int calculate() { return 6 * 7; diff --git a/templates/console-full/test/__projectName___test.dart b/templates/console-full/test/__projectName___test.dart index 6aaa4ab4..8f62516d 100644 --- a/templates/console-full/test/__projectName___test.dart +++ b/templates/console-full/test/__projectName___test.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.test; - import 'package:__projectName__/__projectName__.dart'; import 'package:test/test.dart'; diff --git a/templates/package-simple/lib/__projectName__.dart b/templates/package-simple/lib/__projectName__.dart index 9a1492e7..3297ab64 100644 --- a/templates/package-simple/lib/__projectName__.dart +++ b/templates/package-simple/lib/__projectName__.dart @@ -4,7 +4,6 @@ /// The __projectName__ library. /// /// This is an awesome library. More dartdocs go here. -library __projectName__; // TODO: Export any libraries intended for clients of this package. diff --git a/templates/package-simple/lib/src/__projectName___base.dart b/templates/package-simple/lib/src/__projectName___base.dart index e7477307..4a10f7b6 100644 --- a/templates/package-simple/lib/src/__projectName___base.dart +++ b/templates/package-simple/lib/src/__projectName___base.dart @@ -3,8 +3,6 @@ // TODO: Put public facing types in this file. -library __projectName__.base; - /// Checks if you are awesome. Spoiler: you are. class Awesome { bool get isAwesome => true; diff --git a/templates/package-simple/test/__projectName___test.dart b/templates/package-simple/test/__projectName___test.dart index 5563f7d3..4ca0ca46 100644 --- a/templates/package-simple/test/__projectName___test.dart +++ b/templates/package-simple/test/__projectName___test.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.test; - import 'package:__projectName__/__projectName__.dart'; import 'package:test/test.dart'; diff --git a/templates/server-appengine/lib/memcache.dart b/templates/server-appengine/lib/memcache.dart index fd0a0ea3..23e44280 100644 --- a/templates/server-appengine/lib/memcache.dart +++ b/templates/server-appengine/lib/memcache.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.memcache; - import 'dart:async'; import 'package:appengine/appengine.dart'; @@ -45,7 +43,7 @@ Future write(Map valueMap, StringSink buffer) async { } /// Helper method to read a set of values from the memcache. -Future read(Iterable keys, StringSink buffer ) async { +Future read(Iterable keys, StringSink buffer) async { var memcache = context.services.memcache; for (var key in keys) { diff --git a/templates/web-polymer/lib/main_app.dart b/templates/web-polymer/lib/main_app.dart index f2be3a6e..270a938c 100644 --- a/templates/web-polymer/lib/main_app.dart +++ b/templates/web-polymer/lib/main_app.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. @HtmlImport('main_app.html') -library __projectName__.lib.main_app; - import 'dart:html'; import 'package:polymer_elements/paper_input.dart'; diff --git a/templates/web-polymer/web/index.dart b/templates/web-polymer/web/index.dart index 90c36fa4..ce2c7efb 100644 --- a/templates/web-polymer/web/index.dart +++ b/templates/web-polymer/web/index.dart @@ -1,6 +1,5 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library my_project.web.index; import 'package:__projectName__/main_app.dart'; import 'package:polymer/polymer.dart'; diff --git a/test/cli_test.dart b/test/cli_test.dart index 5e437f16..24d0b4a9 100644 --- a/test/cli_test.dart +++ b/test/cli_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @TestOn('vm') -library stagehand.cli_test; - import 'dart:async'; import 'dart:convert' show JSON; import 'dart:io'; diff --git a/test/common_test.dart b/test/common_test.dart index 682389b0..162fd727 100644 --- a/test/common_test.dart +++ b/test/common_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.common_test; - import 'package:stagehand/src/common.dart'; import 'package:test/test.dart'; diff --git a/test/generators_test.dart b/test/generators_test.dart index b9dcaaf4..92a0bc77 100644 --- a/test/generators_test.dart +++ b/test/generators_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.generators_test; - import 'package:stagehand/stagehand.dart'; import 'package:test/test.dart'; diff --git a/test/mock_test.dart b/test/mock_test.dart index 579b2b83..2771812f 100644 --- a/test/mock_test.dart +++ b/test/mock_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.mock_test; - import 'dart:async'; import 'dart:convert'; diff --git a/test/validate_templates.dart b/test/validate_templates.dart index 6f39f90c..4a2bba45 100644 --- a/test/validate_templates.dart +++ b/test/validate_templates.dart @@ -5,8 +5,6 @@ // This is explicitly not named with _test.dart extension so it is not run as // part of the normal test process @TestOn('vm') -library stagehand.test.validate_templates; - import 'dart:io'; import 'package:grinder/grinder.dart' hide fail; From 5a29ab377a43c86b9466101ef1f3ac699bae2e02 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 12 Feb 2016 19:22:56 +0100 Subject: [PATCH 06/10] new generator data --- lib/generators/console_full_data.dart | 107 +++++++++++----------- lib/generators/package_simple_data.dart | 26 +++--- lib/generators/server_appengine_data.dart | 55 ++++++----- lib/generators/web_angular_data.dart | 14 +-- lib/generators/web_polymer_data.dart | 51 +++++------ 5 files changed, 126 insertions(+), 127 deletions(-) diff --git a/lib/generators/console_full_data.dart b/lib/generators/console_full_data.dart index b44f849a..b4175a62 100644 --- a/lib/generators/console_full_data.dart +++ b/lib/generators/console_full_data.dart @@ -5,78 +5,77 @@ const List data = const [ ".gitignore", "text", - """IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLnBhY2thZ2VzCi5wd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tc3R5bGUg +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFRoZSBf +X3Byb2plY3ROYW1lX18gbGlicmFyeS4KCmludCBjYWxjdWxhdGUoKSB7CiAgcmV0dXJuIDYgKiA3 +Owp9Cg==""", "pubspec.yaml", "text", - """bmFtZTogX19wcm9qZWN0TmFtZV9fCnZlcnNpb246IDAuMC4xCmRlc2NyaXB0aW9uOiBBIHNhbXBs -ZSBjb21tYW5kLWxpbmUgYXBwbGljYXRpb24uCiNhdXRob3I6IF9fYXV0aG9yX18gPGVtYWlsQGV4 -YW1wbGUuY29tPgojaG9tZXBhZ2U6IGh0dHBzOi8vd3d3LmV4YW1wbGUuY29tCgplbnZpcm9ubWVu -dDoKICBzZGs6ICc+PTEuMC4wIDwyLjAuMCcKCiNkZXBlbmRlbmNpZXM6CiMgIGZvb19iYXI6ICc+ -PTEuMC4wIDwyLjAuMCcKCmRldl9kZXBlbmRlbmNpZXM6CiAgdGVzdDogJz49MC4xMi4wIDwwLjEz + """bmFtZTogX19wcm9qZWN0TmFtZV9fCnZlcnNpb246IDAuMC4xCmRlc2NyaXB0aW9uOiBBIHNhbXBs +ZSBjb21tYW5kLWxpbmUgYXBwbGljYXRpb24uCiNhdXRob3I6IF9fYXV0aG9yX18gPGVtYWlsQGV4 +YW1wbGUuY29tPgojaG9tZXBhZ2U6IGh0dHBzOi8vd3d3LmV4YW1wbGUuY29tCgplbnZpcm9ubWVu +dDoKICBzZGs6ICc+PTEuMC4wIDwyLjAuMCcKCiNkZXBlbmRlbmNpZXM6CiMgIGZvb19iYXI6ICc+ +PTEuMC4wIDwyLjAuMCcKCmRldl9kZXBlbmRlbmNpZXM6CiAgdGVzdDogJz49MC4xMi4wIDwwLjEz LjAnCg==""", "test/__projectName___test.dart", "text", - """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl -ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKbGlicmFyeSBf -X3Byb2plY3ROYW1lX18udGVzdDsKCmltcG9ydCAncGFja2FnZTpfX3Byb2plY3ROYW1lX18vX19w -cm9qZWN0TmFtZV9fLmRhcnQnOwppbXBvcnQgJ3BhY2thZ2U6dGVzdC90ZXN0LmRhcnQnOwoKdm9p -ZCBtYWluKCkgewogIHRlc3QoJ2NhbGN1bGF0ZScsICgpIHsKICAgIGV4cGVjdChjYWxjdWxhdGUo -KSwgNDIpOwogIH0pOwp9Cg==""" + """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl +ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKaW1wb3J0ICdw +YWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7CmltcG9ydCAncGFj +a2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgdGVzdCgnY2FsY3VsYXRlJywg +KCkgewogICAgZXhwZWN0KGNhbGN1bGF0ZSgpLCA0Mik7CiAgfSk7Cn0K""" ]; diff --git a/lib/generators/package_simple_data.dart b/lib/generators/package_simple_data.dart index 56f147a9..0c7e4bd8 100644 --- a/lib/generators/package_simple_data.dart +++ b/lib/generators/package_simple_data.dart @@ -66,17 +66,17 @@ b21lKCk7CiAgcHJpbnQoJ2F3ZXNvbWU6ICR7YXdlc29tZS5pc0F3ZXNvbWV9Jyk7Cn0K""", ZC4gVXN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iBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKaW1wb3J0ICdw +YWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7CmltcG9ydCAncGFj +a2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgZ3JvdXAoJ0EgZ3JvdXAgb2Yg +dGVzdHMnLCAoKSB7CiAgICBBd2Vzb21lIGF3ZXNvbWU7CgogICAgc2V0VXAoKCkgewogICAgICBh +d2Vzb21lID0gbmV3IEF3ZXNvbWUoKTsKICAgIH0pOwoKICAgIHRlc3QoJ0ZpcnN0IFRlc3QnLCAo +KSB7CiAgICAgIGV4cGVjdChhd2Vzb21lLmlzQXdlc29tZSwgaXNUcnVlKTsKICAgIH0pOwogIH0p +Owp9Cg==""" ]; diff --git a/lib/generators/server_appengine_data.dart b/lib/generators/server_appengine_data.dart index c60113bd..68fbc818 100644 --- a/lib/generators/server_appengine_data.dart +++ b/lib/generators/server_appengine_data.dart @@ -120,34 +120,33 @@ aW5pdGlhbCBrZXkvdmFsdWUgcGFpci4KICAgIDwvcHJlPgogIDwvYm9keT4KPC9odG1sPgo=""", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKbGlicmFyeSBf -X3Byb2plY3ROYW1lX18ubWVtY2FjaGU7CgppbXBvcnQgJ2RhcnQ6YXN5bmMnOwoKaW1wb3J0ICdw -YWNrYWdlOmFwcGVuZ2luZS9hcHBlbmdpbmUuZGFydCc7Cgpjb25zdCBTdHJpbmcgREVGQVVMVF9L -RVkgPSAnaGVsbG8nOwpib29sI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SB2YWx1ZU1hcFtrZXldOwoKICAg +IGF3YWl0IG1lbWNhY2hlLnNldChrZXksIHZhbHVlKTsKCiAgICBidWZmZXIud3JpdGVsbignJHtr +ZXl9OiAke0Vycm9yLnNhZmVUb1N0cmluZyh2YWx1ZSl9Jyk7CiAgfQp9CgovLy8gSGVscGVyIG1l +dGhvZCB0byByZWFkIGEgc2V0IG9mIHZhbHVlcyBmcm9tIHRoZSBtZW1jYWNoZS4KRnV0dXJlIHJl +YWQoSXRlcmFibGU8U3RyaW5nPiBrZXlzLCBTdHJpbmdTaW5rIGJ1ZmZlcikgYXN5bmMgewogIHZh +ciBtZW1jYWNoZSA9IGNvbnRleHQuc2VydmljZXMubWVtY2FjaGU7CgogIGZvciAodmFyIGtleSBp +biBrZXlzKSB7CiAgICB0cnkgewogICAgICB2YXIgdmFsdWUgPSBhd2FpdCBtZW1jYWNoZS5nZXQo +a2V5KTsKICAgICAgYnVmZmVyLndyaXRlbG4oJyR7a2V5fTogJHtFcnJvci5zYWZlVG9TdHJpbmco +dmFsdWUpfScpOwogICAgfSBjYXRjaCAoXykgewogICAgICBidWZmZXIud3JpdGVsbignIiR7a2V5 +fSI6IGVycm9yIHJlYWRpbmcga2V5IScpOwogICAgfQogIH0KfQo=""", "pubspec.yaml", "text", """bmFtZTogX19wcm9qZWN0TmFtZV9fCnZlcnNpb246IDAuMC4xCmRlc2NyaXB0aW9uOiBBIHNpbXBs diff --git a/lib/generators/web_angular_data.dart b/lib/generators/web_angular_data.dart index eced6775..2d395b0f 100644 --- a/lib/generators/web_angular_data.dart +++ b/lib/generators/web_angular_data.dart @@ -24,12 +24,14 @@ ZW50IHt9Cg==""", "PGgxPk15IEZpcnN0IEFuZ3VsYXIgMiBBcHA8L2gxPgo=", "pubspec.yaml", "text", - """bmFtZTogX19wcm9qZWN0TmFtZV9fCnZlcnNpb246IDAuMC4xCmVudmlyb25tZW50OgogIHNkazog -Jz49MS4xMy4wIDwyLjAuMCcKZGVwZW5kZW5jaWVz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generators/web_polymer_data.dart b/lib/generators/web_polymer_data.dart index 4477ddf7..1a65deb0 100644 --- a/lib/generators/web_polymer_data.dart +++ b/lib/generators/web_polymer_data.dart @@ -52,28 +52,27 @@ SVRZIE9GIFNVQ0ggREFNQUdFLgo=""", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgpASHRtbEltcG9y -dCgnbWFpbl9hcHAuaHRtbCcpCmxpYnJhcnkgX19wcm9qZWN0TmFtZV9fLmxpYi5tYWluX2FwcDsK -CmltcG9ydCAnZGFydDpodG1sJzsKCmltcG9ydCAncGFja2FnZTpwb2x5bWVyX2VsZW1lbnRzL3Bh -cGVyX2lucHV0LmRhcnQnOwppbXBvcnQgJ3BhY2thZ2U6cG9seW1lci9wb2x5bWVyLmRhcnQnOwpp -bXBvcnQgJ3BhY2thZ2U6d2ViX2NvbXBvbmVudHMvd2ViX2NvbXBvbmVudHMuZGFydCc7CgovLy8g -VXNlcyBbUGFwZXJJbnB1dF0KQFBvbHltZXJSZWdpc3RlcignbWFpbi1hcHAnKQpjbGFzcyBNYWlu -QXBwIGV4dGVuZHMgUG9seW1lckVsZW1lbnQgewogIEBwcm9wZXJ0eQogIFN0cmluZyB0ZXh0OwoK -ICAvLy8gQ29uc3RydWN0b3IgdXNlZCB0byBjcmVhdGUgaW5zdGFuY2Ugb2YgTWFpbkFwcC4KICBN -YWluQXBwLmNyZWF0ZWQoKSA6IHN1cGVyLmNyZWF0ZWQoKTsKCiAgQHJlZmxlY3RhYmxlCiAgU3Ry -aW5nIHJldmVyc2VUZXh0KFN0cmluZyB0ZXh0KSB7CiAgICByZXR1cm4gdGV4dC5zcGxpdCgn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Bpbml0UG9seW1lcigpOwp9Cg==""", +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKaW1wb3J0ICdw +YWNrYWdlOl9fcHJvamVjdE5hbWVfXy9tYWluX2FwcC5kYXJ0JzsKaW1wb3J0ICdwYWNrYWdlOnBv +bHltZXIvcG9seW1lci5kYXJ0JzsKCi8vLyBbTWFpbkFwcF0gdXNlZCEKbWFpbigpIGFzeW5jIHsK +ICBhd2FpdCBpbml0UG9seW1lcigpOwp9Cg==""", "web/index.html", "text", """PCFET0NUWVBFIGh0bWw+Cgo8IS0tCiAgQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3Jf From e716f648e8fde8e9b4b5827c68b5afdca2bc2481 Mon Sep 17 00:00:00 2001 From: Kleak Date: Sun, 14 Feb 2016 11:42:22 +0100 Subject: [PATCH 07/10] rewrite library keyword when necessary and re-build the generators --- lib/generators/console_full_data.dart | 104 +++++++++--------- lib/generators/package_simple_data.dart | 14 +-- .../console-full/lib/__projectName__.dart | 1 + .../example/__projectName___example.dart | 2 - .../package-simple/lib/__projectName__.dart | 5 +- 5 files changed, 63 insertions(+), 63 deletions(-) diff --git a/lib/generators/console_full_data.dart b/lib/generators/console_full_data.dart index b4175a62..8c4a58c8 100644 --- a/lib/generators/console_full_data.dart +++ b/lib/generators/console_full_data.dart @@ -5,77 +5,77 @@ const List data = const [ ".gitignore", "text", - """IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLnBhY2thZ2VzCi5wdWIvCmJ1 -aWxkLwpwYWNrYWdlcwpwdWJzcGVjLmxvY2sgIyAoUmVtb3ZlIHRoaXMgcGF0dGVybiBpZiB5b3Ug -d2lzaCB0byBjaGVjayBpbiB5b3VyIGxvY2sgZmlsZSkKCiMgRmlsZXMgY3JlYXRlZCBieSBkYXJ0 -MmpzCiouZGFydC5qcwoqLnBhcnQuanMKKi5qcy5kZXBzCiou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7CmltcG9ydCAncGFj -a2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgdGVzdCgnY2FsY3VsYXRlJywg + """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl +ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKaW1wb3J0ICdw +YWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7CmltcG9ydCAncGFj +a2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgdGVzdCgnY2FsY3VsYXRlJywg KCkgewogICAgZXhwZWN0KGNhbGN1bGF0ZSgpLCA0Mik7CiAgfSk7Cn0K""" ]; diff --git a/lib/generators/package_simple_data.dart b/lib/generators/package_simple_data.dart index 0c7e4bd8..10d17698 100644 --- a/lib/generators/package_simple_data.dart +++ b/lib/generators/package_simple_data.dart @@ -56,19 +56,19 @@ c3Vlcy9yZXBsYWNlbWUK""", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKbGlicmFyeSBf -X3Byb2plY3ROYW1lX18uZXhhbXBsZTsKCmltcG9ydCAncGFja2FnZTpfX3Byb2plY3ROYW1lX18v -X19wcm9qZWN0TmFtZV9fLmRhcnQnOwoKbWFpbigpIHsKICB2YXIgYXdlc29tZSA9IG5ldy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YWNrYWdlLgo=""", "lib/src/__projectName___base.dart", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl diff --git a/templates/console-full/lib/__projectName__.dart b/templates/console-full/lib/__projectName__.dart index 8c5efa47..a9715f99 100644 --- a/templates/console-full/lib/__projectName__.dart +++ b/templates/console-full/lib/__projectName__.dart @@ -2,6 +2,7 @@ // is governed by a BSD-style license that can be found in the LICENSE file. /// The __projectName__ library. +library __projectName__; int calculate() { return 6 * 7; diff --git a/templates/package-simple/example/__projectName___example.dart b/templates/package-simple/example/__projectName___example.dart index 4628602c..b1c44920 100644 --- a/templates/package-simple/example/__projectName___example.dart +++ b/templates/package-simple/example/__projectName___example.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.example; - import 'package:__projectName__/__projectName__.dart'; main() { diff --git a/templates/package-simple/lib/__projectName__.dart b/templates/package-simple/lib/__projectName__.dart index 3297ab64..65088a53 100644 --- a/templates/package-simple/lib/__projectName__.dart +++ b/templates/package-simple/lib/__projectName__.dart @@ -4,7 +4,8 @@ /// The __projectName__ library. /// /// This is an awesome library. More dartdocs go here. - -// TODO: Export any libraries intended for clients of this package. +library __projectName__; export 'src/__projectName___base.dart'; + +// TODO: Export any libraries intended for clients of this package. From 05386a997d61f0021519fe8f51f9d0a4e99461c5 Mon Sep 17 00:00:00 2001 From: Kleak Date: Mon, 15 Feb 2016 17:01:39 +0100 Subject: [PATCH 08/10] remove useless comment and library keyword --- lib/generators/console_full_data.dart | 5 ++--- lib/generators/package_simple_data.dart | 10 +++++----- templates/console-full/lib/__projectName__.dart | 3 --- templates/package-simple/lib/__projectName__.dart | 2 -- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/generators/console_full_data.dart b/lib/generators/console_full_data.dart index 8c4a58c8..40274aae 100644 --- a/lib/generators/console_full_data.dart +++ b/lib/generators/console_full_data.dart @@ -59,9 +59,8 @@ cmxkOiAke19fcHJvamVjdE5hbWVfXy5jYWxjdWxhdGUoKX0hJyk7Cn0K""", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFRoZSBf -X3Byb2plY3ROYW1lX18gbGlicmFyeS4KbGlicmFyeSBfX3Byb2plY3ROYW1lX187CgppbnQgY2Fs -Y3VsYXRlKCkgewogIHJldHVybiA2ICogNzsKfQo=""", +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKaW50IGNhbGN1 +bGF0ZSgpIHsKICByZXR1cm4gNiAqIDc7Cn0K""", "pubspec.yaml", "text", """bmFtZTogX19wcm9qZWN0TmFtZV9fCnZlcnNpb246IDAuMC4xCmRlc2NyaXB0aW9uOiBBIHNhbXBs diff --git a/lib/generators/package_simple_data.dart b/lib/generators/package_simple_data.dart index 10d17698..8a9eb2a4 100644 --- a/lib/generators/package_simple_data.dart +++ b/lib/generators/package_simple_data.dart @@ -64,11 +64,11 @@ LmlzQXdlc29tZX0nKTsKfQo=""", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFRoZSBf -X3Byb2plY3ROYW1lX18gbGlicmFyeS4KLy8vCi8vLyBUaGlzIGlzIGFuIGF3ZXNvbWUgbGlicmFy -eS4gTW9yZSBkYXJ0ZG9jcyBnbyBoZXJlLgpsaWJyYXJ5IF9fcHJvamVjdE5hbWVfXzsKCmV4cG9y -dCAnc3JjL19fcHJvamVjdE5hbWVfX19iYXNlLmRhcnQnOwoKLy8gVE9ETzogRXhwb3J0IGFueSBs -aWJyYXJpZXMgaW50ZW5kZWQgZm9yIGNsaWVudHMgb2YgdGhpcyBwYWNrYWdlLgo=""", +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFRoaXMg +aXMgYW4gYXdlc29tZSBsaWJyYXJ5LiBNb3JlIGRhcnRkb2NzIGdvIGhlcmUuCmxpYnJhcnkgX19w +cm9qZWN0TmFtZV9fOwoKZXhwb3J0ICdzcmMvX19wcm9qZWN0TmFtZV9fX2Jhc2UuZGFydCc7Cgov +LyBUT0RPOiBFeHBvcnQgYW55IGxpYnJhcmllcyBpbnRlbmRlZCBmb3IgY2xpZW50cyBvZiB0aGlz +IHBhY2thZ2UuCg==""", "lib/src/__projectName___base.dart", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl diff --git a/templates/console-full/lib/__projectName__.dart b/templates/console-full/lib/__projectName__.dart index a9715f99..7c8f726a 100644 --- a/templates/console-full/lib/__projectName__.dart +++ b/templates/console-full/lib/__projectName__.dart @@ -1,9 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -/// The __projectName__ library. -library __projectName__; - int calculate() { return 6 * 7; } diff --git a/templates/package-simple/lib/__projectName__.dart b/templates/package-simple/lib/__projectName__.dart index 65088a53..356cf7e9 100644 --- a/templates/package-simple/lib/__projectName__.dart +++ b/templates/package-simple/lib/__projectName__.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -/// The __projectName__ library. -/// /// This is an awesome library. More dartdocs go here. library __projectName__; From 1184618ceeed8fbdbf42c01a941d0fcb994c6b25 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 4 Mar 2016 10:06:20 +0100 Subject: [PATCH 09/10] change comment to follow good library doc comment practices --- templates/package-simple/lib/__projectName__.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/package-simple/lib/__projectName__.dart b/templates/package-simple/lib/__projectName__.dart index 356cf7e9..60c8be93 100644 --- a/templates/package-simple/lib/__projectName__.dart +++ b/templates/package-simple/lib/__projectName__.dart @@ -1,7 +1,9 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -/// This is an awesome library. More dartdocs go here. +/// Support for doing something awesome. +/// +/// More dartdocs go here. library __projectName__; export 'src/__projectName___base.dart'; From da4c5b5499ec3ceb05c7c90d8d1cb5e6a00c0a3c Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 4 Mar 2016 21:57:24 +0100 Subject: [PATCH 10/10] add my name to the AUTHORS file and update the generator of package simple data --- AUTHORS | 1 + lib/generators/package_simple_data.dart | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index ba9968d1..14d98f72 100644 --- a/AUTHORS +++ b/AUTHORS @@ -11,3 +11,4 @@ Kunal Deo Guillermo López-Anglada ntaoo Andrés Araujo +Kevin Segaud diff --git a/lib/generators/package_simple_data.dart b/lib/generators/package_simple_data.dart index 8a9eb2a4..69f3e2f5 100644 --- a/lib/generators/package_simple_data.dart +++ b/lib/generators/package_simple_data.dart @@ -64,11 +64,11 @@ LmlzQXdlc29tZX0nKTsKfQo=""", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg -bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFRoaXMg -aXMgYW4gYXdlc29tZSBsaWJyYXJ5LiBNb3JlIGRhcnRkb2NzIGdvIGhlcmUuCmxpYnJhcnkgX19w -cm9qZWN0TmFtZV9fOwoKZXhwb3J0ICdzcmMvX19wcm9qZWN0TmFtZV9fX2Jhc2UuZGFydCc7Cgov -LyBUT0RPOiBFeHBvcnQgYW55IGxpYnJhcmllcyBpbnRlbmRlZCBmb3IgY2xpZW50cyBvZiB0aGlz -IHBhY2thZ2UuCg==""", +bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKLy8vIFN1cHBv +cnQgZm9yIGRvaW5nIHNvbWV0aGluZyBhd2Vzb21lLgovLy8KLy8vIE1vcmUgZGFydGRvY3MgZ28g +aGVyZS4KbGlicmFyeSBfX3Byb2plY3ROYW1lX187CgpleHBvcnQgJ3NyYy9fX3Byb2plY3ROYW1l +X19fYmFzZS5kYXJ0JzsKCi8vIFRPRE86IEV4cG9ydCBhbnkgbGlicmFyaWVzIGludGVuZGVkIGZv +ciBjbGllbnRzIG9mIHRoaXMgcGFja2FnZS4K""", "lib/src/__projectName___base.dart", "text", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl