Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 4312e53

Browse files
committed
refactor: add license headers to Schematics
1 parent d78115c commit 4312e53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+444
-332
lines changed

lib/bootstrap-local.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
/* eslint-disable no-console */
29
'use strict';
310

lib/packages.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
'use strict';
29

310
const fs = require('fs');

packages/schematics/src/engine/collection.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {SchematicEngine} from './engine';
29
import {Collection, CollectionDescription, Schematic, SchematicDescription} from './interface';
310
import {BaseException} from '../exception/exception';

packages/schematics/src/engine/context.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {Engine, Schematic, SchematicContext} from './interface';
29
import {MergeStrategy, Tree} from '../tree/interface';
310

packages/schematics/src/engine/engine.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {CollectionImpl} from './collection';
29
import {
310
Collection,

packages/schematics/src/engine/interface.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {MergeStrategy, Tree} from '../tree/interface';
29

310
import {Observable} from 'rxjs/Observable';

packages/schematics/src/engine/schematic.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {SchematicContextImpl} from './context';
29
import {Collection, ResolvedSchematicDescription, Schematic, SchematicContext} from './interface';
310
import {MergeStrategy, Tree} from '../tree/interface';

packages/schematics/src/engine/schematic_spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {ResolvedSchematicDescription} from './interface';
29
import {SchematicImpl} from './schematic';
310
import {Tree} from '../tree/interface';

packages/schematics/src/exception/exception.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
// Starting with TS 2.1, Error cannot be properly extended anymore, so we implement the same
2-
// interface but in a different package.
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
39
export class BaseException extends Error {
410
constructor(message = '') {
511
super(message);

packages/schematics/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {FilePredicate, MergeStrategy} from './tree/interface';
29
import {Tree as TreeInterface} from './tree/interface';
310
import {branch, empty, merge, optimize, partition} from './tree/static';

packages/schematics/src/rules/base.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {MergeStrategy, FilePredicate} from '../tree/interface';
29
import {Rule, SchematicContext, Source} from '../engine/interface';
310
import {BaseException} from '../exception/exception';

packages/schematics/src/rules/base_spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {apply, callRule, callSource, chain} from './base';
29
import {Rule, SchematicContext, Source} from '../engine/interface';
310
import {Tree} from '../tree/interface';

packages/schematics/src/rules/move.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {Rule} from '../engine/interface';
29
import {Tree} from '../tree/interface';
310

packages/schematics/src/rules/random.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {Source} from '../engine/interface';
29
import {VirtualTree} from '../tree/virtual';
310

packages/schematics/src/rules/schematic.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {Rule, SchematicContext} from '../engine/interface';
29
import {Tree} from '../tree/interface';
310
import {branch} from '../tree/static';

packages/schematics/src/rules/schematic_spec.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

packages/schematics/src/rules/template.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
import {chain} from './base';
29
import {template as templateImpl} from './template/template';
310
import {isBinary} from './utils/is-binary';

0 commit comments

Comments
 (0)