Skip to content

Commit bd8d5fc

Browse files
Parallelized builds
1 parent 0f7d4c3 commit bd8d5fc

15 files changed

+366
-315
lines changed

packages/firestore/dist/index.memory.node.cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12475,7 +12475,7 @@ var protoLoaderOptions = {
1247512475
* @returns The GrpcObject representing our protos.
1247612476
*/
1247712477
function loadProtos() {
12478-
var root = path.resolve(__dirname, "src/protos");
12478+
var root = path.resolve(__dirname, process.env.FIRESTORE_PROTO_ROOT || '../../protos');
1247912479
var firestoreProtoFile = path.join(root, 'google/firestore/v1/firestore.proto');
1248012480
var packageDefinition = protoLoader.loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
1248112481
return grpcJs.loadPackageDefinition(packageDefinition);

packages/firestore/dist/index.memory.node.esm2017.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'protobufjs';
1010
import { version as version$2 } from '@grpc/grpc-js/package.json';
1111
import { Component } from '@firebase/component';
1212

13-
var version = "7.17.2";
13+
const version = "7.17.2";
1414

1515
/**
1616
* @license
@@ -11559,7 +11559,7 @@ const protoLoaderOptions = {
1155911559
* @returns The GrpcObject representing our protos.
1156011560
*/
1156111561
function loadProtos() {
11562-
const root = resolve(__dirname, "src/protos" );
11562+
const root = resolve(__dirname, process.env.FIRESTORE_PROTO_ROOT || '../../protos');
1156311563
const firestoreProtoFile = join(root, 'google/firestore/v1/firestore.proto');
1156411564
const packageDefinition = loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
1156511565
return loadPackageDefinition(packageDefinition);
@@ -15913,8 +15913,8 @@ function configureForFirebase(firebase, firestoreFactory) {
1591315913
}, "PUBLIC" /* PUBLIC */).setServiceProps(Object.assign({}, firestoreNamespace)));
1591415914
}
1591515915

15916-
var name = "@firebase/firestore";
15917-
var version$1 = "1.16.3";
15916+
const name = "@firebase/firestore";
15917+
const version$1 = "1.16.3";
1591815918

1591915919
/**
1592015920
* @license

packages/firestore/dist/index.node.esm2017.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'protobufjs';
1010
import { version as version$2 } from '@grpc/grpc-js/package.json';
1111
import { Component } from '@firebase/component';
1212

13-
var version = "7.17.2";
13+
const version = "7.17.2";
1414

1515
/**
1616
* @license
@@ -21163,8 +21163,8 @@ function configureForFirebase(firebase, firestoreFactory) {
2116321163
}, "PUBLIC" /* PUBLIC */).setServiceProps(Object.assign({}, firestoreNamespace)));
2116421164
}
2116521165

21166-
var name = "@firebase/firestore";
21167-
var version$1 = "1.16.3";
21166+
const name = "@firebase/firestore";
21167+
const version$1 = "1.16.3";
2116821168

2116921169
/**
2117021170
* @license

packages/firestore/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"description": "The Cloud Firestore component of the Firebase JS SDK.",
88
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
99
"scripts": {
10-
"build": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js && yarn build:lite && yarn build:exp",
10+
"bundle": "rollup -c",
11+
"build": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.browser.memory.js' 'bundle rollup.config.node.js' 'bundle rollup.config.node.memory.js' 'bundle rollup.config.rn.js' 'bundle rollup.config.rn.memory.js' build:lite build:exp",
1112
"build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
1213
"build:release": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js",
1314
"build:deps": "lerna run --scope @firebase/'{app,firestore}' --include-dependencies build",
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* @license
3+
* Copyright 2018 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
import pkg from './package.json';
19+
20+
const util = require('./rollup.shared');
21+
22+
export default [
23+
{
24+
input: 'index.ts',
25+
output: {
26+
file: pkg.esm2017,
27+
format: 'es',
28+
sourcemap: true
29+
},
30+
plugins: util.es2017Plugins('browser', /* mangled= */ true),
31+
external: util.resolveBrowserExterns
32+
},
33+
{
34+
input: pkg.esm2017,
35+
output: { file: pkg.module, format: 'es', sourcemap: true },
36+
plugins: util.es2017ToES5Plugins(/* mangled= */ true),
37+
external: util.resolveBrowserExterns
38+
},
39+
];
40+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @license
3+
* Copyright 2018 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
import * as path from 'path';
19+
import memoryPkg from "./memory/package.json";
20+
21+
const util = require('./rollup.shared');
22+
23+
export default [
24+
{
25+
input: 'index.memory.ts',
26+
output: {
27+
file: path.resolve('./memory', memoryPkg['esm2017']),
28+
format: 'es',
29+
sourcemap: true
30+
},
31+
plugins: util.es2017Plugins('browser', /* mangled= */ true),
32+
external: util.resolveBrowserExterns
33+
},
34+
{
35+
input: path.resolve('./memory', memoryPkg['esm2017']),
36+
output: { file: path.resolve('./memory', memoryPkg.module), format: 'es', sourcemap: true },
37+
plugins: util.es2017ToES5Plugins(/* mangled= */ true),
38+
external: util.resolveBrowserExterns
39+
},
40+
];
41+

packages/firestore/rollup.config.es2017.js

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)