Skip to content

Commit 1bd8dbb

Browse files
authored
chore(): angularfire2 shim (#1864)
1 parent 78a9736 commit 1bd8dbb

File tree

25 files changed

+226
-2
lines changed

25 files changed

+226
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ angularfire2-*.tgz
1212
.DS_Store
1313
yarn-error.log
1414
*.bak
15+
package-lock.json

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"test:universal": "npm run build && cp -R dist/packages-dist test/universal-test/node_modules/angularfire2 && cd test/universal-test && npm run prerender",
1212
"delayed_karma": "sleep 10 && karma start",
1313
"build": "rm -rf dist && node tools/build.js",
14-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
14+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
15+
"build:wrapper": "npm i --prefix wrapper && VERSION=5.0.0 npm run --prefix wrapper build"
1516
},
1617
"keywords": [
1718
"angular",

src/core/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"keywords": [
99
"angular",
1010
"firebase",
11-
"rxjs"
11+
"rxjs",
12+
"angularfire",
13+
"angularfire2"
1214
],
1315
"repository": {
1416
"type": "git",

wrapper/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "angularfire2",
3+
"version": "5.0.0",
4+
"description": "The core module",
5+
"main": "index.js",
6+
"keywords": [],
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/angular/angularfire2.git"
10+
},
11+
"scripts": {
12+
"build": "rm -rf ../dist/wrapper-dist && tsc -p ./tsconfig.json && rsync -a --include '*.json' --include '*.md' --include '*/' --exclude '*' ./src/ ../dist/wrapper-dist/ && sed -i -- 's/ANGULARFIRE2_VERSION/'\"$VERSION\"'/g' ../dist/wrapper-dist/*.json && sed -i -- 's/ANGULARFIRE2_VERSION/'\"$VERSION\"'/g' ../dist/wrapper-dist/**/*.json && rm ../dist/wrapper-dist/*.json-- && rm ../dist/wrapper-dist/**/*.json--"
13+
},
14+
"author": "angular,firebase",
15+
"license": "MIT",
16+
"dependencies": {
17+
"@angular/fire": "^5.0.0"
18+
},
19+
"typings": "index.d.ts",
20+
"devDependencies": {
21+
"typescript": "^3.0.3"
22+
}
23+
}

wrapper/src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This package has moved, we're now at [@angular/fire](https://www.npmjs.com/package/@angular/fire).

wrapper/src/auth/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@angular/fire/auth';

wrapper/src/auth/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/auth",
3+
"version": "ANGULARFIRE2_VERSION",
4+
"main": "index.js",
5+
"keywords": [],
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/angular/angularfire2.git"
9+
},
10+
"author": "angular,firebase",
11+
"license": "MIT",
12+
"dependencies": {
13+
"@angular/fire": "ANGULARFIRE2_VERSION"
14+
},
15+
"typings": "index.d.ts"
16+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
function __export(m) {
3+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4+
}
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
__export(require("@angular/fire/database-deprecated"));
7+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHVEQUFrRCJ9
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/database-deprecated",
3+
"version": "ANGULARFIRE2_VERSION",
4+
"main": "index.js",
5+
"keywords": [],
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/angular/angularfire2.git"
9+
},
10+
"author": "angular,firebase",
11+
"license": "MIT",
12+
"dependencies": {
13+
"@angular/fire": "ANGULARFIRE2_VERSION"
14+
},
15+
"typings": "index.d.ts"
16+
}

wrapper/src/database/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@angular/fire/database';

0 commit comments

Comments
 (0)