Skip to content

Commit 0195f96

Browse files
mhartingtonimhoffd
authored andcommitted
feat(start): make Ionic 4 the default for new projects (#3820)
1 parent 3c27e05 commit 0195f96

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

packages/ionic/src/commands/start.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -223,29 +223,7 @@ The second argument is the ${chalk.green('template')} from which to generate you
223223
}
224224
}
225225

226-
if (!options['type']) {
227-
if (this.env.flags.interactive) {
228-
this.env.log.info(
229-
`You are about to create an Ionic 3 app. Would you like to try the release candidate for Ionic 4?\n` +
230-
`Ionic 4 uses the power of the modern Web and embraces the Angular CLI and Angular Router to bring you the best version of Ionic ever. See our blog announcement${chalk.cyan('[1]')} and documentation${chalk.cyan('[2]')} for more information. We'd love to hear your feedback on our latest version!\n\n` +
231-
`${chalk.cyan('[1]')}: ${chalk.bold('https://blog.ionicframework.com/ionic-framework-4-0-rc-shipped-paving-way-for-final')}\n` +
232-
`${chalk.cyan('[2]')}: ${chalk.bold('https://beta.ionicframework.com/docs/')}\n`
233-
);
234-
}
235-
236-
const confirm = await this.env.prompt({
237-
type: 'confirm',
238-
name: 'confirm',
239-
message: 'Try Ionic 4?',
240-
default: false,
241-
});
242-
243-
if (confirm) {
244-
options['type'] = 'angular';
245-
}
246-
}
247-
248-
const projectType = options['type'] ? String(options['type']) : 'ionic-angular';
226+
const projectType = options['type'] ? String(options['type']) : 'angular';
249227
const appflowId = options['id'] ? String(options['id']) : undefined;
250228

251229
await this.validateProjectType(projectType);
@@ -690,7 +668,7 @@ The second argument is the ${chalk.green('template')} from which to generate you
690668
`Go to your ${cloned ? 'cloned' : 'newly created'} project: ${chalk.green(`cd ${prettyPath(projectDir)}`)}`,
691669
`Run ${chalk.green('ionic serve')} within the app directory to see your app`,
692670
`Build features and components: ${chalk.bold('https://ion.link/scaffolding-docs')}`,
693-
`Get Ionic DevApp for easy device testing: ${chalk.bold('https://bit.ly/ionic-dev-app')}`,
671+
`Get Ionic DevApp for easy device testing: ${chalk.bold('https://ion.link/devapp')}`,
694672
];
695673

696674
if (linkConfirmed) {

0 commit comments

Comments
 (0)