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

wrapper/src/database/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/database",
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/firebase-node/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@angular/fire/firebase-node';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/firebase-node",
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/firestore/index.ts

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

wrapper/src/firestore/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/firestore",
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/functions/index.ts

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

wrapper/src/functions/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/functions",
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/index.ts

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

wrapper/src/messaging/index.ts

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

wrapper/src/messaging/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/messaging",
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/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "angularfire2",
3+
"version": "ANGULARFIRE2_VERSION",
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+
"author": "angular,firebase",
12+
"license": "MIT",
13+
"dependencies": {
14+
"@angular/fire": "ANGULARFIRE2_VERSION"
15+
},
16+
"typings": "index.d.ts"
17+
}
18+

wrapper/src/storage/index.ts

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

wrapper/src/storage/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "angularfire2/storage",
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/tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"declaration": true,
5+
"experimentalDecorators": true,
6+
"emitDecoratorMetadata": true,
7+
"module": "commonjs",
8+
"moduleResolution": "node",
9+
"strictNullChecks": true,
10+
"noImplicitAny": false,
11+
"noFallthroughCasesInSwitch": true,
12+
"rootDir": "./src",
13+
"inlineSourceMap": true,
14+
"lib": ["es5", "dom", "es2015.promise", "es2015.collection", "es2015.iterable"],
15+
"skipDefaultLibCheck": true,
16+
"skipLibCheck": true,
17+
"target": "es2015",
18+
"outDir": "../dist/wrapper-dist"
19+
},
20+
"exclude": [
21+
"node_modules/**/*",
22+
]
23+
}
24+

wrapper/yarn.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
"@angular/fire@^5.0.0":
6+
version "5.0.0"
7+
resolved "https://registry.yarnpkg.com/@angular/fire/-/fire-5.0.0.tgz#2f07bd7b429d4752badbd53c15a9a3848009e2d5"
8+
9+
typescript@^3.0.3:
10+
version "3.0.3"
11+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3.tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8"

0 commit comments

Comments
 (0)