Skip to content

Commit 7aa345e

Browse files
committed
chore: init
0 parents  commit 7aa345e

37 files changed

+5696
-0
lines changed

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bazel-*
2+
coverage/
3+
dist/
4+
docs/
5+
lib/
6+
node_modules/
7+
public/
8+
rollup.config.*

.eslintrc.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
3+
"parserOptions": {
4+
"ecmaVersion": 12,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"jsx": true
8+
}
9+
},
10+
"plugins": ["jest"],
11+
"rules": {
12+
"no-var": 2,
13+
"prefer-arrow-callback": 2
14+
},
15+
"overrides": [
16+
{
17+
"files": ["*.ts", "*.tsx"],
18+
"parser": "@typescript-eslint/parser",
19+
"plugins": ["@typescript-eslint"],
20+
"extends": ["plugin:@typescript-eslint/recommended"],
21+
"rules": {
22+
"@typescript-eslint/ban-ts-comment": 0,
23+
"@typescript-eslint/ban-types": 1,
24+
"@typescript-eslint/no-empty-function": 1,
25+
"@typescript-eslint/member-ordering": 1,
26+
"@typescript-eslint/explicit-member-accessibility": [
27+
1,
28+
{
29+
"accessibility": "explicit",
30+
"overrides": {
31+
"accessors": "explicit",
32+
"constructors": "no-public",
33+
"methods": "explicit",
34+
"properties": "explicit",
35+
"parameterProperties": "explicit"
36+
}
37+
}
38+
]
39+
}
40+
}
41+
],
42+
"env": {
43+
"browser": true,
44+
"node": true,
45+
"es6": true,
46+
"jest/globals": true
47+
},
48+
"globals": { "google": "readonly" }
49+
}

.github/CODEOWNERS

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
16+
17+
.github/ @jpoehnelt

.github/blunderbuss.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
assign_issues:
16+
- jpoehnelt
17+
assign_prs:
18+
- jpoehnelt

.github/bundlewatch.config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files": [
3+
{
4+
"path": "dist/index.*.js"
5+
}
6+
],
7+
"ci": {
8+
"trackBranches": ["main"],
9+
"repoBranchBase": "main"
10+
}
11+
}

.github/dependabot.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
version: 2
16+
updates:
17+
- package-ecosystem: "npm"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"

.github/workflows/bundlewatch.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Bundlewatch
16+
17+
on:
18+
push:
19+
branches:
20+
- main
21+
pull_request:
22+
types: [synchronize, opened]
23+
24+
jobs:
25+
bundlewatch:
26+
runs-on: ubuntu-latest
27+
env:
28+
CI_BRANCH_BASE: main
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: jackyef/bundlewatch-gh-action@b9753bc9b3ea458ff21069eaf6206e01e046f0b5
32+
with:
33+
build-script: npm i
34+
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
35+
bundlewatch-config: .github/bundlewatch.config.json

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Build
16+
on: [push, pull_request]
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: npm i
29+
- run: npm run lint
30+
- run: npm test
31+
- uses: codecov/codecov-action@v1

.github/workflows/codeql.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# For most projects, this workflow file will not need changing; you simply need
16+
# to commit it to your repository.
17+
#
18+
# You may wish to alter this file to override the set of languages analyzed,
19+
# or to provide custom queries or build logic.
20+
#
21+
# ******** NOTE ********
22+
# We have attempted to detect the languages in your repository. Please check
23+
# the `language` matrix defined below to confirm you have the correct set of
24+
# supported CodeQL languages.
25+
#
26+
name: "CodeQL"
27+
28+
on:
29+
push:
30+
branches: [main]
31+
pull_request:
32+
# The branches below must be a subset of the branches above
33+
branches: [main]
34+
schedule:
35+
- cron: "0 13 * * *"
36+
37+
jobs:
38+
analyze:
39+
name: Analyze
40+
runs-on: ubuntu-latest
41+
permissions:
42+
actions: read
43+
contents: read
44+
security-events: write
45+
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
language: ["javascript"]
50+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
51+
# Learn more:
52+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
53+
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v2
57+
58+
# Initializes the CodeQL tools for scanning.
59+
- name: Initialize CodeQL
60+
uses: github/codeql-action/init@v1
61+
with:
62+
languages: ${{ matrix.language }}
63+
# If you wish to specify custom queries, you can do so here or in a config file.
64+
# By default, queries listed here will override any specified in a config file.
65+
# Prefix the list here with "+" to use these queries and those in the config file.
66+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
67+
68+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
69+
# If this step fails, then you should remove it and run the build manually (see below)
70+
- name: Autobuild
71+
uses: github/codeql-action/autobuild@v1
72+
73+
# ℹ️ Command-line programs to run using the OS shell.
74+
# 📚 https://git.io/JvXDl
75+
76+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
77+
# and modify them (or add more) to build your code if your project
78+
# uses a compiled language
79+
80+
#- run: |
81+
# make bootstrap
82+
# make release
83+
84+
- name: Perform CodeQL Analysis
85+
uses: github/codeql-action/analyze@v1

.github/workflows/docs.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Docs
16+
on: [push, pull_request]
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: |
29+
npm i
30+
npm run docs
31+
- uses: peaceiris/actions-gh-pages@v3
32+
if: github.ref == 'refs/heads/main'
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./docs
36+
user_name: 'googlemaps-bot'
37+
user_email: '[email protected]'
38+
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/e2e.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: e2e
16+
on:
17+
push:
18+
schedule:
19+
- cron: "0 12 * * *"
20+
jobs:
21+
chrome:
22+
runs-on: ubuntu-latest
23+
services:
24+
hub:
25+
image: selenium/standalone-chrome
26+
volumes:
27+
- ${{ github.workspace }}:${{ github.workspace }}
28+
ports:
29+
- 4444:4444
30+
steps:
31+
- uses: actions/checkout@v2
32+
- run: npm i
33+
- run: npm run test:e2e
34+
env:
35+
GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_WEB }}
36+
firefox:
37+
runs-on: ubuntu-latest
38+
services:
39+
hub:
40+
image: selenium/standalone-firefox
41+
volumes:
42+
- ${{ github.workspace }}:${{ github.workspace }}
43+
ports:
44+
- 4444:4444
45+
steps:
46+
- uses: actions/checkout@v2
47+
- run: npm i
48+
- run: npm run test:e2e
49+
env:
50+
GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_WEB }}
51+
BROWSER: firefox

0 commit comments

Comments
 (0)