mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
refactor: add missing license headers under packages/angular/cli
This commit is contained in:
parent
3d92f5107e
commit
d1e392fa78
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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,
|
||||
|
@ -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');
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
10
packages/angular/cli/custom-typings.d.ts
vendored
10
packages/angular/cli/custom-typings.d.ts
vendored
@ -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;
|
||||
|
@ -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';
|
||||
|
@ -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,
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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();
|
||||
|
@ -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';
|
||||
|
@ -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,
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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,
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user