From 5d808150dbdca590321717259fef1ba134c38241 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Thu, 4 Oct 2018 11:22:53 -0400 Subject: [PATCH] Add legacy and 2.x boilerplates --- lib/src/commands/init.dart | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/src/commands/init.dart b/lib/src/commands/init.dart index f89a544..372b7e7 100644 --- a/lib/src/commands/init.dart +++ b/lib/src/commands/init.dart @@ -125,9 +125,9 @@ class InitCommand extends Command { print('Choose a project type before continuing:'); - var boilerplate = basicBoilerplate; -// var boilerplate = prompts.choose( -// 'Choose a project type before continuing', boilerplates); + //var boilerplate = basicBoilerplate; + var boilerplate = prompts.choose( + 'Choose a project type before continuing', boilerplates); print( 'Cloning "${boilerplate.name}" boilerplate from "${boilerplate.url}"...'); @@ -200,14 +200,22 @@ const BoilerplateInfo ormBoilerplate = const BoilerplateInfo( ); const BoilerplateInfo basicBoilerplate = const BoilerplateInfo( - 'Basic', - 'Minimal starting point - A simple server with only a few additional packages.', + 'Basic', + 'Minimal starting point for Angel 2.x - A simple server with only a few additional packages.', + 'https://github.com/angel-dart/angel.git', + ref: '2.x'); + +const BoilerplateInfo legacyBoilerplate = const BoilerplateInfo( + 'Legacy', + 'Minimal starting point for applications running Angel 1.1.x.', 'https://github.com/angel-dart/angel.git', + ref: '1.1.x', ); const List boilerplates = const [ basicBoilerplate, - ormBoilerplate, + legacyBoilerplate, + //ormBoilerplate, ]; class BoilerplateInfo {