Add legacy and 2.x boilerplates

This commit is contained in:
Tobe O 2018-10-04 11:22:53 -04:00
parent d6e12c24eb
commit 5d808150db

View file

@ -125,9 +125,9 @@ class InitCommand extends Command {
print('Choose a project type before continuing:'); print('Choose a project type before continuing:');
var boilerplate = basicBoilerplate; //var boilerplate = basicBoilerplate;
// var boilerplate = prompts.choose( var boilerplate = prompts.choose(
// 'Choose a project type before continuing', boilerplates); 'Choose a project type before continuing', boilerplates);
print( print(
'Cloning "${boilerplate.name}" boilerplate from "${boilerplate.url}"...'); 'Cloning "${boilerplate.name}" boilerplate from "${boilerplate.url}"...');
@ -200,14 +200,22 @@ const BoilerplateInfo ormBoilerplate = const BoilerplateInfo(
); );
const BoilerplateInfo basicBoilerplate = const BoilerplateInfo( const BoilerplateInfo basicBoilerplate = const BoilerplateInfo(
'Basic', 'Basic',
'Minimal starting point - A simple server with only a few additional packages.', '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', 'https://github.com/angel-dart/angel.git',
ref: '1.1.x',
); );
const List<BoilerplateInfo> boilerplates = const [ const List<BoilerplateInfo> boilerplates = const [
basicBoilerplate, basicBoilerplate,
ormBoilerplate, legacyBoilerplate,
//ormBoilerplate,
]; ];
class BoilerplateInfo { class BoilerplateInfo {