Skip to content

Commit 50b31f9

Browse files
committed
Angular Package Manager changes and more
No longer need to add all the deps and stuff in each package.json, simplify all this. Also indicate side effects for webpack to do it's thing. Pack after build too.
1 parent b31b8f7 commit 50b31f9

File tree

13 files changed

+27
-244
lines changed

13 files changed

+27
-244
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ typings/
66
npm-debug.log
77
.idea/
88
.vscode/settings.json
9+
angular-fire-*.tgz
910
angularfire2-*.tgz
1011
*.ngfactory.ts
1112
*.ngsummary.json

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"karma": "karma start",
1212
"test:universal": "npm run build && cp -R dist/packages-dist test/universal-test/node_modules/angularfire2 && cd test/universal-test && npm run prerender",
1313
"delayed_karma": "sleep 10 && karma start",
14-
"build": "rm -rf dist && node tools/build.js",
14+
"build": "rm -rf dist && node tools/build.js && npm pack ./dist/packages-dist",
1515
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
16-
"build:wrapper": "npm i --prefix wrapper && npm run --prefix wrapper build"
16+
"build:wrapper": "npm i --prefix wrapper && npm run --prefix wrapper build && npm pack ./dist/wrapper-dist"
1717
},
1818
"schematics": "./dist/packages-dist/collection.json",
1919
"builders": "./dist/packages-dist/builders.json",
@@ -50,7 +50,7 @@
5050
"rxjs": "^6.0.0",
5151
"ws": "^3.3.2",
5252
"xhr2": "^0.1.4",
53-
"zone.js": "<0.10"
53+
"zone.js": "^0.8 || ^0.9"
5454
},
5555
"optionalDependencies": {
5656
"bufferutil": "~3.0.0",

src/auth-guard/package.json

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
11
{
22
"name": "@angular/fire/auth-guard",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The auth guard module",
53
"main": "../bundles/auth-guard.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"@angular/router": "ANGULAR_VERSION",
26-
"firebase": "FIREBASE_VERSION",
27-
"rxjs": "RXJS_VERSION",
28-
"zone.js": "ZONEJS_VERSION"
29-
},
30-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
318
}
329

src/auth/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/auth",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The auth module",
53
"main": "../bundles/auth.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"fuzzy": "FUZZY_VERSION",
3434
"inquirer": "INQUIRER_VERSION",
3535
"inquirer-autocomplete-prompt": "INQUIRER_AUTOCOMPLETE_VERSION",
36-
"rxjs": "RXJS_VERSION",
37-
"zone.js": "ZONEJS_VERSION"
36+
"rxjs": "RXJS_VERSION"
3837
},
39-
"typings": "index.d.ts"
38+
"typings": "index.d.ts",
39+
"sideEffects": false
4040
}

src/database-deprecated/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/database-deprecated",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The database module",
53
"main": "../bundles/database.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/database/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/database",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The database module",
53
"main": "../bundles/database.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/firebase-node/package.json

+2-20
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,7 @@
33
"version": "ANGULARFIRE2_VERSION",
44
"description": "Fixes for Node.js",
55
"main": "index.js",
6-
"keywords": [
7-
"angular",
8-
"firebase",
9-
"rxjs"
10-
],
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/angular/angularfire2.git"
14-
},
15-
"author": "angular,firebase",
16-
"license": "MIT",
17-
"dependencies": {
18-
"xhr2": "XHR2_VERSION",
19-
"ws": "WS_VERSION"
20-
},
21-
"optionalDependencies": {
22-
"bufferutil": "BUFFERUTIL_VERSION",
23-
"utf-8-validate": "UTF_8_VALIDATE_VERSION"
24-
},
25-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": true
268
}
279

src/firestore/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/firestore",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The firestore module",
53
"main": "../bundles/firestore.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/functions/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/functions",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The functions module",
53
"main": "../bundles/functions.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/messaging/package.json

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,8 @@
11
{
22
"name": "@angular/fire/messaging",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The messaging module",
53
"main": "../bundles/messaging.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"@firebase/app": "FIREBASE_APP_VERSION",
26-
"@firebase/messaging": "FIREBASE_MESSAGING_VERSION",
27-
"rxjs": "RXJS_VERSION",
28-
"zone.js": "ZONEJS_VERSION"
29-
},
30-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
318
}

src/performance/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/performance",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The performance monitoring module",
53
"main": "../bundles/performance.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

src/storage/package.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"name": "@angular/fire/storage",
3-
"version": "ANGULARFIRE2_VERSION",
4-
"description": "The storage module",
53
"main": "../bundles/storage.umd.js",
64
"module": "index.js",
75
"es2015": "./es2015/index.js",
8-
"keywords": [
9-
"angular",
10-
"firebase",
11-
"rxjs"
12-
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/angular/angularfire2.git"
16-
},
17-
"author": "angular,firebase",
18-
"license": "MIT",
19-
"peerDependencies": {
20-
"@angular/fire": "ANGULARFIRE2_VERSION",
21-
"@angular/common": "ANGULAR_VERSION",
22-
"@angular/core": "ANGULAR_VERSION",
23-
"@angular/platform-browser": "ANGULAR_VERSION",
24-
"@angular/platform-browser-dynamic": "ANGULAR_VERSION",
25-
"firebase": "FIREBASE_VERSION",
26-
"rxjs": "RXJS_VERSION",
27-
"zone.js": "ZONEJS_VERSION"
28-
},
29-
"typings": "index.d.ts"
6+
"typings": "index.d.ts",
7+
"sideEffects": false
308
}

0 commit comments

Comments
 (0)