Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions samples/new1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# AUTHOR: Update these values!
NAME="sample-name" # The name of the folder to create (for example "map-simple").
REGION_TAG="maps_sample_name" # The region tag to use (for example "maps_map_simple").
TITLE="Descriptive text for sample." # The title of the example.
TITLE="A short description." # The title of the example.
API_LOADER="api_loader_dynamic" # The type of loader to use (api_loader_dynamic or api_loader_default).

# Path to the source folder for the repo archive; substitute with your own path.
Expand Down Expand Up @@ -85,8 +85,9 @@ touch "${OUTPUT_DIR}/${NAME}/README.md"
cat > "${OUTPUT_DIR}/${NAME}/README.md" << EOF
# Google Maps JavaScript Sample

This sample is generated from @googlemaps/js-samples located at
https://github.com/googlemaps-samples/js-api-samples.
## ${NAME}

${TITLE}

## Setup

Expand Down Expand Up @@ -132,4 +133,4 @@ git add "${OUTPUT_DIR}/${NAME}/index.html"
git add "${OUTPUT_DIR}/${NAME}/style.css"
git add "${OUTPUT_DIR}/${NAME}/package.json"
git add "${OUTPUT_DIR}/${NAME}/tsconfig.json"
git add "${OUTPUT_DIR}/${NAME}/README.md"
git add "${OUTPUT_DIR}/${NAME}/README.md"
Loading