Skip to content

Commit 29c15d2

Browse files
committed
init: @googlemaps/js-api-loader
This is now the maintained fork of @googlemaps/loader previously located at github.com/googlemaps/v3-utility-library.
0 parents  commit 29c15d2

21 files changed

+9828
-0
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/env",
5+
{
6+
"targets": {
7+
"browsers": "ie>=11, > 0.25%, not dead"
8+
},
9+
"corejs": "3.6",
10+
"useBuiltIns": "usage"
11+
}
12+
]
13+
]
14+
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.eslintrc.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"plugins": ["jest", "@typescript-eslint"],
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
8+
],
9+
"rules": {
10+
"camelcase": "error",
11+
"no-unused-vars": "error",
12+
"@typescript-eslint/no-unused-vars": "error",
13+
"@typescript-eslint/explicit-member-accessibility": [
14+
"error",
15+
{ "accessibility": "no-public" }
16+
],
17+
"@typescript-eslint/array-type": "error",
18+
"@typescript-eslint/await-thenable": "error",
19+
"@typescript-eslint/ban-ts-ignore": "warn",
20+
"@typescript-eslint/camelcase": "warn",
21+
"@typescript-eslint/class-name-casing": "error",
22+
"@typescript-eslint/explicit-function-return-type": [
23+
"error",
24+
{ "allowExpressions": true }
25+
],
26+
"@typescript-eslint/func-call-spacing": ["error", "never"],
27+
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
28+
"@typescript-eslint/no-array-constructor": "error",
29+
"@typescript-eslint/no-empty-interface": "error",
30+
"@typescript-eslint/no-explicit-any": "warn",
31+
"@typescript-eslint/no-extraneous-class": "error",
32+
"@typescript-eslint/no-for-in-array": "error",
33+
"@typescript-eslint/no-inferrable-types": "error",
34+
"@typescript-eslint/no-misused-new": "error",
35+
"@typescript-eslint/no-namespace": "error",
36+
"@typescript-eslint/no-non-null-assertion": "warn",
37+
"@typescript-eslint/no-unnecessary-qualifier": "error",
38+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
39+
"@typescript-eslint/no-useless-constructor": "error",
40+
"@typescript-eslint/prefer-for-of": "warn",
41+
"@typescript-eslint/prefer-function-type": "warn",
42+
"@typescript-eslint/prefer-includes": "error",
43+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
44+
"@typescript-eslint/restrict-plus-operands": "error",
45+
"@typescript-eslint/type-annotation-spacing": "error",
46+
"@typescript-eslint/unbound-method": "error"
47+
},
48+
"parserOptions": {
49+
"ecmaVersion": 9,
50+
"sourceType": "module",
51+
"project": "./tsconfig.json"
52+
},
53+
"env": {
54+
"browser": true,
55+
"es6": true,
56+
"jest/globals": true
57+
}
58+
}

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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: Build
16+
on: [push, pull_request]
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- run: npm i
23+
- run: npm run lint
24+
- run: npm test
25+
- uses: codecov/codecov-action@v1
26+
with:
27+
fail_ci_if_error: true

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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: "Release"
16+
on:
17+
push:
18+
branches:
19+
- master
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Test
26+
run: |
27+
npm i
28+
npm test
29+
- name: Release
30+
uses: cycjimmy/semantic-release-action@v2
31+
with:
32+
extra_plugins: |
33+
"@semantic-release/commit-analyzer"
34+
"@semantic-release/release-notes-generator"
35+
"@semantic-release/git
36+
"@semantic-release/github
37+
"@semantic-release/npm
38+
env:
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}

.gitignore

Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
node_modules
2+
dist/
3+
.npmrc
4+
**/docs
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# TypeScript v1 declaration files
50+
typings/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Microbundle cache
62+
.rpt2_cache/
63+
.rts2_cache_cjs/
64+
.rts2_cache_es/
65+
.rts2_cache_umd/
66+
67+
# Optional REPL history
68+
.node_repl_history
69+
70+
# Output of 'npm pack'
71+
*.tgz
72+
73+
# Yarn Integrity file
74+
.yarn-integrity
75+
76+
# dotenv environment variables file
77+
.env
78+
.env.test
79+
80+
# parcel-bundler cache (https://parceljs.org/)
81+
.cache
82+
83+
# next.js build output
84+
.next
85+
86+
# nuxt.js build output
87+
.nuxt
88+
89+
# gatsby files
90+
.cache/
91+
public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
109+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
110+
111+
# User-specific stuff
112+
.idea/**/workspace.xml
113+
.idea/**/tasks.xml
114+
.idea/**/usage.statistics.xml
115+
.idea/**/dictionaries
116+
.idea/**/shelf
117+
118+
# Generated files
119+
.idea/**/contentModel.xml
120+
121+
# Sensitive or high-churn files
122+
.idea/**/dataSources/
123+
.idea/**/dataSources.ids
124+
.idea/**/dataSources.local.xml
125+
.idea/**/sqlDataSources.xml
126+
.idea/**/dynamic.xml
127+
.idea/**/uiDesigner.xml
128+
.idea/**/dbnavigator.xml
129+
130+
# Gradle
131+
.idea/**/gradle.xml
132+
.idea/**/libraries
133+
134+
# Gradle and Maven with auto-import
135+
# When using Gradle or Maven with auto-import, you should exclude module files,
136+
# since they will be recreated, and may cause churn. Uncomment if using
137+
# auto-import.
138+
# .idea/modules.xml
139+
# .idea/*.iml
140+
# .idea/modules
141+
# *.iml
142+
# *.ipr
143+
144+
# CMake
145+
cmake-build-*/
146+
147+
# Mongo Explorer plugin
148+
.idea/**/mongoSettings.xml
149+
150+
# File-based project format
151+
*.iws
152+
153+
# IntelliJ
154+
out/
155+
156+
# mpeltonen/sbt-idea plugin
157+
.idea_modules/
158+
159+
# JIRA plugin
160+
atlassian-ide-plugin.xml
161+
162+
# Cursive Clojure plugin
163+
.idea/replstate.xml
164+
165+
# Crashlytics plugin (for Android Studio and IntelliJ)
166+
com_crashlytics_export_strings.xml
167+
crashlytics.properties
168+
crashlytics-build.properties
169+
fabric.properties
170+
171+
# Editor-based Rest Client
172+
.idea/httpRequests
173+
174+
# Android studio 3.1+ serialized cache file
175+
.idea/caches/build_file_checksums.ser
176+
177+
# General
178+
.DS_Store
179+
.AppleDouble
180+
.LSOverride
181+
182+
# Icon must end with two \r
183+
Icon
184+
185+
186+
# Thumbnails
187+
._*
188+
189+
# Files that might appear in the root of a volume
190+
.DocumentRevisions-V100
191+
.fseventsd
192+
.Spotlight-V100
193+
.TemporaryItems
194+
.Trashes
195+
.VolumeIcon.icns
196+
.com.apple.timemachine.donotpresent
197+
198+
# Directories potentially created on remote AFP share
199+
.AppleDB
200+
.AppleDesktop
201+
Network Trash Folder
202+
Temporary Items
203+
.apdisk
204+
205+
# Windows thumbnail cache files
206+
Thumbs.db
207+
Thumbs.db:encryptable
208+
ehthumbs.db
209+
ehthumbs_vista.db
210+
211+
# Dump file
212+
*.stackdump
213+
214+
# Folder config file
215+
[Dd]esktop.ini
216+
217+
# Recycle Bin used on file shares
218+
$RECYCLE.BIN/
219+
220+
# Windows Installer files
221+
*.cab
222+
*.msi
223+
*.msix
224+
*.msm
225+
*.msp
226+
227+
# Windows shortcuts
228+
*.lnk

0 commit comments

Comments
 (0)