forked from angular/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(packaging): add aot-friendly packaging
This change introduces a UMD bundle to the published package, and adds ES2015 modules to the root of the project. Some changes were necessary to fix imports and make rollup work correctly. This change should make AngularFire2 ahead-of-time-compilation -friendly.
- Loading branch information
1 parent
90ccc2d
commit ec58e05
Showing
16 changed files
with
94 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default (mod) => { | ||
if (mod === 'rxjs') return 'Rx'; | ||
if (mod.indexOf('rxjs/operator') === 0) return `Rx.Observable.prototype`; | ||
if (mod === 'rxjs/scheduler/queue') return 'Rx.Scheduler'; | ||
if (mod.indexOf('rxjs/') === 0) return 'Rx'; | ||
|
||
if (mod === 'firebase') return 'firebase'; | ||
if (mod === '@angular/core') return 'ng.core'; | ||
if (mod === '@angular/core/testing') return 'ng.core.testing'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import globals from './rollup-globals'; | ||
|
||
export default { | ||
entry: 'dist/index.js', | ||
dest: 'dist/bundles/angularFire2.umd.js', | ||
format: 'umd', | ||
moduleName: 'angularFire2', | ||
globals | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import globals from './rollup-globals'; | ||
|
||
export default { | ||
entry: 'dist/test-root.js', | ||
dest: 'dist/bundles/test-root.umd.js', | ||
format: 'umd', | ||
moduleName: 'angularFire2.test', | ||
globals | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './angularfire2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export * from './angularfire2.spec'; | ||
export * from './database/firebase_list_factory.spec'; | ||
export * from './database/firebase_object_factory.spec'; | ||
export * from './database/firebase_list_observable.spec'; | ||
export * from './database/firebase_object_observable.spec'; | ||
export * from './database/query_observable.spec'; | ||
export * from './auth/auth.spec'; | ||
export * from './auth/auth_backend.spec'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.