Skip to content

Commit 3f22866

Browse files
committed
chore(packaging): update import for the new file structure
1 parent 3820609 commit 3f22866

File tree

134 files changed

+610
-653
lines changed

Some content is hidden

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

134 files changed

+610
-653
lines changed

modules/angular2/angular2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Define public API for Angular here.
33
*/
4-
export * from 'change_detection/change_detection';
5-
export * from 'core/core';
6-
export * from 'directives/directives';
4+
export * from './change_detection';
5+
export * from './core';
6+
export * from './directives';

modules/angular2/change_detection.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
export {AST} from './src/parser/ast';
2-
export {Lexer} from './src/parser/lexer';
3-
export {Parser} from './src/parser/parser';
4-
export {ContextWithVariableBindings} from './src/parser/context_with_variable_bindings';
1+
export {AST} from './src/change_detection/parser/ast';
2+
export {Lexer} from './src/change_detection/parser/lexer';
3+
export {Parser} from './src/change_detection/parser/parser';
4+
export {ContextWithVariableBindings}
5+
from './src/change_detection/parser/context_with_variable_bindings';
56

6-
export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} from './src/exceptions';
7+
export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError}
8+
from './src/change_detection/exceptions';
79
export {ChangeRecord, ChangeDispatcher, ChangeDetector,
8-
CHECK_ONCE, CHECK_ALWAYS, DETACHED, CHECKED} from './src/interfaces';
9-
export {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './src/proto_change_detector';
10-
export {DynamicChangeDetector} from './src/dynamic_change_detector';
10+
CHECK_ONCE, CHECK_ALWAYS, DETACHED, CHECKED} from './src/change_detection/interfaces';
11+
export {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector}
12+
from './src/change_detection/proto_change_detector';
13+
export {DynamicChangeDetector}
14+
from './src/change_detection/dynamic_change_detector';
1115

12-
import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './src/proto_change_detector';
16+
import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector}
17+
from './src/change_detection/proto_change_detector';
1318

1419
export class ChangeDetection {
1520
createProtoChangeDetector(name:string){}

modules/angular2/core.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
export * from './src/annotations/annotations';
2-
export * from './src/annotations/visibility';
3-
export * from './src/compiler/interfaces';
4-
export * from './src/annotations/template_config';
1+
export * from './src/core/annotations/annotations';
2+
export * from './src/core/annotations/visibility';
3+
export * from './src/core/compiler/interfaces';
4+
export * from './src/core/annotations/template_config';
55

6-
export * from './src/application';
6+
export * from './src/core/application';
77

8-
export * from './src/compiler/compiler';
9-
export * from './src/compiler/template_loader';
10-
export * from './src/compiler/view';
11-
export * from './src/compiler/viewport';
8+
export * from './src/core/compiler/compiler';
9+
export * from './src/core/compiler/template_loader';
10+
export * from './src/core/compiler/view';
11+
export * from './src/core/compiler/viewport';
1212

13-
export * from './src/dom/element';
13+
export * from './src/core/dom/element';

modules/angular2/di.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export {Inject, InjectPromise, InjectLazy, DependencyAnnotation} from './src/annotations';
2-
export {Injector} from './src/injector';
3-
export {Binding, Dependency, bind} from './src/binding';
4-
export {Key, KeyRegistry} from './src/key';
1+
export {Inject, InjectPromise, InjectLazy, DependencyAnnotation} from './src/di/annotations';
2+
export {Injector} from './src/di/injector';
3+
export {Binding, Dependency, bind} from './src/di/binding';
4+
export {Key, KeyRegistry} from './src/di/key';
55
export {KeyMetadataError, NoProviderError, ProviderError, AsyncBindingError, CyclicDependencyError,
6-
InstantiationError, InvalidBindingError, NoAnnotationError} from './src/exceptions';
7-
export {OpaqueToken} from './src/opaque_token';
6+
InstantiationError, InvalidBindingError, NoAnnotationError} from './src/di/exceptions';
7+
export {OpaqueToken} from './src/di/opaque_token';

modules/angular2/directives.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './src/ng_if';
2-
export * from './src/ng_non_bindable';
3-
export * from './src/ng_repeat';
4-
export * from './src/ng_switch';
1+
export * from './src/directives/ng_if';
2+
export * from './src/directives/ng_non_bindable';
3+
export * from './src/directives/ng_repeat';
4+
export * from './src/directives/ng_switch';

modules/angular2/pubspec.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
name: angular
1+
name: angular2
22
version: 2.0.0-alpha.1
33
environment:
44
sdk: '>=1.4.0'
55
dependencies:
66
stack_trace: '1.1.1'
7-
change_detection:
8-
path: ../change_detection
9-
di:
10-
path: ../di
11-
facade:
12-
path: ../facade
13-
reflection:
14-
path: ../reflection
15-
directives:
16-
path: ../directives
177
dev_dependencies:
18-
test_lib:
19-
path: ../test_lib
208
guinness: ">=0.1.16 <0.2.0"

modules/angular2/src/change_detection/abstract_change_detector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {isPresent} from 'facade/src/lang';
2-
import {List, ListWrapper} from 'facade/src/collection';
1+
import {isPresent} from 'angular2/src/facade/lang';
2+
import {List, ListWrapper} from 'angular2/src/facade/collection';
33
import {ChangeDetector, CHECK_ALWAYS, CHECK_ONCE, CHECKED, DETACHED} from './interfaces';
44

55
export class AbstractChangeDetector extends ChangeDetector {

modules/angular2/src/change_detection/array_changes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
iterateListLike,
44
ListWrapper,
55
MapWrapper
6-
} from 'facade/src/collection';
6+
} from 'angular2/src/facade/collection';
77

88
import {
99
int,
@@ -12,7 +12,7 @@ import {
1212
stringify,
1313
getMapKey,
1414
looseIdentical,
15-
} from 'facade/src/lang';
15+
} from 'angular2/src/facade/lang';
1616

1717
export class ArrayChanges {
1818
_collection;

0 commit comments

Comments
 (0)