build(animations): adjust animations/browser source to new standard for automatic build (#15043)

This commit is contained in:
Jason Aden
2017-03-09 12:01:40 -08:00
committed by Chuck Jazdzewski
parent 195b863ea4
commit 21a18d6ceb
16 changed files with 61 additions and 61 deletions

View File

@ -1,9 +0,0 @@
{
"presets": ["es2015"],
"plugins": [["transform-es2015-modules-umd", {
"globals": {
},
"exactGlobals": true
}]],
"moduleId": "@angular/animations/browser"
}

View File

@ -1,11 +0,0 @@
{
"presets": ["es2015"],
"plugins": [["transform-es2015-modules-umd", {
"globals": {
"@angular/animations": "ng.animations"
},
"exactGlobals": true
}]],
"moduleId": "@angular/animations/browser/testing"
}

View File

@ -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"
}

View File

@ -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'
}
};

View File

@ -6,13 +6,13 @@
* found in the LICENSE file at https://angular.io/license
*/
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 {buildTrigger} from '../../src/dsl/animation_trigger';
import {AnimationStyleNormalizer, NoopAnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer';
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) {
const triggerData = trigger(name, steps);

View File

@ -7,15 +7,13 @@
*/
export default {
entry:
'../../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations/testing.es5.js',
dest:
'../../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations-testing.umd.js',
entry: '../../../../dist/packages-dist/animations/@angular/animations/browser/testing.es5.js',
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
format: 'umd',
moduleName: 'ng.platformBrowser.testing',
moduleName: 'ng.animations.browser.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser'
'@angular/animations': 'ng.animations'
}
};

View File

@ -7,7 +7,7 @@
*/
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.

View File

@ -1,16 +1,15 @@
{
"extends": "./tsconfig-build",
"extends": "../../tsconfig-build",
"compilerOptions": {
"outDir": "../../../dist/packages-dist/animations",
"paths": {
"@angular/animations": ["../../../dist/packages-dist/animations"]
"@angular/animations": ["../../dist/packages/animations"]
}
},
"files": [
"browser/testing/index.ts",
"../../../node_modules/@types/hammerjs/index.d.ts",
"../../../node_modules/@types/jasmine/index.d.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts"
"index.ts",
"../../../../node_modules/@types/hammerjs/index.d.ts",
"../../../../node_modules/@types/jasmine/index.d.ts",
"../../../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"strictMetadataEmit": true

View File

@ -1,14 +1,13 @@
{
"extends": "./tsconfig-build",
"extends": "../tsconfig-build",
"compilerOptions": {
"outDir": "../../../dist/packages-dist/animations",
"paths": {
"@angular/animations": ["../../../dist/packages-dist/animations"]
"@angular/animations": ["../../dist/packages/animations"]
}
},
"files": [
"browser/public_api.ts",
"public_api.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts",
"../../system.d.ts"
],