fix(packages): use ES modules for primary build (#11120)
This commit is contained in:

committed by
Victor Berchet

parent
8cb1046ce9
commit
979657989b
@ -9,32 +9,8 @@
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point from which you should import all public core APIs.
|
||||
* Entry point for all public APIs of the core package.
|
||||
*/
|
||||
export * from './src/metadata';
|
||||
export * from './src/util';
|
||||
export * from './src/di';
|
||||
export {createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './src/application_ref';
|
||||
export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './src/application_tokens';
|
||||
export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init';
|
||||
export * from './src/zone';
|
||||
export * from './src/render';
|
||||
export * from './src/linker';
|
||||
export {DebugElement, DebugNode, asNativeElements, getDebugNode} from './src/debug/debug_node';
|
||||
export {GetTestability, Testability, TestabilityRegistry, setTestabilityGetter} from './src/testability/testability';
|
||||
export * from './src/change_detection';
|
||||
export * from './src/platform_core_providers';
|
||||
export {TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID} from './src/i18n/tokens';
|
||||
export {ApplicationModule} from './src/application_module';
|
||||
export {wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, WtfScopeFn} from './src/profile/profile';
|
||||
export * from './src/core';
|
||||
|
||||
export {Type} from './src/type';
|
||||
export {EventEmitter} from './src/facade/async';
|
||||
export {ErrorHandler} from './src/error_handler';
|
||||
export * from './private_export';
|
||||
|
||||
export * from './src/animation/metadata';
|
||||
export {AnimationTransitionEvent} from './src/animation/animation_transition_event';
|
||||
export {AnimationPlayer} from './src/animation/animation_player';
|
||||
|
||||
export {Sanitizer, SecurityContext} from './src/security';
|
||||
// This file only reexports content of the `src` folder. Keep it that way.
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "@angular/core",
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"jsnext:main": "esm/index.js",
|
||||
"description": "Angular 2 core",
|
||||
"main": "bundles/core.umd.js",
|
||||
"module": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"rxjs": "5.0.0-beta.11",
|
||||
"zone.js": "^0.6.6"
|
||||
"zone.js": "^0.6.17"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -1,184 +0,0 @@
|
||||
/**
|
||||
* @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 {ANY_STATE as ANY_STATE_, DEFAULT_STATE as DEFAULT_STATE_, EMPTY_STATE as EMPTY_STATE_, FILL_STYLE_FLAG as FILL_STYLE_FLAG_} from './src/animation/animation_constants';
|
||||
import {AnimationGroupPlayer as AnimationGroupPlayer_} from './src/animation/animation_group_player';
|
||||
import {AnimationKeyframe as AnimationKeyframe_} from './src/animation/animation_keyframe';
|
||||
import {AnimationOutput as AnimationOutput_} from './src/animation/animation_output';
|
||||
import {AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_} from './src/animation/animation_player';
|
||||
import {AnimationSequencePlayer as AnimationSequencePlayer_} from './src/animation/animation_sequence_player';
|
||||
import * as animationUtils from './src/animation/animation_style_util';
|
||||
import {AnimationStyles as AnimationStyles_} from './src/animation/animation_styles';
|
||||
import * as change_detection_util from './src/change_detection/change_detection_util';
|
||||
import * as constants from './src/change_detection/constants';
|
||||
import * as console from './src/console';
|
||||
import * as debug from './src/debug/debug_renderer';
|
||||
import * as provider from './src/di/provider';
|
||||
import * as reflective_provider from './src/di/reflective_provider';
|
||||
import {ComponentStillLoadingError} from './src/linker/compiler';
|
||||
import * as component_factory_resolver from './src/linker/component_factory_resolver';
|
||||
import * as debug_context from './src/linker/debug_context';
|
||||
import * as element from './src/linker/element';
|
||||
import * as ng_module_factory from './src/linker/ng_module_factory';
|
||||
import * as template_ref from './src/linker/template_ref';
|
||||
import * as view from './src/linker/view';
|
||||
import * as view_type from './src/linker/view_type';
|
||||
import * as view_utils from './src/linker/view_utils';
|
||||
import * as lifecycle_hooks from './src/metadata/lifecycle_hooks';
|
||||
import * as metadata_view from './src/metadata/view';
|
||||
import * as wtf_init from './src/profile/wtf_init';
|
||||
import * as reflection from './src/reflection/reflection';
|
||||
// We need to import this name separately from the above wildcard, because this symbol is exposed.
|
||||
import {Reflector} from './src/reflection/reflection'; // tslint:disable-line
|
||||
import * as reflection_capabilities from './src/reflection/reflection_capabilities';
|
||||
import * as reflector_reader from './src/reflection/reflector_reader';
|
||||
import * as api from './src/render/api';
|
||||
import * as security from './src/security';
|
||||
import * as decorators from './src/util/decorators';
|
||||
|
||||
|
||||
// These generic types can't be exported within the __core_private_types__
|
||||
// interface because the generic type info will be lost. So just exporting
|
||||
// them separately.
|
||||
export type __core_private_DebugAppView__<T> = view.DebugAppView<T>;
|
||||
export type __core_private_TemplateRef__<C> = template_ref.TemplateRef_<C>;
|
||||
|
||||
export interface __core_private_types__ {
|
||||
isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;
|
||||
ChangeDetectorStatus: constants.ChangeDetectorStatus;
|
||||
CHANGE_DETECTION_STRATEGY_VALUES: typeof constants.CHANGE_DETECTION_STRATEGY_VALUES;
|
||||
constructDependencies: typeof reflective_provider.constructDependencies;
|
||||
LifecycleHooks: lifecycle_hooks.LifecycleHooks;
|
||||
LIFECYCLE_HOOKS_VALUES: typeof lifecycle_hooks.LIFECYCLE_HOOKS_VALUES;
|
||||
ReflectorReader: reflector_reader.ReflectorReader;
|
||||
CodegenComponentFactoryResolver:
|
||||
typeof component_factory_resolver.CodegenComponentFactoryResolver;
|
||||
AppElement: element.AppElement;
|
||||
AppView: typeof view.AppView;
|
||||
NgModuleInjector: typeof ng_module_factory.NgModuleInjector;
|
||||
ViewType: view_type.ViewType;
|
||||
MAX_INTERPOLATION_VALUES: typeof view_utils.MAX_INTERPOLATION_VALUES;
|
||||
checkBinding: typeof view_utils.checkBinding;
|
||||
flattenNestedViewRenderNodes: typeof view_utils.flattenNestedViewRenderNodes;
|
||||
interpolate: typeof view_utils.interpolate;
|
||||
ViewUtils: typeof view_utils.ViewUtils;
|
||||
VIEW_ENCAPSULATION_VALUES: typeof metadata_view.VIEW_ENCAPSULATION_VALUES;
|
||||
ViewMetadata: metadata_view.ViewMetadata;
|
||||
DebugContext: typeof debug_context.DebugContext;
|
||||
StaticNodeDebugInfo: typeof debug_context.StaticNodeDebugInfo;
|
||||
devModeEqual: typeof change_detection_util.devModeEqual;
|
||||
UNINITIALIZED: typeof change_detection_util.UNINITIALIZED;
|
||||
ValueUnwrapper: typeof change_detection_util.ValueUnwrapper;
|
||||
RenderDebugInfo: api.RenderDebugInfo;
|
||||
wtfInit: typeof wtf_init.wtfInit;
|
||||
ReflectionCapabilities: reflection_capabilities.ReflectionCapabilities;
|
||||
makeDecorator: typeof decorators.makeDecorator;
|
||||
DebugDomRootRenderer: debug.DebugDomRootRenderer;
|
||||
EMPTY_ARRAY: typeof view_utils.EMPTY_ARRAY;
|
||||
EMPTY_MAP: typeof view_utils.EMPTY_MAP;
|
||||
pureProxy1: typeof view_utils.pureProxy1;
|
||||
pureProxy2: typeof view_utils.pureProxy2;
|
||||
pureProxy3: typeof view_utils.pureProxy3;
|
||||
pureProxy4: typeof view_utils.pureProxy4;
|
||||
pureProxy5: typeof view_utils.pureProxy5;
|
||||
pureProxy6: typeof view_utils.pureProxy6;
|
||||
pureProxy7: typeof view_utils.pureProxy7;
|
||||
pureProxy8: typeof view_utils.pureProxy8;
|
||||
pureProxy9: typeof view_utils.pureProxy9;
|
||||
pureProxy10: typeof view_utils.pureProxy10;
|
||||
castByValue: typeof view_utils.castByValue;
|
||||
Console: console.Console;
|
||||
reflector: typeof reflection.reflector;
|
||||
Reflector: reflection.Reflector;
|
||||
NoOpAnimationPlayer: NoOpAnimationPlayer_;
|
||||
AnimationPlayer: AnimationPlayer_;
|
||||
AnimationSequencePlayer: AnimationSequencePlayer_;
|
||||
AnimationGroupPlayer: AnimationGroupPlayer_;
|
||||
AnimationKeyframe: AnimationKeyframe_;
|
||||
prepareFinalAnimationStyles: typeof animationUtils.prepareFinalAnimationStyles;
|
||||
balanceAnimationKeyframes: typeof animationUtils.balanceAnimationKeyframes;
|
||||
flattenStyles: typeof animationUtils.flattenStyles;
|
||||
clearStyles: typeof animationUtils.clearStyles;
|
||||
renderStyles: typeof animationUtils.renderStyles;
|
||||
collectAndResolveStyles: typeof animationUtils.collectAndResolveStyles;
|
||||
AnimationStyles: AnimationStyles_;
|
||||
AnimationOutput: AnimationOutput_;
|
||||
ANY_STATE: typeof ANY_STATE_;
|
||||
DEFAULT_STATE: typeof DEFAULT_STATE_;
|
||||
EMPTY_STATE: typeof EMPTY_STATE_;
|
||||
FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_;
|
||||
ComponentStillLoadingError: typeof ComponentStillLoadingError;
|
||||
}
|
||||
|
||||
export var __core_private__ = {
|
||||
isDefaultChangeDetectionStrategy: constants.isDefaultChangeDetectionStrategy,
|
||||
ChangeDetectorStatus: constants.ChangeDetectorStatus,
|
||||
CHANGE_DETECTION_STRATEGY_VALUES: constants.CHANGE_DETECTION_STRATEGY_VALUES,
|
||||
constructDependencies: reflective_provider.constructDependencies,
|
||||
LifecycleHooks: lifecycle_hooks.LifecycleHooks,
|
||||
LIFECYCLE_HOOKS_VALUES: lifecycle_hooks.LIFECYCLE_HOOKS_VALUES,
|
||||
ReflectorReader: reflector_reader.ReflectorReader,
|
||||
CodegenComponentFactoryResolver: component_factory_resolver.CodegenComponentFactoryResolver,
|
||||
AppElement: element.AppElement,
|
||||
AppView: view.AppView,
|
||||
DebugAppView: view.DebugAppView,
|
||||
NgModuleInjector: ng_module_factory.NgModuleInjector,
|
||||
ViewType: view_type.ViewType,
|
||||
MAX_INTERPOLATION_VALUES: view_utils.MAX_INTERPOLATION_VALUES,
|
||||
checkBinding: view_utils.checkBinding,
|
||||
flattenNestedViewRenderNodes: view_utils.flattenNestedViewRenderNodes,
|
||||
interpolate: view_utils.interpolate,
|
||||
ViewUtils: view_utils.ViewUtils,
|
||||
VIEW_ENCAPSULATION_VALUES: metadata_view.VIEW_ENCAPSULATION_VALUES,
|
||||
ViewMetadata: metadata_view.ViewMetadata,
|
||||
DebugContext: debug_context.DebugContext,
|
||||
StaticNodeDebugInfo: debug_context.StaticNodeDebugInfo,
|
||||
devModeEqual: change_detection_util.devModeEqual,
|
||||
UNINITIALIZED: change_detection_util.UNINITIALIZED,
|
||||
ValueUnwrapper: change_detection_util.ValueUnwrapper,
|
||||
RenderDebugInfo: api.RenderDebugInfo,
|
||||
TemplateRef_: template_ref.TemplateRef_,
|
||||
wtfInit: wtf_init.wtfInit,
|
||||
ReflectionCapabilities: reflection_capabilities.ReflectionCapabilities,
|
||||
makeDecorator: decorators.makeDecorator,
|
||||
DebugDomRootRenderer: debug.DebugDomRootRenderer,
|
||||
EMPTY_ARRAY: view_utils.EMPTY_ARRAY,
|
||||
EMPTY_MAP: view_utils.EMPTY_MAP,
|
||||
pureProxy1: view_utils.pureProxy1,
|
||||
pureProxy2: view_utils.pureProxy2,
|
||||
pureProxy3: view_utils.pureProxy3,
|
||||
pureProxy4: view_utils.pureProxy4,
|
||||
pureProxy5: view_utils.pureProxy5,
|
||||
pureProxy6: view_utils.pureProxy6,
|
||||
pureProxy7: view_utils.pureProxy7,
|
||||
pureProxy8: view_utils.pureProxy8,
|
||||
pureProxy9: view_utils.pureProxy9,
|
||||
pureProxy10: view_utils.pureProxy10,
|
||||
castByValue: view_utils.castByValue,
|
||||
Console: console.Console,
|
||||
reflector: reflection.reflector,
|
||||
Reflector: reflection.Reflector,
|
||||
NoOpAnimationPlayer: NoOpAnimationPlayer_,
|
||||
AnimationPlayer: AnimationPlayer_,
|
||||
AnimationSequencePlayer: AnimationSequencePlayer_,
|
||||
AnimationGroupPlayer: AnimationGroupPlayer_,
|
||||
AnimationKeyframe: AnimationKeyframe_,
|
||||
prepareFinalAnimationStyles: animationUtils.prepareFinalAnimationStyles,
|
||||
balanceAnimationKeyframes: animationUtils.balanceAnimationKeyframes,
|
||||
flattenStyles: animationUtils.flattenStyles,
|
||||
clearStyles: animationUtils.clearStyles,
|
||||
renderStyles: animationUtils.renderStyles,
|
||||
collectAndResolveStyles: animationUtils.collectAndResolveStyles,
|
||||
AnimationStyles: AnimationStyles_,
|
||||
AnimationOutput: AnimationOutput_,
|
||||
ANY_STATE: ANY_STATE_,
|
||||
DEFAULT_STATE: DEFAULT_STATE_,
|
||||
EMPTY_STATE: EMPTY_STATE_,
|
||||
FILL_STYLE_FLAG: FILL_STYLE_FLAG_,
|
||||
ComponentStillLoadingError: ComponentStillLoadingError
|
||||
};
|
@ -1,19 +0,0 @@
|
||||
/**
|
||||
* @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 * as test_compiler from './testing/test_compiler';
|
||||
|
||||
export interface __core_private_testing_types__ {
|
||||
TestingCompiler: test_compiler.TestingCompiler;
|
||||
TestingCompilerFactory: test_compiler.TestingCompilerFactory;
|
||||
}
|
||||
|
||||
export var __core_private_testing__ = {
|
||||
TestingCompiler: test_compiler.TestingCompiler,
|
||||
TestingCompilerFactory: test_compiler.TestingCompilerFactory,
|
||||
};
|
15
modules/@angular/core/rollup-testing.config.js
Normal file
15
modules/@angular/core/rollup-testing.config.js
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/core/testing/index.js',
|
||||
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
||||
format: 'umd',
|
||||
moduleName: 'ng.core.testing',
|
||||
globals: {
|
||||
'@angular/core': 'ng.core',
|
||||
'rxjs/Subject': 'Rx',
|
||||
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs b.6 so we need to fix it when we update.
|
||||
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
||||
'rxjs/Observable': 'Rx'
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/core/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/core/esm/core.umd.js',
|
||||
entry: '../../../dist/packages-dist/core/index.js',
|
||||
dest: '../../../dist/packages-dist/core/bundles/core.umd.js',
|
||||
format: 'umd',
|
||||
moduleName: 'ng.core',
|
||||
globals: {
|
||||
@ -9,9 +9,6 @@ export default {
|
||||
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs b.6 so we need to fix it when we update.
|
||||
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
||||
'rxjs/Observable': 'Rx'
|
||||
},
|
||||
plugins: [
|
||||
// nodeResolve({ jsnext: true, main: true }),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,21 +76,14 @@ export function createPlatform(injector: Injector): PlatformRef {
|
||||
return _platform;
|
||||
}
|
||||
|
||||
/**
|
||||
* Factory for a platform.
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export type PlatformFactory = (extraProviders?: Provider[]) => PlatformRef;
|
||||
|
||||
/**
|
||||
* Creates a factory for a platform
|
||||
*
|
||||
* @experimental APIs related to application bootstrap are currently under review.
|
||||
*/
|
||||
export function createPlatformFactory(
|
||||
parentPlaformFactory: PlatformFactory, name: string,
|
||||
providers: Provider[] = []): PlatformFactory {
|
||||
parentPlaformFactory: (extraProviders?: Provider[]) => PlatformRef, name: string,
|
||||
providers: Provider[] = []): (extraProviders?: Provider[]) => PlatformRef {
|
||||
const marker = new OpaqueToken(`Platform: ${name}`);
|
||||
return (extraProviders: Provider[] = []) => {
|
||||
if (!getPlatform()) {
|
||||
@ -221,7 +214,7 @@ export abstract class PlatformRef {
|
||||
get destroyed(): boolean { throw unimplemented(); }
|
||||
}
|
||||
|
||||
function _callAndReportToExceptionHandler(errorHandler: ErrorHandler, callback: () => any): any {
|
||||
function _callAndReportToErrorHandler(errorHandler: ErrorHandler, callback: () => any): any {
|
||||
try {
|
||||
const result = callback();
|
||||
if (isPromise(result)) {
|
||||
@ -283,11 +276,11 @@ export class PlatformRef_ extends PlatformRef {
|
||||
const moduleRef = <NgModuleInjector<M>>moduleFactory.create(ngZoneInjector);
|
||||
const exceptionHandler: ErrorHandler = moduleRef.injector.get(ErrorHandler, null);
|
||||
if (!exceptionHandler) {
|
||||
throw new Error('No ExceptionHandler. Is platform module (BrowserModule) included?');
|
||||
throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');
|
||||
}
|
||||
moduleRef.onDestroy(() => ListWrapper.remove(this._modules, moduleRef));
|
||||
ngZone.onError.subscribe({next: (error: any) => { exceptionHandler.handleError(error); }});
|
||||
return _callAndReportToExceptionHandler(exceptionHandler, () => {
|
||||
return _callAndReportToErrorHandler(exceptionHandler, () => {
|
||||
const initStatus: ApplicationInitStatus = moduleRef.injector.get(ApplicationInitStatus);
|
||||
return initStatus.donePromise.then(() => {
|
||||
this._moduleDoBootstrap(moduleRef);
|
||||
|
37
modules/@angular/core/src/core.ts
Normal file
37
modules/@angular/core/src/core.ts
Normal file
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point from which you should import all public core APIs.
|
||||
*/
|
||||
export * from './metadata';
|
||||
export * from './util';
|
||||
export * from './di';
|
||||
export {createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './application_ref';
|
||||
export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './application_tokens';
|
||||
export {APP_INITIALIZER, ApplicationInitStatus} from './application_init';
|
||||
export * from './zone';
|
||||
export * from './render';
|
||||
export * from './linker';
|
||||
export {DebugElement, DebugNode, asNativeElements, getDebugNode} from './debug/debug_node';
|
||||
export {GetTestability, Testability, TestabilityRegistry, setTestabilityGetter} from './testability/testability';
|
||||
export * from './change_detection';
|
||||
export * from './platform_core_providers';
|
||||
export {TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID} from './i18n/tokens';
|
||||
export {ApplicationModule} from './application_module';
|
||||
export {wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, WtfScopeFn} from './profile/profile';
|
||||
export {Type} from './type';
|
||||
export {EventEmitter} from './facade/async';
|
||||
export {ErrorHandler} from './error_handler';
|
||||
export * from './core_private_export';
|
||||
export * from './animation/metadata';
|
||||
export {AnimationTransitionEvent} from './animation/animation_transition_event';
|
||||
export {AnimationPlayer} from './animation/animation_player';
|
||||
export {Sanitizer, SecurityContext} from './security';
|
186
modules/@angular/core/src/core_private_export.ts
Normal file
186
modules/@angular/core/src/core_private_export.ts
Normal file
@ -0,0 +1,186 @@
|
||||
/**
|
||||
* @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 {ANY_STATE as ANY_STATE_, DEFAULT_STATE as DEFAULT_STATE_, EMPTY_STATE as EMPTY_STATE_, FILL_STYLE_FLAG as FILL_STYLE_FLAG_} from './animation/animation_constants';
|
||||
import {AnimationGroupPlayer as AnimationGroupPlayer_} from './animation/animation_group_player';
|
||||
import {AnimationKeyframe as AnimationKeyframe_} from './animation/animation_keyframe';
|
||||
import {AnimationOutput as AnimationOutput_} from './animation/animation_output';
|
||||
import {AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_} from './animation/animation_player';
|
||||
import {AnimationSequencePlayer as AnimationSequencePlayer_} from './animation/animation_sequence_player';
|
||||
import * as animationUtils from './animation/animation_style_util';
|
||||
import {AnimationStyles as AnimationStyles_} from './animation/animation_styles';
|
||||
import * as change_detection_util from './change_detection/change_detection_util';
|
||||
import * as constants from './change_detection/constants';
|
||||
import * as console from './console';
|
||||
import * as debug from './debug/debug_renderer';
|
||||
import * as reflective_provider from './di/reflective_provider';
|
||||
import {ComponentStillLoadingError} from './linker/compiler';
|
||||
import * as component_factory_resolver from './linker/component_factory_resolver';
|
||||
import * as debug_context from './linker/debug_context';
|
||||
import * as element from './linker/element';
|
||||
import * as ng_module_factory from './linker/ng_module_factory';
|
||||
import * as template_ref from './linker/template_ref';
|
||||
import * as view from './linker/view';
|
||||
import * as view_type from './linker/view_type';
|
||||
import * as view_utils from './linker/view_utils';
|
||||
import * as lifecycle_hooks from './metadata/lifecycle_hooks';
|
||||
import * as metadata_view from './metadata/view';
|
||||
import * as reflection from './reflection/reflection';
|
||||
// We need to import this name separately from the above wildcard, because this symbol is exposed.
|
||||
import {Reflector} from './reflection/reflection'; // tslint:disable-line
|
||||
import * as reflection_capabilities from './reflection/reflection_capabilities';
|
||||
import * as reflector_reader from './reflection/reflector_reader';
|
||||
import * as reflection_types from './reflection/types';
|
||||
import * as api from './render/api';
|
||||
import * as decorators from './util/decorators';
|
||||
|
||||
export var __core_private__: {
|
||||
isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy,
|
||||
ChangeDetectorStatus: typeof constants.ChangeDetectorStatus,
|
||||
_ChangeDetectorStatus?: constants.ChangeDetectorStatus,
|
||||
CHANGE_DETECTION_STRATEGY_VALUES: typeof constants.CHANGE_DETECTION_STRATEGY_VALUES,
|
||||
constructDependencies: typeof reflective_provider.constructDependencies,
|
||||
LifecycleHooks: typeof lifecycle_hooks.LifecycleHooks,
|
||||
_LifecycleHooks?: lifecycle_hooks.LifecycleHooks,
|
||||
LIFECYCLE_HOOKS_VALUES: typeof lifecycle_hooks.LIFECYCLE_HOOKS_VALUES,
|
||||
ReflectorReader: typeof reflector_reader.ReflectorReader,
|
||||
_ReflectorReader?: reflector_reader.ReflectorReader,
|
||||
_SetterFn?: reflection_types.SetterFn;
|
||||
_GetterFn?: reflection_types.GetterFn;
|
||||
_MethodFn?: reflection_types.MethodFn;
|
||||
CodegenComponentFactoryResolver:
|
||||
typeof component_factory_resolver.CodegenComponentFactoryResolver,
|
||||
_CodegenComponentFactoryResolver?: component_factory_resolver.CodegenComponentFactoryResolver,
|
||||
AppElement: typeof element.AppElement, _AppElement?: element.AppElement,
|
||||
AppView: typeof view.AppView, _AppView?: view.AppView<any>,
|
||||
DebugAppView: typeof view.DebugAppView, _DebugAppView?: view.DebugAppView<any>,
|
||||
NgModuleInjector: typeof ng_module_factory.NgModuleInjector,
|
||||
_NgModuleInjector?: ng_module_factory.NgModuleInjector<any>,
|
||||
ViewType: typeof view_type.ViewType, _ViewType?: view_type.ViewType,
|
||||
MAX_INTERPOLATION_VALUES: typeof view_utils.MAX_INTERPOLATION_VALUES,
|
||||
checkBinding: typeof view_utils.checkBinding,
|
||||
flattenNestedViewRenderNodes: typeof view_utils.flattenNestedViewRenderNodes,
|
||||
interpolate: typeof view_utils.interpolate,
|
||||
ViewUtils: typeof view_utils.ViewUtils, _ViewUtils?: view_utils.ViewUtils,
|
||||
VIEW_ENCAPSULATION_VALUES: typeof metadata_view.VIEW_ENCAPSULATION_VALUES,
|
||||
ViewMetadata: typeof metadata_view.ViewMetadata, _ViewMetadata?: metadata_view.ViewMetadata,
|
||||
DebugContext: typeof debug_context.DebugContext, _DebugContext?: debug_context.DebugContext,
|
||||
StaticNodeDebugInfo: typeof debug_context.StaticNodeDebugInfo,
|
||||
_StaticNodeDebugInfo?: debug_context.StaticNodeDebugInfo,
|
||||
devModeEqual: typeof change_detection_util.devModeEqual,
|
||||
UNINITIALIZED: typeof change_detection_util.UNINITIALIZED,
|
||||
ValueUnwrapper: typeof change_detection_util.ValueUnwrapper,
|
||||
_ValueUnwrapper?: change_detection_util.ValueUnwrapper,
|
||||
RenderDebugInfo: typeof api.RenderDebugInfo, _RenderDebugInfo?: api.RenderDebugInfo,
|
||||
TemplateRef_: typeof template_ref.TemplateRef_, _TemplateRef_?: template_ref.TemplateRef_<any>,
|
||||
ReflectionCapabilities: typeof reflection_capabilities.ReflectionCapabilities,
|
||||
_ReflectionCapabilities?: reflection_capabilities.ReflectionCapabilities,
|
||||
makeDecorator: typeof decorators.makeDecorator,
|
||||
DebugDomRootRenderer: typeof debug.DebugDomRootRenderer,
|
||||
_DebugDomRootRenderer?: debug.DebugDomRootRenderer,
|
||||
EMPTY_ARRAY: typeof view_utils.EMPTY_ARRAY,
|
||||
EMPTY_MAP: typeof view_utils.EMPTY_MAP,
|
||||
pureProxy1: typeof view_utils.pureProxy1,
|
||||
pureProxy2: typeof view_utils.pureProxy2,
|
||||
pureProxy3: typeof view_utils.pureProxy3,
|
||||
pureProxy4: typeof view_utils.pureProxy4,
|
||||
pureProxy5: typeof view_utils.pureProxy5,
|
||||
pureProxy6: typeof view_utils.pureProxy6,
|
||||
pureProxy7: typeof view_utils.pureProxy7,
|
||||
pureProxy8: typeof view_utils.pureProxy8,
|
||||
pureProxy9: typeof view_utils.pureProxy9,
|
||||
pureProxy10: typeof view_utils.pureProxy10,
|
||||
castByValue: typeof view_utils.castByValue,
|
||||
Console: typeof console.Console, _Console?: console.Console,
|
||||
reflector: typeof reflection.reflector,
|
||||
Reflector: typeof reflection.Reflector, _Reflector?: reflection.Reflector,
|
||||
NoOpAnimationPlayer: typeof NoOpAnimationPlayer_, _NoOpAnimationPlayer?: NoOpAnimationPlayer_,
|
||||
AnimationPlayer: typeof AnimationPlayer_, _AnimationPlayer?: AnimationPlayer_,
|
||||
AnimationSequencePlayer: typeof AnimationSequencePlayer_,
|
||||
_AnimationSequencePlayer?: AnimationSequencePlayer_,
|
||||
AnimationGroupPlayer: typeof AnimationGroupPlayer_, _AnimationGroupPlayer?: AnimationGroupPlayer_,
|
||||
AnimationKeyframe: typeof AnimationKeyframe_, _AnimationKeyframe?: AnimationKeyframe_,
|
||||
prepareFinalAnimationStyles: typeof animationUtils.prepareFinalAnimationStyles,
|
||||
balanceAnimationKeyframes: typeof animationUtils.balanceAnimationKeyframes,
|
||||
flattenStyles: typeof animationUtils.flattenStyles,
|
||||
clearStyles: typeof animationUtils.clearStyles,
|
||||
renderStyles: typeof animationUtils.renderStyles,
|
||||
collectAndResolveStyles: typeof animationUtils.collectAndResolveStyles,
|
||||
AnimationStyles: typeof AnimationStyles_, _AnimationStyles?: AnimationStyles_,
|
||||
AnimationOutput: typeof AnimationOutput_, _AnimationOutput?: AnimationOutput_,
|
||||
ANY_STATE: typeof ANY_STATE_,
|
||||
DEFAULT_STATE: typeof DEFAULT_STATE_,
|
||||
EMPTY_STATE: typeof EMPTY_STATE_,
|
||||
FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_, _ComponentStillLoadingError?: ComponentStillLoadingError
|
||||
ComponentStillLoadingError: typeof ComponentStillLoadingError
|
||||
} = {
|
||||
isDefaultChangeDetectionStrategy: constants.isDefaultChangeDetectionStrategy,
|
||||
ChangeDetectorStatus: constants.ChangeDetectorStatus,
|
||||
CHANGE_DETECTION_STRATEGY_VALUES: constants.CHANGE_DETECTION_STRATEGY_VALUES,
|
||||
constructDependencies: reflective_provider.constructDependencies,
|
||||
LifecycleHooks: lifecycle_hooks.LifecycleHooks,
|
||||
LIFECYCLE_HOOKS_VALUES: lifecycle_hooks.LIFECYCLE_HOOKS_VALUES,
|
||||
ReflectorReader: reflector_reader.ReflectorReader,
|
||||
CodegenComponentFactoryResolver: component_factory_resolver.CodegenComponentFactoryResolver,
|
||||
AppElement: element.AppElement,
|
||||
AppView: view.AppView,
|
||||
DebugAppView: view.DebugAppView,
|
||||
NgModuleInjector: ng_module_factory.NgModuleInjector,
|
||||
ViewType: view_type.ViewType,
|
||||
MAX_INTERPOLATION_VALUES: view_utils.MAX_INTERPOLATION_VALUES,
|
||||
checkBinding: view_utils.checkBinding,
|
||||
flattenNestedViewRenderNodes: view_utils.flattenNestedViewRenderNodes,
|
||||
interpolate: view_utils.interpolate,
|
||||
ViewUtils: view_utils.ViewUtils,
|
||||
VIEW_ENCAPSULATION_VALUES: metadata_view.VIEW_ENCAPSULATION_VALUES,
|
||||
ViewMetadata: metadata_view.ViewMetadata,
|
||||
DebugContext: debug_context.DebugContext,
|
||||
StaticNodeDebugInfo: debug_context.StaticNodeDebugInfo,
|
||||
devModeEqual: change_detection_util.devModeEqual,
|
||||
UNINITIALIZED: change_detection_util.UNINITIALIZED,
|
||||
ValueUnwrapper: change_detection_util.ValueUnwrapper,
|
||||
RenderDebugInfo: api.RenderDebugInfo,
|
||||
TemplateRef_: template_ref.TemplateRef_,
|
||||
ReflectionCapabilities: reflection_capabilities.ReflectionCapabilities,
|
||||
makeDecorator: decorators.makeDecorator,
|
||||
DebugDomRootRenderer: debug.DebugDomRootRenderer,
|
||||
EMPTY_ARRAY: view_utils.EMPTY_ARRAY,
|
||||
EMPTY_MAP: view_utils.EMPTY_MAP,
|
||||
pureProxy1: view_utils.pureProxy1,
|
||||
pureProxy2: view_utils.pureProxy2,
|
||||
pureProxy3: view_utils.pureProxy3,
|
||||
pureProxy4: view_utils.pureProxy4,
|
||||
pureProxy5: view_utils.pureProxy5,
|
||||
pureProxy6: view_utils.pureProxy6,
|
||||
pureProxy7: view_utils.pureProxy7,
|
||||
pureProxy8: view_utils.pureProxy8,
|
||||
pureProxy9: view_utils.pureProxy9,
|
||||
pureProxy10: view_utils.pureProxy10,
|
||||
castByValue: view_utils.castByValue,
|
||||
Console: console.Console,
|
||||
reflector: reflection.reflector,
|
||||
Reflector: reflection.Reflector,
|
||||
NoOpAnimationPlayer: NoOpAnimationPlayer_,
|
||||
AnimationPlayer: AnimationPlayer_,
|
||||
AnimationSequencePlayer: AnimationSequencePlayer_,
|
||||
AnimationGroupPlayer: AnimationGroupPlayer_,
|
||||
AnimationKeyframe: AnimationKeyframe_,
|
||||
prepareFinalAnimationStyles: animationUtils.prepareFinalAnimationStyles,
|
||||
balanceAnimationKeyframes: animationUtils.balanceAnimationKeyframes,
|
||||
flattenStyles: animationUtils.flattenStyles,
|
||||
clearStyles: animationUtils.clearStyles,
|
||||
renderStyles: animationUtils.renderStyles,
|
||||
collectAndResolveStyles: animationUtils.collectAndResolveStyles,
|
||||
AnimationStyles: AnimationStyles_,
|
||||
AnimationOutput: AnimationOutput_,
|
||||
ANY_STATE: ANY_STATE_,
|
||||
DEFAULT_STATE: DEFAULT_STATE_,
|
||||
EMPTY_STATE: EMPTY_STATE_,
|
||||
FILL_STYLE_FLAG: FILL_STYLE_FLAG_,
|
||||
ComponentStillLoadingError: ComponentStillLoadingError
|
||||
};
|
@ -19,7 +19,7 @@ import {WrappedError} from './facade/errors';
|
||||
*
|
||||
* ```javascript
|
||||
*
|
||||
* class MyExceptionHandler implements ErrorHandler {
|
||||
* class MyErrorHandler implements ErrorHandler {
|
||||
* call(error, stackTrace = null, reason = null) {
|
||||
* // do something with the exception
|
||||
* }
|
||||
|
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is here because DART requires it. It is noop in JS.
|
||||
*/
|
||||
export function wtfInit() {}
|
@ -176,7 +176,7 @@ export function main() {
|
||||
return defaultPlatform.bootstrapModule(EmptyModule)
|
||||
.then(() => fail('expecting error'), (error) => {
|
||||
expect(error.message)
|
||||
.toEqual('No ExceptionHandler. Is platform module (BrowserModule) included?');
|
||||
.toEqual('No ErrorHandler. Is platform module (BrowserModule) included?');
|
||||
});
|
||||
}));
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
import {ElementSchemaRegistry} from '@angular/compiler/src/schema/element_schema_registry';
|
||||
import {MockSchemaRegistry} from '@angular/compiler/testing';
|
||||
import {TEST_COMPILER_PROVIDERS} from '@angular/compiler/testing/test_bindings';
|
||||
import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentMetadata, DebugElement, Directive, DoCheck, Injectable, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, RenderComponentType, Renderer, RootRenderer, SimpleChange, SimpleChanges, TemplateRef, Type, ViewContainerRef, WrappedValue, forwardRef} from '@angular/core';
|
||||
import {DebugDomRenderer} from '@angular/core/src/debug/debug_renderer';
|
||||
@ -16,6 +15,7 @@ import {By} from '@angular/platform-browser/src/dom/debug/by';
|
||||
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
|
||||
import {DomRootRenderer} from '@angular/platform-browser/src/dom/dom_renderer';
|
||||
|
||||
import {MockSchemaRegistry} from '../../../compiler/testing/index';
|
||||
import {EventEmitter} from '../../src/facade/async';
|
||||
import {StringMapWrapper} from '../../src/facade/collection';
|
||||
import {NumberWrapper, isBlank} from '../../src/facade/lang';
|
||||
|
@ -1,16 +0,0 @@
|
||||
/**
|
||||
* @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 * from './testing/async';
|
||||
export * from './testing/component_fixture';
|
||||
export * from './testing/fake_async';
|
||||
export * from './testing/test_bed';
|
||||
export * from './testing/testing';
|
||||
export * from './testing/metadata_override';
|
||||
|
||||
export * from './private_export_testing';
|
@ -6,10 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, NgZone, getDebugNode} from '../index';
|
||||
import {scheduleMicroTask} from '../src/facade/lang';
|
||||
|
||||
import {tick} from './fake_async';
|
||||
import {ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, NgZone, getDebugNode} from '@angular/core';
|
||||
import {scheduleMicroTask} from './facade/lang';
|
||||
|
||||
|
||||
/**
|
||||
|
1
modules/@angular/core/testing/facade
Symbolic link
1
modules/@angular/core/testing/facade
Symbolic link
@ -0,0 +1 @@
|
||||
../../facade/src
|
@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
const FakeAsyncTestZoneSpec = (Zone as any)['FakeAsyncTestZoneSpec'];
|
||||
type ProxyZoneSpec = {
|
||||
setDelegate(delegateSpec: ZoneSpec): void; getDelegate(): ZoneSpec; resetDelegate(): void;
|
||||
@ -87,6 +86,7 @@ export function fakeAsync(fn: Function): (...args: any[]) => any {
|
||||
return res;
|
||||
} finally {
|
||||
_inFakeAsyncCall = false;
|
||||
resetFakeAsyncZone();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -6,11 +6,16 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the core/testing package.
|
||||
*/
|
||||
|
||||
export * from './async';
|
||||
export * from './component_fixture';
|
||||
export * from './fake_async';
|
||||
export * from './test_bed';
|
||||
export * from './testing';
|
||||
export * from './metadata_override';
|
||||
|
||||
export * from '../private_export_testing';
|
||||
export * from './private_export_testing';
|
||||
|
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Injectable} from '../index';
|
||||
import {Injectable} from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
export class Log {
|
||||
|
@ -6,8 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AnimationPlayer} from '../src/animation/animation_player';
|
||||
import {isPresent} from '../src/facade/lang';
|
||||
import {AnimationPlayer} from '@angular/core';
|
||||
import {isPresent} from './facade/lang';
|
||||
|
||||
export class MockAnimationPlayer implements AnimationPlayer {
|
||||
private _onDoneFns: Function[] = [];
|
||||
|
@ -6,8 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Injectable, NgZone} from '../index';
|
||||
import {EventEmitter} from '../src/facade/async';
|
||||
import {Injectable, NgZone} from '@angular/core';
|
||||
import {EventEmitter} from './facade/async';
|
||||
|
||||
/**
|
||||
* A mock implementation of {@link NgZone}.
|
||||
|
23
modules/@angular/core/testing/private_export_testing.ts
Normal file
23
modules/@angular/core/testing/private_export_testing.ts
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @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 * as mock_animation_player from './mock_animation_player';
|
||||
import * as test_compiler from './test_compiler';
|
||||
|
||||
export var __core_private_testing__: {
|
||||
TestingCompiler: typeof test_compiler.TestingCompiler,
|
||||
_TestingCompiler?: test_compiler.TestingCompiler,
|
||||
TestingCompilerFactory: typeof test_compiler.TestingCompilerFactory,
|
||||
_TestingCompilerFactory?: test_compiler.TestingCompilerFactory,
|
||||
MockAnimationPlayer: typeof mock_animation_player.MockAnimationPlayer
|
||||
_MockAnimationPlayer?: mock_animation_player.MockAnimationPlayer
|
||||
} = {
|
||||
TestingCompiler: test_compiler.TestingCompiler,
|
||||
TestingCompilerFactory: test_compiler.TestingCompilerFactory,
|
||||
MockAnimationPlayer: mock_animation_player.MockAnimationPlayer
|
||||
};
|
@ -6,13 +6,11 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {CompilerOptions, ComponentMetadataType, DirectiveMetadataType, Injector, ModuleWithComponentFactories, NgModule, NgModuleFactory, NgModuleMetadataType, NgModuleRef, NgZone, OpaqueToken, PipeMetadataType, PlatformRef, Provider, SchemaMetadata} from '../index';
|
||||
import {ListWrapper} from '../src/facade/collection';
|
||||
import {FunctionWrapper, stringify} from '../src/facade/lang';
|
||||
import {Type} from '../src/type';
|
||||
|
||||
import {CompilerOptions, ComponentMetadataType, DirectiveMetadataType, Injector, ModuleWithComponentFactories, NgModule, NgModuleFactory, NgModuleMetadataType, NgModuleRef, NgZone, OpaqueToken, PipeMetadataType, PlatformRef, Provider, SchemaMetadata, Type} from '@angular/core';
|
||||
import {AsyncTestCompleter} from './async_test_completer';
|
||||
import {ComponentFixture} from './component_fixture';
|
||||
import {ListWrapper} from './facade/collection';
|
||||
import {FunctionWrapper, stringify} from './facade/lang';
|
||||
import {MetadataOverride} from './metadata_override';
|
||||
import {TestingCompiler, TestingCompilerFactory} from './test_compiler';
|
||||
|
||||
@ -44,7 +42,7 @@ export var ComponentFixtureNoNgZone = new OpaqueToken('ComponentFixtureNoNgZone'
|
||||
*/
|
||||
export type TestModuleMetadata = {
|
||||
providers?: any[]; declarations?: any[]; imports?: any[]; schemas?: Array<SchemaMetadata|any[]>;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
|
@ -6,11 +6,12 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Compiler, CompilerOptions, ComponentMetadataType, DirectiveMetadataType, Injector, NgModuleMetadataType, PipeMetadataType} from '../index';
|
||||
import {unimplemented} from '../src/facade/errors';
|
||||
import {Type} from '../src/type';
|
||||
import {Compiler, CompilerOptions, ComponentMetadataType, DirectiveMetadataType, Injector, NgModuleMetadataType, PipeMetadataType, Type} from '@angular/core';
|
||||
|
||||
import {unimplemented} from './facade/errors';
|
||||
import {MetadataOverride} from './metadata_override';
|
||||
|
||||
|
||||
/**
|
||||
* Special interface to the compiler only used by testing
|
||||
*
|
||||
|
@ -6,15 +6,15 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {StringMapWrapper} from '../src/facade/collection';
|
||||
import {Math, global, isPromise} from '../src/facade/lang';
|
||||
|
||||
import {AsyncTestCompleter} from './async_test_completer';
|
||||
import {StringMapWrapper} from './facade/collection';
|
||||
import {Math, global, isPromise} from './facade/lang';
|
||||
import {TestBed, getTestBed, inject} from './test_bed';
|
||||
|
||||
export {AsyncTestCompleter} from './async_test_completer';
|
||||
export {MockAnimationPlayer} from './mock_animation_player';
|
||||
export {inject} from './test_bed';
|
||||
|
||||
export * from './logger';
|
||||
export * from './ng_zone_mock';
|
||||
|
||||
|
@ -4,21 +4,22 @@
|
||||
"declaration": true,
|
||||
"stripInternal": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "commonjs",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../../dist/packages-dist/core/",
|
||||
"outDir": "../../../dist/packages-dist/core",
|
||||
"paths": {
|
||||
"rxjs/*": ["../../../node_modules/rxjs/*"]
|
||||
"rxjs/*": ["../../../node_modules/rxjs/*"],
|
||||
"@angular/core": ["../../../dist/packages-dist/core"]
|
||||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"lib": ["es6", "dom"],
|
||||
"target": "es5"
|
||||
"target": "es5",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
"testing.ts",
|
||||
"testing/index.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||
"../../system.d.ts"
|
||||
],
|
@ -6,18 +6,19 @@
|
||||
"experimentalDecorators": true,
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../../dist/packages-dist/core/esm",
|
||||
"outDir": "../../../dist/packages-dist/core",
|
||||
"paths": {
|
||||
"rxjs/*": ["../../../node_modules/rxjs/*"]
|
||||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
"target": "es5",
|
||||
"lib": ["es2015", "dom"],
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
"testing.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||
"../../system.d.ts"
|
||||
],
|
Reference in New Issue
Block a user