From 66b6fc010d8497410b521290bac25b7f22a46642 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 5 Dec 2016 12:03:35 -0800 Subject: [PATCH] refactor(common): unify export structure --- modules/@angular/common/index.ts | 3 ++- modules/@angular/common/src/location.ts | 13 ------------- .../common/src/{pipes.ts => location/index.ts} | 10 +++++----- 3 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 modules/@angular/common/src/location.ts rename modules/@angular/common/src/{pipes.ts => location/index.ts} (52%) diff --git a/modules/@angular/common/index.ts b/modules/@angular/common/index.ts index f7ad39771a..3b58d02c65 100644 --- a/modules/@angular/common/index.ts +++ b/modules/@angular/common/index.ts @@ -11,12 +11,13 @@ * @description * Entry point for all public APIs of the common package. */ -export * from './src/location'; +export * from './src/location/index'; export {NgLocalization} from './src/localization'; export {CommonModule} from './src/common_module'; export {NgClass, NgFor, NgIf, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet} from './src/directives/index'; export {AsyncPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe} from './src/pipes/index'; import {Version} from '@angular/core'; + /** * @stable */ diff --git a/modules/@angular/common/src/location.ts b/modules/@angular/common/src/location.ts deleted file mode 100644 index a794c6bc1f..0000000000 --- a/modules/@angular/common/src/location.ts +++ /dev/null @@ -1,13 +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 './location/platform_location'; -export * from './location/location_strategy'; -export * from './location/hash_location_strategy'; -export * from './location/path_location_strategy'; -export * from './location/location'; diff --git a/modules/@angular/common/src/pipes.ts b/modules/@angular/common/src/location/index.ts similarity index 52% rename from modules/@angular/common/src/pipes.ts rename to modules/@angular/common/src/location/index.ts index 83084589d7..5707ccd33f 100644 --- a/modules/@angular/common/src/pipes.ts +++ b/modules/@angular/common/src/location/index.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -/** - * @module - * @description - * This module provides a set of common Pipes. - */ +export * from './platform_location'; +export * from './location_strategy'; +export * from './hash_location_strategy'; +export * from './path_location_strategy'; +export * from './location';