build(animations): adjust animations/browser source to new standard for automatic build (#15043)
This commit is contained in:

committed by
Chuck Jazdzewski

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"
|
||||
}
|
6
packages/animations/browser/package.json
Normal file
6
packages/animations/browser/package.json
Normal 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"
|
||||
}
|
19
packages/animations/browser/rollup.config.js
Normal file
19
packages/animations/browser/rollup.config.js
Normal 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'
|
||||
}
|
||||
};
|
@ -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);
|
||||
|
@ -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'
|
||||
}
|
||||
};
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
|
Reference in New Issue
Block a user