refactor: add missing license headers under packages/angular/cli

This commit is contained in:
Alex Eagle 2018-06-06 14:56:09 -07:00 committed by Hans
parent 3d92f5107e
commit d1e392fa78
34 changed files with 283 additions and 34 deletions

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { tags, terminal } from '@angular-devkit/core';
import { NodePackageDoesNotSupportSchematics } from '@angular-devkit/schematics/tools';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';
import { Version } from '../upgrade/version';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
InvalidJsonCharacterException,
JsonArray,

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Command } from '../models/command';
const opn = require('opn');

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { terminal } from '@angular-devkit/core';
import { Command, Option } from '../models/command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { tags } from '@angular-devkit/core';
import { Command, Option } from '../models/command';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { tags, terminal } from '@angular-devkit/core';
import { CommandScope, Option } from '../models/command';
import { SchematicCommand } from '../models/schematic-command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Command, Option } from '../models/command';
export interface Options {

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { terminal } from '@angular-devkit/core';
import { Command, Option } from '../models/command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { CommandScope, Option } from '../models/command';
import { SchematicCommand } from '../models/schematic-command';
import { getDefaultSchematicCollection } from '../utilities/config';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';
import { Version } from '../upgrade/version';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { normalize } from '@angular-devkit/core';
import { CommandScope, Option } from '../models/command';
import { CoreSchematicOptions, SchematicCommand } from '../models/schematic-command';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { terminal } from '@angular-devkit/core';
import * as child_process from 'child_process';
import * as fs from 'fs';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
declare module 'yargs-parser' {
const parseOptions: any;
const yargsParser: <T = any>(args: string | string[], options?: parseOptions) => T;

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { logging, terminal } from '@angular-devkit/core';
import { filter } from 'rxjs/operators';
import { runCommand } from '../../models/command-runner';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import {
Architect,
BuildEvent,

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { logging, strings as coreStrings, tags } from '@angular-devkit/core';
import * as yargsParser from 'yargs-parser';
import {

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { logging, terminal } from '@angular-devkit/core';
export interface CommandConstructor {

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export class NgToolkitError extends Error {
constructor(message?: string) {
super();

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { JsonObject, experimental } from '@angular-devkit/core';
import { normalize, strings, tags, terminal, virtualFs } from '@angular-devkit/core';
import { NodeJsSyncHost } from '@angular-devkit/core/node';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
Path,
basename,

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { logging, terminal } from '@angular-devkit/core';
import { ModuleNotFoundException, resolve } from '@angular-devkit/core/node';
import { spawn } from 'child_process';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { tags, terminal } from '@angular-devkit/core';
import * as path from 'path';
import { SemVer, satisfies } from 'semver';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { terminal } from '@angular-devkit/core';
import { exec } from 'child_process';
import { promisify } from 'util';

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
JsonAstObject,
JsonObject,

View File

@ -1,4 +1,11 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { existsSync } from 'fs';
import * as path from 'path';

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { normalize } from '@angular-devkit/core';
import * as fs from 'fs';
import * as os from 'os';

View File

@ -1,4 +1,10 @@
// tslint:disable:no-global-tslint-disable file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// resolve dependencies within the target project
export function resolveProjectModule(root: string, moduleName: string) {

View File

@ -1,4 +1,12 @@
// tslint:disable:no-global-tslint-disable no-any file-header
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-global-tslint-disable no-any
import { schema } from '@angular-devkit/core';
import {
Collection,