Skip to content

Commit 5abee46

Browse files
committed
chore(new): remove blueprint option
1 parent 5431abc commit 5abee46

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

packages/angular-cli/commands/init.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const InitCommand: any = Command.extend({
1818
availableOptions: [
1919
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
2020
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
21-
{ name: 'blueprint', type: String, aliases: ['b'] },
2221
{ name: 'link-cli', type: Boolean, default: false, aliases: ['lc'] },
2322
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
2423
{ name: 'skip-bower', type: Boolean, default: true, aliases: ['sb'] },
@@ -32,10 +31,6 @@ const InitCommand: any = Command.extend({
3231

3332
anonymousOptions: ['<glob-pattern>'],
3433

35-
_defaultBlueprint: function () {
36-
return 'ng2';
37-
},
38-
3934
run: function (commandOptions: any, rawArgs: string[]) {
4035
if (commandOptions.dryRun) {
4136
commandOptions.skipNpm = true;
@@ -98,7 +93,7 @@ const InitCommand: any = Command.extend({
9893

9994
const blueprintOpts = {
10095
dryRun: commandOptions.dryRun,
101-
blueprint: commandOptions.blueprint || this._defaultBlueprint(),
96+
blueprint: 'ng2',
10297
rawName: packageName,
10398
targetFiles: rawArgs || '',
10499
rawArgs: rawArgs.toString(),

packages/angular-cli/commands/new.ts

-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const NewCommand = Command.extend({
1515
availableOptions: [
1616
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
1717
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
18-
{ name: 'blueprint', type: String, default: 'ng2', aliases: ['b'] },
1918
{ name: 'link-cli', type: Boolean, default: false, aliases: ['lc'] },
2019
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
2120
{ name: 'skip-bower', type: Boolean, default: true, aliases: ['sb'] },
@@ -60,8 +59,6 @@ const NewCommand = Command.extend({
6059
));
6160
}
6261

63-
commandOptions.blueprint = normalizeBlueprint(commandOptions.blueprint);
64-
6562
if (!commandOptions.directory) {
6663
commandOptions.directory = packageName;
6764
}

0 commit comments

Comments
 (0)