Skip to content

Commit 8e92f9e

Browse files
committed
Formatting pass
1 parent 28ef49f commit 8e92f9e

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

scripts/ci-test/deploy-if-needed.ts

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/**
2+
* @license
3+
* Copyright 2022 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+
118
import { resolve } from 'path';
219
import chalk from 'chalk';
320
import simpleGit from 'simple-git';
@@ -17,12 +34,12 @@ interface DeployOptions {
1734
/**
1835
* Changes to these files require redeployment to the project backend.
1936
*/
20-
const projectConfigGroups = [
37+
const projectConfigGroups = [
2138
{ file: 'config/firebase.json', flag: 'all' },
22-
{ file: 'config/firestore.rules', flag: 'firestore'},
23-
{ file: 'config/firestore.indexes.json', flag: 'firestore'},
24-
{ file: 'config/database.rules.json', flag: 'database'},
25-
{ file: 'config/functions/index.js', flag: 'functions'}
39+
{ file: 'config/firestore.rules', flag: 'firestore' },
40+
{ file: 'config/firestore.indexes.json', flag: 'firestore' },
41+
{ file: 'config/database.rules.json', flag: 'database' },
42+
{ file: 'config/functions/index.js', flag: 'functions' }
2643
];
2744

2845
async function deployIfNeeded() {
@@ -55,9 +72,7 @@ async function deployIfNeeded() {
5572
}
5673
if (flags[0] !== 'all') {
5774
deployOptions.only = flags.join(',');
58-
console.log(
59-
chalk`{blue Deploying to ${flags.toString()} }`
60-
);
75+
console.log(chalk`{blue Deploying to ${flags.toString()} }`);
6176
} else {
6277
console.log(
6378
chalk`{blue firebase.json changed - deploying full config directory. }`
@@ -66,4 +81,4 @@ async function deployIfNeeded() {
6681
await firebaseTools.deploy(deployOptions);
6782
}
6883

69-
deployIfNeeded();
84+
deployIfNeeded();

0 commit comments

Comments
 (0)