build(animations): adjust animations/browser source to new standard for automatic build (#15043)
This commit is contained in:
parent
195b863ea4
commit
21a18d6ceb
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["es2015"],
|
|
||||||
"plugins": [["transform-es2015-modules-umd", {
|
|
||||||
"globals": {
|
|
||||||
},
|
|
||||||
"exactGlobals": true
|
|
||||||
}]],
|
|
||||||
"moduleId": "@angular/animations/browser"
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
{
|
|
||||||
"presets": ["es2015"],
|
|
||||||
"plugins": [["transform-es2015-modules-umd", {
|
|
||||||
"globals": {
|
|
||||||
"@angular/animations": "ng.animations"
|
|
||||||
},
|
|
||||||
"exactGlobals": true
|
|
||||||
}]],
|
|
||||||
"moduleId": "@angular/animations/browser/testing"
|
|
||||||
}
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"typings": "../typings/browser/index.d.ts",
|
||||||
|
"main": "../bundles/animation-browser.umd.js",
|
||||||
|
"module": "../@angular/animations/browser.es5.js",
|
||||||
|
"es2015": "../@angular/animations/browser.js"
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* @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 default {
|
||||||
|
entry: '../../../dist/packages-dist/animations/@angular/animations/browser.es5.js',
|
||||||
|
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
|
||||||
|
format: 'umd',
|
||||||
|
moduleName: 'ng.animations.browser',
|
||||||
|
globals: {
|
||||||
|
'@angular/core': 'ng.core',
|
||||||
|
'@angular/common': 'ng.common',
|
||||||
|
'@angular/animations': 'ng.animations'
|
||||||
|
}
|
||||||
|
};
|
|
@ -6,13 +6,13 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
import {AnimationEvent, NoopAnimationPlayer, animate, keyframes, state, style, transition, trigger} from '@angular/animations';
|
import {AnimationEvent, NoopAnimationPlayer, animate, keyframes, state, style, transition, trigger} from '@angular/animations';
|
||||||
import {el} from '@angular/platform-browser/testing/browser_util';
|
import {el} from '@angular/platform-browser/testing/src/browser_util';
|
||||||
|
|
||||||
import {buildAnimationKeyframes} from '../../src/dsl/animation_timeline_visitor';
|
import {buildAnimationKeyframes} from '../../src/dsl/animation_timeline_visitor';
|
||||||
import {buildTrigger} from '../../src/dsl/animation_trigger';
|
import {buildTrigger} from '../../src/dsl/animation_trigger';
|
||||||
import {AnimationStyleNormalizer, NoopAnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer';
|
import {AnimationStyleNormalizer, NoopAnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer';
|
||||||
import {DomAnimationEngine} from '../../src/render/dom_animation_engine';
|
import {DomAnimationEngine} from '../../src/render/dom_animation_engine';
|
||||||
import {MockAnimationDriver, MockAnimationPlayer} from '../../testing/mock_animation_driver';
|
import {MockAnimationDriver, MockAnimationPlayer} from '../../testing/src/mock_animation_driver';
|
||||||
|
|
||||||
function makeTrigger(name: string, steps: any) {
|
function makeTrigger(name: string, steps: any) {
|
||||||
const triggerData = trigger(name, steps);
|
const triggerData = trigger(name, steps);
|
||||||
|
|
|
@ -7,15 +7,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry:
|
entry: '../../../../dist/packages-dist/animations/@angular/animations/browser/testing.es5.js',
|
||||||
'../../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations/testing.es5.js',
|
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
|
||||||
dest:
|
|
||||||
'../../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations-testing.umd.js',
|
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowser.testing',
|
moduleName: 'ng.animations.browser.testing',
|
||||||
globals: {
|
globals: {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
'@angular/common': 'ng.common',
|
'@angular/common': 'ng.common',
|
||||||
'@angular/platform-browser': 'ng.platformBrowser'
|
'@angular/animations': 'ng.animations'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
import {AUTO_STYLE, AnimationPlayer, NoopAnimationPlayer, ɵStyleData} from '@angular/animations';
|
import {AUTO_STYLE, AnimationPlayer, NoopAnimationPlayer, ɵStyleData} from '@angular/animations';
|
||||||
|
|
||||||
import {AnimationDriver} from '../src/render/animation_driver';
|
import {AnimationDriver} from '../../src/render/animation_driver';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @experimental Animation support is experimental.
|
* @experimental Animation support is experimental.
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig-build",
|
"extends": "../../tsconfig-build",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../../dist/packages-dist/animations",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@angular/animations": ["../../../dist/packages-dist/animations"]
|
"@angular/animations": ["../../dist/packages/animations"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"browser/testing/index.ts",
|
"index.ts",
|
||||||
"../../../node_modules/@types/hammerjs/index.d.ts",
|
"../../../../node_modules/@types/hammerjs/index.d.ts",
|
||||||
"../../../node_modules/@types/jasmine/index.d.ts",
|
"../../../../node_modules/@types/jasmine/index.d.ts",
|
||||||
"../../../node_modules/zone.js/dist/zone.js.d.ts"
|
"../../../../node_modules/zone.js/dist/zone.js.d.ts"
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"strictMetadataEmit": true
|
"strictMetadataEmit": true
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig-build",
|
"extends": "../tsconfig-build",
|
||||||
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../../dist/packages-dist/animations",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@angular/animations": ["../../../dist/packages-dist/animations"]
|
"@angular/animations": ["../../dist/packages/animations"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"browser/public_api.ts",
|
"public_api.ts",
|
||||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||||
"../../system.d.ts"
|
"../../system.d.ts"
|
||||||
],
|
],
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"module": "es2015",
|
"module": "es2015",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "../../../dist/packages-dist/animations",
|
"outDir": "../../dist/packages/animations",
|
||||||
"paths": {
|
"paths": {
|
||||||
},
|
},
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
|
@ -20,8 +20,8 @@
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"public_api.ts",
|
"public_api.ts",
|
||||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
"../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||||
"../../system.d.ts"
|
"../system.d.ts"
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"annotateForClosureCompiler": true,
|
"annotateForClosureCompiler": true,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
import {NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
import {BrowserModule} from '../../src/browser';
|
||||||
|
|
||||||
import {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';
|
import {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import {AnimationDriver, ɵAnimationEngine as AnimationEngine, ɵAnimationStyleNormalizer as AnimationStyleNormalizer, ɵDomAnimationEngine as DomAnimationEngine, ɵNoopAnimationDriver as NoopAnimationDriver, ɵNoopAnimationEngine as NoopAnimationEngine, ɵWebAnimationsDriver as WebAnimationsDriver, ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer, ɵsupportsWebAnimations as supportsWebAnimations} from '@angular/animations/browser';
|
import {AnimationDriver, ɵAnimationEngine as AnimationEngine, ɵAnimationStyleNormalizer as AnimationStyleNormalizer, ɵDomAnimationEngine as DomAnimationEngine, ɵNoopAnimationDriver as NoopAnimationDriver, ɵNoopAnimationEngine as NoopAnimationEngine, ɵWebAnimationsDriver as WebAnimationsDriver, ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer, ɵsupportsWebAnimations as supportsWebAnimations} from '@angular/animations/browser';
|
||||||
import {Injectable, NgZone, Provider, RendererFactory2} from '@angular/core';
|
import {Injectable, NgZone, Provider, RendererFactory2} from '@angular/core';
|
||||||
import {ɵDomRendererFactory2} from '@angular/platform-browser';
|
import {DomRendererFactory2} from '../../src/dom/dom_renderer';
|
||||||
|
|
||||||
import {AnimationRendererFactory} from './animation_renderer';
|
import {AnimationRendererFactory} from './animation_renderer';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export function instantiateDefaultStyleNormalizer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function instantiateRendererFactory(
|
export function instantiateRendererFactory(
|
||||||
renderer: ɵDomRendererFactory2, engine: AnimationEngine, zone: NgZone) {
|
renderer: DomRendererFactory2, engine: AnimationEngine, zone: NgZone) {
|
||||||
return new AnimationRendererFactory(renderer, engine, zone);
|
return new AnimationRendererFactory(renderer, engine, zone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export const BROWSER_ANIMATIONS_PROVIDERS: Provider[] = [
|
||||||
{provide: AnimationEngine, useClass: InjectableAnimationEngine}, {
|
{provide: AnimationEngine, useClass: InjectableAnimationEngine}, {
|
||||||
provide: RendererFactory2,
|
provide: RendererFactory2,
|
||||||
useFactory: instantiateRendererFactory,
|
useFactory: instantiateRendererFactory,
|
||||||
deps: [ɵDomRendererFactory2, AnimationEngine, NgZone]
|
deps: [DomRendererFactory2, AnimationEngine, NgZone]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -57,6 +57,6 @@ export const BROWSER_NOOP_ANIMATIONS_PROVIDERS: Provider[] = [
|
||||||
{provide: AnimationEngine, useClass: NoopAnimationEngine}, {
|
{provide: AnimationEngine, useClass: NoopAnimationEngine}, {
|
||||||
provide: RendererFactory2,
|
provide: RendererFactory2,
|
||||||
useFactory: instantiateRendererFactory,
|
useFactory: instantiateRendererFactory,
|
||||||
deps: [ɵDomRendererFactory2, AnimationEngine, NgZone]
|
deps: [DomRendererFactory2, AnimationEngine, NgZone]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
import {state, style, trigger} from '@angular/animations';
|
import {state, style, trigger} from '@angular/animations';
|
||||||
import {ɵNoopAnimationEngine as NoopAnimationEngine} from '@angular/animations/browser';
|
import {ɵNoopAnimationEngine as NoopAnimationEngine} from '@angular/animations/browser';
|
||||||
import {el} from '@angular/platform-browser/testing/browser_util';
|
import {el} from '@angular/platform-browser/testing/src/browser_util';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe('NoopAnimationEngine', () => {
|
describe('NoopAnimationEngine', () => {
|
||||||
|
|
|
@ -1,19 +1,18 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig-build",
|
"extends": "../tsconfig-build",
|
||||||
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../../dist/packages-dist/platform-browser",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"rxjs/*": ["../../../node_modules/rxjs/*"],
|
"rxjs/*": ["../../node_modules/rxjs/*"],
|
||||||
"@angular/core": ["../../../dist/packages-dist/core"],
|
"@angular/core": ["../../dist/packages/core"],
|
||||||
"@angular/core/testing": ["../../../dist/packages-dist/core/testing"],
|
"@angular/core/testing": ["../../dist/packages/core/testing"],
|
||||||
"@angular/animations": ["../../../dist/packages-dist/animations"],
|
"@angular/animations": ["../../dist/packages/animations"],
|
||||||
"@angular/animations/browser": ["../../../dist/packages-dist/animations/browser"],
|
"@angular/animations/browser": ["../../dist/packages/animations/browser"],
|
||||||
"@angular/platform-browser": ["../../../dist/packages-dist/platform-browser"]
|
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"animations/public_api.ts",
|
"public_api.ts",
|
||||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||||
"../../system.d.ts"
|
"../../system.d.ts"
|
||||||
],
|
],
|
||||||
|
|
|
@ -7,7 +7,7 @@ const entrypoints = [
|
||||||
//'dist/packages-dist/compiler/index.d.ts',
|
//'dist/packages-dist/compiler/index.d.ts',
|
||||||
//'dist/packages-dist/compiler/testing.d.ts',
|
//'dist/packages-dist/compiler/testing.d.ts',
|
||||||
'dist/packages-dist/upgrade/typings/upgrade.d.ts',
|
'dist/packages-dist/upgrade/typings/upgrade.d.ts',
|
||||||
'dist/packages-dist/upgrade/typings/static/static.d.ts',
|
'dist/packages-dist/upgrade/typings/static/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/platform-browser.d.ts',
|
'dist/packages-dist/platform-browser/typings/platform-browser.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/testing/index.d.ts',
|
'dist/packages-dist/platform-browser/typings/testing/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser-dynamic/typings/platform-browser-dynamic.d.ts',
|
'dist/packages-dist/platform-browser-dynamic/typings/platform-browser-dynamic.d.ts',
|
||||||
|
@ -19,9 +19,9 @@ const entrypoints = [
|
||||||
'dist/packages-dist/http/typings/http.d.ts', 'dist/packages-dist/http/typings/testing/index.d.ts',
|
'dist/packages-dist/http/typings/http.d.ts', 'dist/packages-dist/http/typings/testing/index.d.ts',
|
||||||
'dist/packages-dist/forms/typings/forms.d.ts', 'dist/packages-dist/router/typings/router.d.ts',
|
'dist/packages-dist/forms/typings/forms.d.ts', 'dist/packages-dist/router/typings/router.d.ts',
|
||||||
'dist/packages-dist/animations/typings/animations.d.ts',
|
'dist/packages-dist/animations/typings/animations.d.ts',
|
||||||
'dist/packages-dist/animations/typings/browser/browser.d.ts',
|
'dist/packages-dist/animations/typings/browser/index.d.ts',
|
||||||
'dist/packages-dist/animations/typings/browser/testing/index.d.ts',
|
'dist/packages-dist/animations/typings/browser/testing/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/animations/animations.d.ts'
|
'dist/packages-dist/platform-browser/typings/animations/index.d.ts'
|
||||||
];
|
];
|
||||||
|
|
||||||
const publicApiDir = 'tools/public_api_guard';
|
const publicApiDir = 'tools/public_api_guard';
|
||||||
|
|
Loading…
Reference in New Issue