mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
This commit changes 2 things: 1. Changes remaining angular-cli package references to @angular/cli. 2. Where angular-cli was mentioned as a project name, it's been changed to Angular CLI. Where angular-cli was meant to mean the repository name, it's been left unchanged.
35 lines
1.5 KiB
TypeScript
35 lines
1.5 KiB
TypeScript
const Command = require('../ember-cli/lib/models/command');
|
|
|
|
const InitCommand: any = Command.extend({
|
|
name: 'init',
|
|
description: 'Creates a new Angular CLI project in the current folder.',
|
|
aliases: ['u', 'update', 'i'],
|
|
works: 'everywhere',
|
|
|
|
availableOptions: [
|
|
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
|
|
{ name: 'link-cli', type: Boolean, default: false, aliases: ['lc'] },
|
|
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
|
|
{ name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },
|
|
{ name: 'skip-tests', type: Boolean, default: false, aliases: ['st'] },
|
|
{ name: 'skip-commit', type: Boolean, default: false, aliases: ['sc'] },
|
|
{ name: 'name', type: String, default: '', aliases: ['n'] },
|
|
{ name: 'source-dir', type: String, default: 'src', aliases: ['sd'] },
|
|
{ name: 'style', type: String, default: 'css' },
|
|
{ name: 'prefix', type: String, default: 'app', aliases: ['p'] },
|
|
{ name: 'routing', type: Boolean, default: false },
|
|
{ name: 'inline-style', type: Boolean, default: false, aliases: ['is'] },
|
|
{ name: 'inline-template', type: Boolean, default: false, aliases: ['it'] }
|
|
],
|
|
|
|
anonymousOptions: ['<glob-pattern>'],
|
|
|
|
run: function (commandOptions: any, rawArgs: string[]) {
|
|
return require('./init.run').default.call(this, commandOptions, rawArgs);
|
|
}
|
|
});
|
|
|
|
InitCommand.overrideCore = true;
|
|
export default InitCommand;
|