Skip to content

Commit ec5cb3e

Browse files
committed
feat(package): introduce a catch-all package angular.
modules/angular has no implementation, but depends on all the pieces that make angular - core, di, directives, etc. It is the package that all client apps will depend on.
1 parent 4df1825 commit ec5cb3e

File tree

12 files changed

+44
-10
lines changed

12 files changed

+44
-10
lines changed

karma-dart.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = function(config) {
4242
'/packages/path': 'http://localhost:9877/base/packages/path',
4343

4444
// Local dependencies, transpiled from the source.
45+
'/packages/angular': 'http://localhost:9877/base/modules/angular/src',
4546
'/packages/core': 'http://localhost:9877/base/modules/core/src',
4647
'/packages/change_detection': 'http://localhost:9877/base/modules/change_detection/src',
4748
'/packages/reflection': 'http://localhost:9877/base/modules/reflection/src',

modules/angular/pubspec.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: angular
2+
version: 2.0.0-alpha.1
3+
environment:
4+
sdk: '>=1.4.0'
5+
dependencies:
6+
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
17+
dev_dependencies:
18+
test_lib:
19+
path: ../test_lib
20+
guinness: ">=0.1.16 <0.2.0"

modules/angular/src/angular.js

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

modules/benchmarks/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: benchmarks
22
environment:
33
sdk: '>=1.4.0'
44
dependencies:
5+
angular:
6+
path: ../angular
57
facade:
68
path: ../facade
79
di:

modules/benchmarks/src/tree/tree_benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Parser, Lexer, ChangeDetector} from 'change_detection/change_detection';
22

3-
import {bootstrap, Component, Template, TemplateConfig, ViewPort, Compiler} from 'core/core';
3+
import {bootstrap, Component, Template, TemplateConfig, ViewPort, Compiler} from 'angular/angular';
44

55
import {CompilerCache} from 'core/compiler/compiler';
66
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';

modules/core/src/core.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
/**
2-
* Define public API for Angular here
3-
*/
41
export * from './annotations/annotations';
52
export * from './compiler/interfaces';
63
export * from './annotations/template_config';
74

85
export * from './application';
96

10-
export * from 'change_detection/change_detection';
11-
127
export * from './compiler/compiler';
138
export * from './compiler/template_loader';
149
export * from './compiler/view';
1510
export * from './compiler/viewport';
1611

17-
export * from 'core/dom/element';
12+
export * from './dom/element';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './ng_if';
2+
export * from './ng_non_bindable';
3+
export * from './ng_repeat';
4+
export * from './ng_switch';

modules/examples/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: examples
22
environment:
33
sdk: '>=1.4.0'
44
dependencies:
5+
angular:
6+
path: ../angular
57
facade:
68
path: ../facade
79
reflection:
@@ -18,4 +20,4 @@ transformers:
1820
minify: true
1921
commandLineOptions: [--trust-type-annotations, --trust-primitives, --dump-info]
2022
#commandLineOptions: [--trust-type-annotations, --dump-info]
21-
#commandLineOptions: [--dump-info]
23+
#commandLineOptions: [--dump-info]

modules/examples/src/hello_world/index_common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrap, Component, Decorator, TemplateConfig, NgElement} from 'core/core';
1+
import {bootstrap, Component, Decorator, TemplateConfig, NgElement} from 'angular/angular';
22

33
// Angular 2.0 supports 3 basic types of directives:
44
// - Component - the basic building blocks of Angular 2.0 apps. Backed by

modules/examples/src/hello_world/index_static.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as app from './index_common';
22

3-
import {Component, Decorator, TemplateConfig, NgElement} from 'core/core';
3+
import {Component, Decorator, TemplateConfig, NgElement} from 'angular/angular';
44
import {Lexer, Parser, ChangeDetector} from 'change_detection/change_detection';
55
import {LifeCycle} from 'core/life_cycle/life_cycle';
66

0 commit comments

Comments
 (0)