@googlemaps/js-samples
Advanced tools
Comparing version 2.20.8 to 2.20.9
@@ -48,13 +48,23 @@ #!/usr/bin/env node | ||
const main = async argv => { | ||
const main = async (argv) => { | ||
const { | ||
sample, | ||
tag, | ||
tag = "v2.20.8", | ||
destination, | ||
verbose, | ||
hot: shouldRun, | ||
open: shouldOpen | ||
open: shouldOpen, | ||
} = argv; | ||
let file; | ||
console.warn(` | ||
Usage of this binary is no longer necessary. Use the following git commands: | ||
git clone -b sample-${sample} git@github.com:googlemaps/js-samples.git ${sample} | ||
cd ${sample} | ||
npm i | ||
npm start | ||
`) | ||
if (tag) { | ||
@@ -79,3 +89,3 @@ file = await getPackageFromTag(sample, tag, verbose); | ||
C: destination, | ||
strict: true | ||
strict: true, | ||
}); | ||
@@ -112,9 +122,9 @@ | ||
"initialize a sample skeleton", | ||
yargs => { | ||
(yargs) => { | ||
yargs.positional("sample", { | ||
describe: "The sample identifier" | ||
describe: "The sample identifier", | ||
}); | ||
yargs.positional("destination", { | ||
describe: "The destination folder for the sample", | ||
default: "." | ||
default: ".", | ||
}); | ||
@@ -127,3 +137,3 @@ }, | ||
type: "boolean", | ||
description: "Run with verbose logging" | ||
description: "Run with verbose logging", | ||
}) | ||
@@ -134,3 +144,3 @@ .option("hot", { | ||
description: "Immediately install and run application", | ||
default: true | ||
default: true, | ||
}) | ||
@@ -141,3 +151,3 @@ .option("open", { | ||
description: "Open application in browser", | ||
default: true | ||
default: true, | ||
}) | ||
@@ -147,3 +157,3 @@ .option("tag", { | ||
describe: "The target release of git@github.com:googlemaps/js-samples.git", | ||
default: "latest" | ||
default: "latest", | ||
}).argv; |
{ | ||
"name": "@googlemaps/js-samples", | ||
"description": "Samples for Google Maps JavaScript", | ||
"version": "2.20.8", | ||
"version": "2.20.9", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "google", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12225
134