diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e699de36..3cee65ba7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: contents: write id-token: write env: - GOOGLE_MAPS_JS_SAMPLES_KEY: "${{ secrets.GOOGLE_MAPS_JS_SAMPLES_KEY }}" + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_PROD_KEY }}" steps: - name: Checkout main uses: actions/checkout@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a5144bb8e..a4df0f53e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,6 +35,7 @@ on: env: SKIP_DIST: ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' }} + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV_KEY }}" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -149,6 +150,7 @@ jobs: done env: STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES: ${{ steps.get_workspaces.outputs.changed_workspaces }} + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV_KEY }}" - name: Generate Index (Run Once After Builds) run: bash samples/generate-index.sh @@ -163,6 +165,7 @@ jobs: # Pass the correct base reference for find-changes.sh when called by samples.spec.ts GIT_BASE_REF: ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event.before }} CI: true + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV_KEY }}" - name: Upload Test Report Artifact uses: actions/upload-artifact@v4 @@ -215,6 +218,8 @@ jobs: - name: Build All Projects run: npm run build-all + env: + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV_KEY }}" - name: Generate Index (Run Once After Full Builds) run: bash samples/generate-index.sh @@ -228,6 +233,7 @@ jobs: env: CI: true TEST_ALL_SAMPLES: "true" + GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV_KEY }}" - name: Upload Test Report Artifact uses: actions/upload-artifact@v4 diff --git a/dist/samples/map-drawing-terradraw/app/index.html b/dist/samples/map-drawing-terradraw/app/index.html index b867fb4c6..4aac7c455 100644 --- a/dist/samples/map-drawing-terradraw/app/index.html +++ b/dist/samples/map-drawing-terradraw/app/index.html @@ -13,7 +13,7 @@ diff --git a/dist/samples/map-drawing-terradraw/app/package.json b/dist/samples/map-drawing-terradraw/app/package.json index f64d45357..93108cea4 100644 --- a/dist/samples/map-drawing-terradraw/app/package.json +++ b/dist/samples/map-drawing-terradraw/app/package.json @@ -5,9 +5,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "dependencies": { "terra-draw": "latest", diff --git a/dist/samples/map-drawing-terradraw/docs/index.html b/dist/samples/map-drawing-terradraw/docs/index.html index b867fb4c6..4aac7c455 100644 --- a/dist/samples/map-drawing-terradraw/docs/index.html +++ b/dist/samples/map-drawing-terradraw/docs/index.html @@ -13,7 +13,7 @@ diff --git a/dist/samples/map-drawing-terradraw/jsfiddle/demo.html b/dist/samples/map-drawing-terradraw/jsfiddle/demo.html index 3a84440bc..b1aea033b 100644 --- a/dist/samples/map-drawing-terradraw/jsfiddle/demo.html +++ b/dist/samples/map-drawing-terradraw/jsfiddle/demo.html @@ -13,7 +13,7 @@ diff --git a/dist/samples/routes-compute-routes/app/index.html b/dist/samples/routes-compute-routes/app/index.html index 6dbde0680..c9767db00 100644 --- a/dist/samples/routes-compute-routes/app/index.html +++ b/dist/samples/routes-compute-routes/app/index.html @@ -14,7 +14,7 @@ diff --git a/dist/samples/routes-compute-routes/app/package.json b/dist/samples/routes-compute-routes/app/package.json index 442dc546a..822510222 100644 --- a/dist/samples/routes-compute-routes/app/package.json +++ b/dist/samples/routes-compute-routes/app/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/dist/samples/routes-compute-routes/docs/index.html b/dist/samples/routes-compute-routes/docs/index.html index 6dbde0680..c9767db00 100644 --- a/dist/samples/routes-compute-routes/docs/index.html +++ b/dist/samples/routes-compute-routes/docs/index.html @@ -14,7 +14,7 @@ diff --git a/dist/samples/routes-compute-routes/jsfiddle/demo.html b/dist/samples/routes-compute-routes/jsfiddle/demo.html index 25684bacf..25a6cd9ef 100644 --- a/dist/samples/routes-compute-routes/jsfiddle/demo.html +++ b/dist/samples/routes-compute-routes/jsfiddle/demo.html @@ -14,7 +14,7 @@ diff --git a/e2e/samples.spec.ts b/e2e/samples.spec.ts index 42bba9d4f..8a5e13913 100644 --- a/e2e/samples.spec.ts +++ b/e2e/samples.spec.ts @@ -15,14 +15,11 @@ */ // /* eslint-disable @typescript-eslint/no-unsafe-return */ -/* eslint-disable @typescript-eslint/no-unsafe-assignment */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -/* eslint-disable @typescript-eslint/no-unsafe-argument */ -// import { test, expect } from '@playwright/test'; +import { test, expect } from '@playwright/test'; import fs from 'node:fs'; import path from 'node:path'; -import childProcess, { execSync } from 'child_process'; +import { execSync, spawn } from 'child_process'; const samplesDir = path.join(__dirname, '..', 'samples'); @@ -132,27 +129,17 @@ const getChangedSampleFolders = (): string[] => { }; // Get changed folders, filtering out excluded ones. -// const foldersToTest = getChangedSampleFolders(); const foldersToTest = getChangedSampleFolders(); if (foldersToTest.length === 0) { console.log('No sample folders found.'); } else { console.log( - // `Will run tests for the following folders: ${foldersToTest.join(', ')}` - 'IMPORTANT: Tests are temporarily disabled while we work on getting a dev key working for testing samples.' + `Will run tests for the following folders: ${foldersToTest.join(', ')}` ); } -import { test, expect } from '@playwright/test'; - -test('Placeholder test', () => { - // Tests are temporarily disabled, this placeholder prevents Playwright from failing with "No tests found" - expect(true).toBe(true); -}); - // Iterate through samples and run the same test for each one. -/** foldersToTest.forEach((sampleFolder) => { test(`test ${sampleFolder}`, async ({ page }) => { // START run the preview @@ -160,13 +147,20 @@ foldersToTest.forEach((sampleFolder) => { const port = 8080; const url = `http://localhost:${port}/`; - const viteProcess = childProcess.spawn( + const vitePath = path.join( + __dirname, + '..', + 'node_modules', 'vite', - ['preview', `--port=${port}`], + 'bin', + 'vite.js' + ); + const viteProcess = spawn( + 'node', + [vitePath, 'preview', '--port', port.toString()], { cwd: path.join(samplesDir, sampleFolder), stdio: 'inherit', - detached: true, // Allows parent to exit independently, though we kill it in finally } ); @@ -202,6 +196,7 @@ foldersToTest.forEach((sampleFolder) => { 'Falling back to Raster', 'Attempted to load a 3D Map, but failed.', 'The map is not a vector map', + '404 (Not Found)', ]; const criticalErrors = consoleErrors.filter( (error) => @@ -224,7 +219,7 @@ foldersToTest.forEach((sampleFolder) => { // Wait for Google Maps to load. await page.waitForFunction( // eslint-disable-next-line @typescript-eslint/no-explicit-any - () => (window as any).google?.maps, + () => !!(window as any).google?.maps, { timeout: 500 } ); @@ -242,7 +237,6 @@ foldersToTest.forEach((sampleFolder) => { ); }); expect(hasGoogleMaps).toBeTruthy(); - } finally { if (viteProcess.pid) { try { @@ -255,9 +249,8 @@ foldersToTest.forEach((sampleFolder) => { ); } } - // Add a small delay to allow the process to terminate - await page.waitForTimeout(500); + // Add a small delay to allow the process to terminate without depending on the potentially closed page object + await new Promise((resolve) => setTimeout(resolve, 500)); } }); }); -*/ diff --git a/samples/3d-accessibility-features/index.html b/samples/3d-accessibility-features/index.html index 920f5be5a..4a357d88e 100644 --- a/samples/3d-accessibility-features/index.html +++ b/samples/3d-accessibility-features/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-accessibility-features/package.json b/samples/3d-accessibility-features/package.json index 90a15c29c..b30a86967 100644 --- a/samples/3d-accessibility-features/package.json +++ b/samples/3d-accessibility-features/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-camera-boundary/index.html b/samples/3d-camera-boundary/index.html index f84395145..b2c63bac8 100644 --- a/samples/3d-camera-boundary/index.html +++ b/samples/3d-camera-boundary/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-camera-boundary/package.json b/samples/3d-camera-boundary/package.json index e34433849..6f4e3b472 100644 --- a/samples/3d-camera-boundary/package.json +++ b/samples/3d-camera-boundary/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-camera-center/index.html b/samples/3d-camera-center/index.html index d5185bf35..b13f7c289 100644 --- a/samples/3d-camera-center/index.html +++ b/samples/3d-camera-center/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-camera-center/package.json b/samples/3d-camera-center/package.json index 3b7c1d3a3..9d1126bd8 100644 --- a/samples/3d-camera-center/package.json +++ b/samples/3d-camera-center/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-camera-position/index.html b/samples/3d-camera-position/index.html index a88c3fbf6..0efeafcce 100644 --- a/samples/3d-camera-position/index.html +++ b/samples/3d-camera-position/index.html @@ -13,7 +13,7 @@ diff --git a/samples/3d-camera-position/index.ts b/samples/3d-camera-position/index.ts index e58f8330d..3572ae730 100644 --- a/samples/3d-camera-position/index.ts +++ b/samples/3d-camera-position/index.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ // [START maps_3d_camera_position] -async function initMap(): Promise { +async function init(): Promise { // Declare the needed libraries. await google.maps.importLibrary('maps3d'); @@ -148,5 +148,5 @@ async function initMap(): Promise { setTimeout(updateUI, 500); } -void initMap(); +void init(); // [END maps_3d_camera_position] diff --git a/samples/3d-camera-position/package.json b/samples/3d-camera-position/package.json index 94e7c0c98..06280b2ad 100644 --- a/samples/3d-camera-position/package.json +++ b/samples/3d-camera-position/package.json @@ -2,11 +2,10 @@ "name": "@js-api-samples/3d-camera-position", "version": "1.0.0", "scripts": { - "build": "tsc && bash ../jsfiddle.sh 3d-camera-position && bash ../app.sh 3d-camera-position && bash ../docs.sh 3d-camera-position && npm run build:vite --workspace=. && bash ../dist.sh 3d-camera-position", + "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/3d-camera-to-around/index.html b/samples/3d-camera-to-around/index.html index 82ca9d5e9..498f4b6cf 100644 --- a/samples/3d-camera-to-around/index.html +++ b/samples/3d-camera-to-around/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-camera-to-around/package.json b/samples/3d-camera-to-around/package.json index d7df6f010..415723fdc 100644 --- a/samples/3d-camera-to-around/package.json +++ b/samples/3d-camera-to-around/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-clamp-mode/index.html b/samples/3d-clamp-mode/index.html index abf9d5efc..14dec6f9c 100644 --- a/samples/3d-clamp-mode/index.html +++ b/samples/3d-clamp-mode/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-clamp-mode/package.json b/samples/3d-clamp-mode/package.json index 9d87c87f0..699b5c82b 100644 --- a/samples/3d-clamp-mode/package.json +++ b/samples/3d-clamp-mode/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-coverage-map/index.html b/samples/3d-coverage-map/index.html index 6c05d75bd..1b1e509c4 100644 --- a/samples/3d-coverage-map/index.html +++ b/samples/3d-coverage-map/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-coverage-map/package.json b/samples/3d-coverage-map/package.json index c93853e9b..4097a62e7 100644 --- a/samples/3d-coverage-map/package.json +++ b/samples/3d-coverage-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-hero-showcase/index.html b/samples/3d-hero-showcase/index.html index 50cb6a31b..6bd4b0e46 100644 --- a/samples/3d-hero-showcase/index.html +++ b/samples/3d-hero-showcase/index.html @@ -23,7 +23,7 @@ diff --git a/samples/3d-hero-showcase/package.json b/samples/3d-hero-showcase/package.json index 6e9cc1ad7..58cac8712 100644 --- a/samples/3d-hero-showcase/package.json +++ b/samples/3d-hero-showcase/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-label-toggle/index.html b/samples/3d-label-toggle/index.html index 50e618165..fd267adeb 100644 --- a/samples/3d-label-toggle/index.html +++ b/samples/3d-label-toggle/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-label-toggle/package.json b/samples/3d-label-toggle/package.json index 24822c5bb..5dcc38633 100644 --- a/samples/3d-label-toggle/package.json +++ b/samples/3d-label-toggle/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-localization/index.html b/samples/3d-localization/index.html index 934afff74..10338fa23 100644 --- a/samples/3d-localization/index.html +++ b/samples/3d-localization/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-localization/package.json b/samples/3d-localization/package.json index 04872914a..d16e85c54 100644 --- a/samples/3d-localization/package.json +++ b/samples/3d-localization/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-map-45-degree-locked/index.html b/samples/3d-map-45-degree-locked/index.html index 95e0fdc4e..05dde4845 100644 --- a/samples/3d-map-45-degree-locked/index.html +++ b/samples/3d-map-45-degree-locked/index.html @@ -12,7 +12,7 @@ + src="https://maps.googleapis.com/maps/api/js?loading=async&key=GOOGLE_MAPS_API_KEY&libraries=maps3d"> // prettier-ignore (g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})({ - key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" + key: "GOOGLE_MAPS_API_KEY" }); diff --git a/samples/3d-map-45-degree/package.json b/samples/3d-map-45-degree/package.json index bbf1f4bee..78e04f8b7 100644 --- a/samples/3d-map-45-degree/package.json +++ b/samples/3d-map-45-degree/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-map-events/index.html b/samples/3d-map-events/index.html index 546f6a604..e876aee0b 100644 --- a/samples/3d-map-events/index.html +++ b/samples/3d-map-events/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-map-events/package.json b/samples/3d-map-events/package.json index 9a3dd18d1..24c5b3327 100644 --- a/samples/3d-map-events/package.json +++ b/samples/3d-map-events/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/3d-map-roadmap/index.html b/samples/3d-map-roadmap/index.html index 518bcec02..93eb437fe 100644 --- a/samples/3d-map-roadmap/index.html +++ b/samples/3d-map-roadmap/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-map-roadmap/package.json b/samples/3d-map-roadmap/package.json index e70986548..829622bf2 100644 --- a/samples/3d-map-roadmap/package.json +++ b/samples/3d-map-roadmap/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/3d-map-styling/index.html b/samples/3d-map-styling/index.html index c624d2af1..b25e17add 100644 --- a/samples/3d-map-styling/index.html +++ b/samples/3d-map-styling/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-map-styling/package.json b/samples/3d-map-styling/package.json index 7103be977..94a5dfc35 100644 --- a/samples/3d-map-styling/package.json +++ b/samples/3d-map-styling/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-marker-click-event/index.html b/samples/3d-marker-click-event/index.html index eccdc4ca0..3d1892105 100644 --- a/samples/3d-marker-click-event/index.html +++ b/samples/3d-marker-click-event/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-marker-click-event/package.json b/samples/3d-marker-click-event/package.json index 27b10785a..9ae5b8019 100644 --- a/samples/3d-marker-click-event/package.json +++ b/samples/3d-marker-click-event/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-marker-collision-behavior/index.html b/samples/3d-marker-collision-behavior/index.html index 1eac263d4..46f1e0633 100644 --- a/samples/3d-marker-collision-behavior/index.html +++ b/samples/3d-marker-collision-behavior/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-marker-collision-behavior/package.json b/samples/3d-marker-collision-behavior/package.json index 1c94a7029..c4a9784d7 100644 --- a/samples/3d-marker-collision-behavior/package.json +++ b/samples/3d-marker-collision-behavior/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-marker-customization/index.html b/samples/3d-marker-customization/index.html index 5a3bbf27e..c466ccf4c 100644 --- a/samples/3d-marker-customization/index.html +++ b/samples/3d-marker-customization/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-marker-customization/package.json b/samples/3d-marker-customization/package.json index e8a7f00a1..c414ddf3a 100644 --- a/samples/3d-marker-customization/package.json +++ b/samples/3d-marker-customization/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-marker-graphics/index.html b/samples/3d-marker-graphics/index.html index 9e74e9377..6f03685de 100644 --- a/samples/3d-marker-graphics/index.html +++ b/samples/3d-marker-graphics/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-marker-graphics/package.json b/samples/3d-marker-graphics/package.json index 113c99579..23b7dfd48 100644 --- a/samples/3d-marker-graphics/package.json +++ b/samples/3d-marker-graphics/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-marker-html/index.html b/samples/3d-marker-html/index.html index d62dc5760..af5eca845 100644 --- a/samples/3d-marker-html/index.html +++ b/samples/3d-marker-html/index.html @@ -11,7 +11,7 @@ + src="https://maps.googleapis.com/maps/api/js?loading=async&key=GOOGLE_MAPS_API_KEY&libraries=maps3d"> // prettier-ignore (g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})({ - key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" + key: "GOOGLE_MAPS_API_KEY" }); diff --git a/samples/3d-marker-interactive/package.json b/samples/3d-marker-interactive/package.json index 9f6646596..e308b27ae 100644 --- a/samples/3d-marker-interactive/package.json +++ b/samples/3d-marker-interactive/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-mesh-flatten/index.html b/samples/3d-mesh-flatten/index.html index 340abb122..ec3bdf8f1 100644 --- a/samples/3d-mesh-flatten/index.html +++ b/samples/3d-mesh-flatten/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-mesh-flatten/package.json b/samples/3d-mesh-flatten/package.json index 164e868b7..a40931389 100644 --- a/samples/3d-mesh-flatten/package.json +++ b/samples/3d-mesh-flatten/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/3d-model-interactive/index.html b/samples/3d-model-interactive/index.html index 70d9ca97e..6e117d52c 100644 --- a/samples/3d-model-interactive/index.html +++ b/samples/3d-model-interactive/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-model-interactive/package.json b/samples/3d-model-interactive/package.json index d5f670fe7..013d6314e 100644 --- a/samples/3d-model-interactive/package.json +++ b/samples/3d-model-interactive/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-model/index.html b/samples/3d-model/index.html index 251fc359a..4e8733f24 100644 --- a/samples/3d-model/index.html +++ b/samples/3d-model/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-model/package.json b/samples/3d-model/package.json index 20eb34318..f9ad7c987 100644 --- a/samples/3d-model/package.json +++ b/samples/3d-model/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-places-autocomplete/index.html b/samples/3d-places-autocomplete/index.html index b17e1fb08..31340f94c 100644 --- a/samples/3d-places-autocomplete/index.html +++ b/samples/3d-places-autocomplete/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-places-autocomplete/package.json b/samples/3d-places-autocomplete/package.json index 77f8df9cb..d7de19b34 100644 --- a/samples/3d-places-autocomplete/package.json +++ b/samples/3d-places-autocomplete/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-places/index.html b/samples/3d-places/index.html index 1f45b428e..30be37953 100644 --- a/samples/3d-places/index.html +++ b/samples/3d-places/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-places/package.json b/samples/3d-places/package.json index 3ee152573..f8cf232b2 100644 --- a/samples/3d-places/package.json +++ b/samples/3d-places/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-polygon-click-event/index.html b/samples/3d-polygon-click-event/index.html index 78311109d..385ce3e1b 100644 --- a/samples/3d-polygon-click-event/index.html +++ b/samples/3d-polygon-click-event/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polygon-click-event/package.json b/samples/3d-polygon-click-event/package.json index d544ab2bd..4ac76405f 100644 --- a/samples/3d-polygon-click-event/package.json +++ b/samples/3d-polygon-click-event/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-polygon-extruded-hole/index.html b/samples/3d-polygon-extruded-hole/index.html index 813b87add..f06491b0e 100644 --- a/samples/3d-polygon-extruded-hole/index.html +++ b/samples/3d-polygon-extruded-hole/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polygon-extruded-hole/package.json b/samples/3d-polygon-extruded-hole/package.json index 1b17fecec..f71fa28b5 100644 --- a/samples/3d-polygon-extruded-hole/package.json +++ b/samples/3d-polygon-extruded-hole/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-polygon/index.html b/samples/3d-polygon/index.html index b1a96cffe..7093f6e17 100644 --- a/samples/3d-polygon/index.html +++ b/samples/3d-polygon/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polygon/package.json b/samples/3d-polygon/package.json index 6be1f9c5a..44015edf2 100644 --- a/samples/3d-polygon/package.json +++ b/samples/3d-polygon/package.json @@ -4,9 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "devDependencies": { "@playwright/test": "^1.61.1" diff --git a/samples/3d-polyline-click-event/index.html b/samples/3d-polyline-click-event/index.html index 38aa48b32..e125de38f 100644 --- a/samples/3d-polyline-click-event/index.html +++ b/samples/3d-polyline-click-event/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polyline-click-event/package.json b/samples/3d-polyline-click-event/package.json index 1c61d759d..e116a975e 100644 --- a/samples/3d-polyline-click-event/package.json +++ b/samples/3d-polyline-click-event/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-polyline-extruded/index.html b/samples/3d-polyline-extruded/index.html index cb45394d1..85e55c69d 100644 --- a/samples/3d-polyline-extruded/index.html +++ b/samples/3d-polyline-extruded/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polyline-extruded/package.json b/samples/3d-polyline-extruded/package.json index 39f84361d..234a5c790 100644 --- a/samples/3d-polyline-extruded/package.json +++ b/samples/3d-polyline-extruded/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-polyline/index.html b/samples/3d-polyline/index.html index 543d55f95..3acf96de4 100644 --- a/samples/3d-polyline/index.html +++ b/samples/3d-polyline/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-polyline/package.json b/samples/3d-polyline/package.json index 1916f7bcf..cec96b138 100644 --- a/samples/3d-polyline/package.json +++ b/samples/3d-polyline/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-popover-location/index.html b/samples/3d-popover-location/index.html index e7e8c1552..deddda3e3 100644 --- a/samples/3d-popover-location/index.html +++ b/samples/3d-popover-location/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-popover-location/package.json b/samples/3d-popover-location/package.json index fb0da525c..539eb4fe6 100644 --- a/samples/3d-popover-location/package.json +++ b/samples/3d-popover-location/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-popover-marker/index.html b/samples/3d-popover-marker/index.html index b8b4a7196..31c462963 100644 --- a/samples/3d-popover-marker/index.html +++ b/samples/3d-popover-marker/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-popover-marker/package.json b/samples/3d-popover-marker/package.json index 669190e08..62b76e7f5 100644 --- a/samples/3d-popover-marker/package.json +++ b/samples/3d-popover-marker/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-simple-map-declarative/index.html b/samples/3d-simple-map-declarative/index.html index 945ac2d0f..2e5ead07c 100644 --- a/samples/3d-simple-map-declarative/index.html +++ b/samples/3d-simple-map-declarative/index.html @@ -11,7 +11,7 @@ + src="https://maps.googleapis.com/maps/api/js?loading=async&key=GOOGLE_MAPS_API_KEY&libraries=maps3d"> diff --git a/samples/3d-simple-map-declarative/package.json b/samples/3d-simple-map-declarative/package.json index 1a58ec1d8..1bda1e16d 100644 --- a/samples/3d-simple-map-declarative/package.json +++ b/samples/3d-simple-map-declarative/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-simple-map/index.html b/samples/3d-simple-map/index.html index 10a78c795..d1bed2c68 100644 --- a/samples/3d-simple-map/index.html +++ b/samples/3d-simple-map/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-simple-map/package.json b/samples/3d-simple-map/package.json index a918fc704..d220673a7 100644 --- a/samples/3d-simple-map/package.json +++ b/samples/3d-simple-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/3d-simple-marker/index.html b/samples/3d-simple-marker/index.html index 58b10d073..aaa45acb4 100644 --- a/samples/3d-simple-marker/index.html +++ b/samples/3d-simple-marker/index.html @@ -14,7 +14,7 @@ diff --git a/samples/3d-simple-marker/package.json b/samples/3d-simple-marker/package.json index 093c7de23..349342591 100644 --- a/samples/3d-simple-marker/package.json +++ b/samples/3d-simple-marker/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/add-map/index.html b/samples/add-map/index.html index e404f3437..308a37f43 100644 --- a/samples/add-map/index.html +++ b/samples/add-map/index.html @@ -14,7 +14,7 @@ diff --git a/samples/add-map/package.json b/samples/add-map/package.json index d17e942a3..c05e8a3ef 100644 --- a/samples/add-map/package.json +++ b/samples/add-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/address-validation/index.html b/samples/address-validation/index.html index 6b84f270e..63b2d50ab 100644 --- a/samples/address-validation/index.html +++ b/samples/address-validation/index.html @@ -14,7 +14,7 @@ diff --git a/samples/address-validation/package.json b/samples/address-validation/package.json index d00ad9608..dafdfbfaa 100644 --- a/samples/address-validation/package.json +++ b/samples/address-validation/package.json @@ -4,12 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/advanced-markers-accessibility/index.html b/samples/advanced-markers-accessibility/index.html index 2bc919478..7d47a556d 100644 --- a/samples/advanced-markers-accessibility/index.html +++ b/samples/advanced-markers-accessibility/index.html @@ -15,7 +15,7 @@ diff --git a/samples/advanced-markers-accessibility/package.json b/samples/advanced-markers-accessibility/package.json index f66097628..73c35e63c 100644 --- a/samples/advanced-markers-accessibility/package.json +++ b/samples/advanced-markers-accessibility/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-altitude/index.html b/samples/advanced-markers-altitude/index.html index 98f15f194..873af5e4c 100644 --- a/samples/advanced-markers-altitude/index.html +++ b/samples/advanced-markers-altitude/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-altitude/package.json b/samples/advanced-markers-altitude/package.json index f80a7e88d..92c938707 100644 --- a/samples/advanced-markers-altitude/package.json +++ b/samples/advanced-markers-altitude/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-animation/index.html b/samples/advanced-markers-animation/index.html index 38150f9f9..587d0ce15 100644 --- a/samples/advanced-markers-animation/index.html +++ b/samples/advanced-markers-animation/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-animation/package.json b/samples/advanced-markers-animation/package.json index 60c57027b..dd26deb0e 100644 --- a/samples/advanced-markers-animation/package.json +++ b/samples/advanced-markers-animation/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-basic-style/index.html b/samples/advanced-markers-basic-style/index.html index 77c3be1d1..5f5eab914 100644 --- a/samples/advanced-markers-basic-style/index.html +++ b/samples/advanced-markers-basic-style/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-basic-style/package.json b/samples/advanced-markers-basic-style/package.json index 97bec1e8f..a4b424a59 100644 --- a/samples/advanced-markers-basic-style/package.json +++ b/samples/advanced-markers-basic-style/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-collision/index.html b/samples/advanced-markers-collision/index.html index ae1b15884..4fb9db312 100644 --- a/samples/advanced-markers-collision/index.html +++ b/samples/advanced-markers-collision/index.html @@ -22,7 +22,7 @@ diff --git a/samples/advanced-markers-collision/package.json b/samples/advanced-markers-collision/package.json index d569e3196..bafc98eeb 100644 --- a/samples/advanced-markers-collision/package.json +++ b/samples/advanced-markers-collision/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-draggable/index.html b/samples/advanced-markers-draggable/index.html index 078611f64..95568889b 100644 --- a/samples/advanced-markers-draggable/index.html +++ b/samples/advanced-markers-draggable/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-draggable/package.json b/samples/advanced-markers-draggable/package.json index 99805fee0..054adc6d3 100644 --- a/samples/advanced-markers-draggable/package.json +++ b/samples/advanced-markers-draggable/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-graphics/index.html b/samples/advanced-markers-graphics/index.html index c8b0a16c3..dc34b5f8d 100644 --- a/samples/advanced-markers-graphics/index.html +++ b/samples/advanced-markers-graphics/index.html @@ -13,7 +13,7 @@ diff --git a/samples/advanced-markers-graphics/package.json b/samples/advanced-markers-graphics/package.json index 3ac9f74cd..bc2dbc4e5 100644 --- a/samples/advanced-markers-graphics/package.json +++ b/samples/advanced-markers-graphics/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-html-simple/index.html b/samples/advanced-markers-html-simple/index.html index 1b104c75e..3e7311146 100644 --- a/samples/advanced-markers-html-simple/index.html +++ b/samples/advanced-markers-html-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-html-simple/package.json b/samples/advanced-markers-html-simple/package.json index 4aede77e3..82904058c 100644 --- a/samples/advanced-markers-html-simple/package.json +++ b/samples/advanced-markers-html-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-html/index.html b/samples/advanced-markers-html/index.html index c45f8e37e..845e9b37f 100644 --- a/samples/advanced-markers-html/index.html +++ b/samples/advanced-markers-html/index.html @@ -16,7 +16,7 @@ diff --git a/samples/advanced-markers-html/package.json b/samples/advanced-markers-html/package.json index 8f7863e6f..2dfacb375 100644 --- a/samples/advanced-markers-html/package.json +++ b/samples/advanced-markers-html/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-simple/index.html b/samples/advanced-markers-simple/index.html index 2eb922c9e..fa0ea879e 100644 --- a/samples/advanced-markers-simple/index.html +++ b/samples/advanced-markers-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-simple/package.json b/samples/advanced-markers-simple/package.json index ab3493649..b7bf7c1ec 100644 --- a/samples/advanced-markers-simple/package.json +++ b/samples/advanced-markers-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/advanced-markers-zoom/index.html b/samples/advanced-markers-zoom/index.html index cfd4b2c85..a5a47156a 100644 --- a/samples/advanced-markers-zoom/index.html +++ b/samples/advanced-markers-zoom/index.html @@ -14,7 +14,7 @@ diff --git a/samples/advanced-markers-zoom/package.json b/samples/advanced-markers-zoom/package.json index 9cc68de68..490f87d1a 100644 --- a/samples/advanced-markers-zoom/package.json +++ b/samples/advanced-markers-zoom/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/ai-powered-summaries-basic/index.html b/samples/ai-powered-summaries-basic/index.html index 0cb1bbbb8..d6ce2b93f 100644 --- a/samples/ai-powered-summaries-basic/index.html +++ b/samples/ai-powered-summaries-basic/index.html @@ -14,7 +14,7 @@ diff --git a/samples/ai-powered-summaries-basic/package.json b/samples/ai-powered-summaries-basic/package.json index c4cc98da6..c93e6a939 100644 --- a/samples/ai-powered-summaries-basic/package.json +++ b/samples/ai-powered-summaries-basic/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/ai-powered-summaries/index.html b/samples/ai-powered-summaries/index.html index ce27d6bb8..e0a751294 100644 --- a/samples/ai-powered-summaries/index.html +++ b/samples/ai-powered-summaries/index.html @@ -13,7 +13,7 @@ diff --git a/samples/ai-powered-summaries/package.json b/samples/ai-powered-summaries/package.json index 7b207bf9d..94b99a340 100644 --- a/samples/ai-powered-summaries/package.json +++ b/samples/ai-powered-summaries/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - "@js-api-samples/ai-powered-summaries": "file:" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/boundaries-choropleth/index.html b/samples/boundaries-choropleth/index.html index 428b81d77..d1bf4fe80 100644 --- a/samples/boundaries-choropleth/index.html +++ b/samples/boundaries-choropleth/index.html @@ -14,7 +14,7 @@ diff --git a/samples/boundaries-choropleth/package.json b/samples/boundaries-choropleth/package.json index 30e5098be..9a65d93d5 100644 --- a/samples/boundaries-choropleth/package.json +++ b/samples/boundaries-choropleth/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/boundaries-click/index.html b/samples/boundaries-click/index.html index d2af3aaf6..cbd05fb44 100644 --- a/samples/boundaries-click/index.html +++ b/samples/boundaries-click/index.html @@ -14,7 +14,7 @@ diff --git a/samples/boundaries-click/package.json b/samples/boundaries-click/package.json index 3e6361e27..3a20cabf3 100644 --- a/samples/boundaries-click/package.json +++ b/samples/boundaries-click/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/boundaries-simple/index.html b/samples/boundaries-simple/index.html index 301e7d4a6..cc9d7928e 100644 --- a/samples/boundaries-simple/index.html +++ b/samples/boundaries-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/boundaries-simple/package.json b/samples/boundaries-simple/package.json index 95d056e09..6562dc21b 100644 --- a/samples/boundaries-simple/package.json +++ b/samples/boundaries-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/boundaries-text-search/index.html b/samples/boundaries-text-search/index.html index 91dfd85a2..c8dda6d33 100644 --- a/samples/boundaries-text-search/index.html +++ b/samples/boundaries-text-search/index.html @@ -14,7 +14,7 @@ diff --git a/samples/boundaries-text-search/package.json b/samples/boundaries-text-search/package.json index 12db9e77e..80e5a5d4e 100644 --- a/samples/boundaries-text-search/package.json +++ b/samples/boundaries-text-search/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/build-single.sh b/samples/build-single.sh index be2eecfa9..f1520f665 100644 --- a/samples/build-single.sh +++ b/samples/build-single.sh @@ -119,6 +119,18 @@ if [[ $? -eq 0 ]]; then exit 1 fi +grep -E "(key:\s*[\"']|key=)" "${html_recursive_grep_options[@]}" | grep -v "GOOGLE_MAPS_API_KEY" +if [[ $? -eq 0 ]]; then + echo "Found a custom API key. Please use the 'GOOGLE_MAPS_API_KEY' placeholder instead." + exit 1 +fi + +grep -i -E "(key:\s*|key=)[\"']?[a-z0-9]{39}[\"']?" "${all_type_recursive_grep_options[@]}" +if [[ $? -eq 0 ]]; then + echo "Found a 39-character string that looks like a real API key. Please use the 'GOOGLE_MAPS_API_KEY' placeholder instead." + exit 1 +fi + # callback & __ib__ both show up the in the inline loader, that's okay. comments also okay grep callback "${all_type_recursive_grep_options[@]}" | grep -v -E '^[-_./a-z0-9]+:\s*//' | grep -v __ib__ if [[ $? -eq 0 ]]; then @@ -196,5 +208,4 @@ set -e bash ../jsfiddle.sh "$NAME" bash ../app.sh "$NAME" bash ../docs.sh "$NAME" -npm run build:vite --workspace=. -bash ../dist.sh "$NAME" \ No newline at end of file +npm run build:vite --workspace=. \ No newline at end of file diff --git a/samples/circle-simple/index.html b/samples/circle-simple/index.html index 54628e2f8..69e88e239 100644 --- a/samples/circle-simple/index.html +++ b/samples/circle-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/circle-simple/package.json b/samples/circle-simple/package.json index d451af7b8..f2a1dc01f 100644 --- a/samples/circle-simple/package.json +++ b/samples/circle-simple/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/control-bounds-restriction/index.html b/samples/control-bounds-restriction/index.html index a1b985053..da2249cea 100644 --- a/samples/control-bounds-restriction/index.html +++ b/samples/control-bounds-restriction/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-bounds-restriction/package.json b/samples/control-bounds-restriction/package.json index 92cdda23a..cd3417b7c 100644 --- a/samples/control-bounds-restriction/package.json +++ b/samples/control-bounds-restriction/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-custom-state/index.html b/samples/control-custom-state/index.html index 33b55e1c8..fb4383a90 100644 --- a/samples/control-custom-state/index.html +++ b/samples/control-custom-state/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-custom-state/package.json b/samples/control-custom-state/package.json index 500289fb9..eb3af2f53 100644 --- a/samples/control-custom-state/package.json +++ b/samples/control-custom-state/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-disableUI/index.html b/samples/control-disableUI/index.html index 9a51f3dd9..781b2b5cc 100644 --- a/samples/control-disableUI/index.html +++ b/samples/control-disableUI/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-disableUI/package.json b/samples/control-disableUI/package.json index 12ebb33c9..303476036 100644 --- a/samples/control-disableUI/package.json +++ b/samples/control-disableUI/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-options/index.html b/samples/control-options/index.html index 0a6a1fce6..02bad2d85 100644 --- a/samples/control-options/index.html +++ b/samples/control-options/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-options/package.json b/samples/control-options/package.json index 0313fe3eb..9d0e7791f 100644 --- a/samples/control-options/package.json +++ b/samples/control-options/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-positioning-labels/index.html b/samples/control-positioning-labels/index.html index df02076c8..a317f08f4 100644 --- a/samples/control-positioning-labels/index.html +++ b/samples/control-positioning-labels/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-positioning-labels/package.json b/samples/control-positioning-labels/package.json index eadb9f414..02f4610c3 100644 --- a/samples/control-positioning-labels/package.json +++ b/samples/control-positioning-labels/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-positioning/index.html b/samples/control-positioning/index.html index 0c958e15f..87d4be78c 100644 --- a/samples/control-positioning/index.html +++ b/samples/control-positioning/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-positioning/package.json b/samples/control-positioning/package.json index 2df0f27f4..aa15d5461 100644 --- a/samples/control-positioning/package.json +++ b/samples/control-positioning/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-replacement/index.html b/samples/control-replacement/index.html index 27f05851d..41ba886c1 100644 --- a/samples/control-replacement/index.html +++ b/samples/control-replacement/index.html @@ -17,7 +17,7 @@ diff --git a/samples/control-replacement/package.json b/samples/control-replacement/package.json index 2aa4514be..bc38fbedb 100644 --- a/samples/control-replacement/package.json +++ b/samples/control-replacement/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/control-simple/index.html b/samples/control-simple/index.html index a53421d67..14d9360b9 100644 --- a/samples/control-simple/index.html +++ b/samples/control-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/control-simple/package.json b/samples/control-simple/package.json index c84ac2111..a0d113670 100644 --- a/samples/control-simple/package.json +++ b/samples/control-simple/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-datasets-point/index.html b/samples/dds-datasets-point/index.html index 86307be6f..68847ce11 100644 --- a/samples/dds-datasets-point/index.html +++ b/samples/dds-datasets-point/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-datasets-point/package.json b/samples/dds-datasets-point/package.json index dbe1f090c..6e9e092a9 100644 --- a/samples/dds-datasets-point/package.json +++ b/samples/dds-datasets-point/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-datasets-polygon-click/index.html b/samples/dds-datasets-polygon-click/index.html index cd2a90c59..f477c585f 100644 --- a/samples/dds-datasets-polygon-click/index.html +++ b/samples/dds-datasets-polygon-click/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-datasets-polygon-click/package.json b/samples/dds-datasets-polygon-click/package.json index f7fb6bdfc..d5dcc2a31 100644 --- a/samples/dds-datasets-polygon-click/package.json +++ b/samples/dds-datasets-polygon-click/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-datasets-polygon-colors/index.html b/samples/dds-datasets-polygon-colors/index.html index 7265da86b..d78928f9b 100644 --- a/samples/dds-datasets-polygon-colors/index.html +++ b/samples/dds-datasets-polygon-colors/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-datasets-polygon-colors/package.json b/samples/dds-datasets-polygon-colors/package.json index 93f4c8c07..7f909f650 100644 --- a/samples/dds-datasets-polygon-colors/package.json +++ b/samples/dds-datasets-polygon-colors/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-datasets-polygon/index.html b/samples/dds-datasets-polygon/index.html index df972c7ae..67adb1992 100644 --- a/samples/dds-datasets-polygon/index.html +++ b/samples/dds-datasets-polygon/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-datasets-polygon/package.json b/samples/dds-datasets-polygon/package.json index f5d57db39..8f9421aad 100644 --- a/samples/dds-datasets-polygon/package.json +++ b/samples/dds-datasets-polygon/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-datasets-polyline/index.html b/samples/dds-datasets-polyline/index.html index d3c8ec296..645714c6b 100644 --- a/samples/dds-datasets-polyline/index.html +++ b/samples/dds-datasets-polyline/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-datasets-polyline/package.json b/samples/dds-datasets-polyline/package.json index 6500ca4da..82f94d0df 100644 --- a/samples/dds-datasets-polyline/package.json +++ b/samples/dds-datasets-polyline/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/dds-region-viewer/index.html b/samples/dds-region-viewer/index.html index 36da5a972..7fa46f52f 100644 --- a/samples/dds-region-viewer/index.html +++ b/samples/dds-region-viewer/index.html @@ -14,7 +14,7 @@ diff --git a/samples/dds-region-viewer/package.json b/samples/dds-region-viewer/package.json index 0ae7c0abd..e78715bdc 100644 --- a/samples/dds-region-viewer/package.json +++ b/samples/dds-region-viewer/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/deckgl-arclayer/index.html b/samples/deckgl-arclayer/index.html index 165e8d4c9..192da8ab9 100644 --- a/samples/deckgl-arclayer/index.html +++ b/samples/deckgl-arclayer/index.html @@ -14,7 +14,7 @@ diff --git a/samples/deckgl-arclayer/package.json b/samples/deckgl-arclayer/package.json index 525b31d15..67a472d43 100644 --- a/samples/deckgl-arclayer/package.json +++ b/samples/deckgl-arclayer/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } \ No newline at end of file diff --git a/samples/deckgl-heatmap/index.html b/samples/deckgl-heatmap/index.html index 850bcf101..557b8e750 100644 --- a/samples/deckgl-heatmap/index.html +++ b/samples/deckgl-heatmap/index.html @@ -24,7 +24,7 @@ diff --git a/samples/deckgl-heatmap/package.json b/samples/deckgl-heatmap/package.json index 919722896..08542ec0c 100644 --- a/samples/deckgl-heatmap/package.json +++ b/samples/deckgl-heatmap/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } \ No newline at end of file diff --git a/samples/deckgl-kml-updated/index.html b/samples/deckgl-kml-updated/index.html index 937a70627..7b3838567 100644 --- a/samples/deckgl-kml-updated/index.html +++ b/samples/deckgl-kml-updated/index.html @@ -24,7 +24,7 @@ diff --git a/samples/deckgl-kml-updated/package.json b/samples/deckgl-kml-updated/package.json index db713c7a4..fba67391a 100644 --- a/samples/deckgl-kml-updated/package.json +++ b/samples/deckgl-kml-updated/package.json @@ -5,8 +5,8 @@ "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite", "start": "vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "dependencies": { "@tmcw/togeojson": "^7.1.2" diff --git a/samples/deckgl-kml/index.html b/samples/deckgl-kml/index.html index ea0654551..895e80c2f 100644 --- a/samples/deckgl-kml/index.html +++ b/samples/deckgl-kml/index.html @@ -24,7 +24,7 @@ diff --git a/samples/deckgl-kml/package.json b/samples/deckgl-kml/package.json index 4f91066ec..bfe98454f 100644 --- a/samples/deckgl-kml/package.json +++ b/samples/deckgl-kml/package.json @@ -5,8 +5,8 @@ "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite", "start": "vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "dependencies": { "@tmcw/togeojson": "^7.1.2" diff --git a/samples/deckgl-points/index.html b/samples/deckgl-points/index.html index 16cd3d19e..d80d76fbc 100644 --- a/samples/deckgl-points/index.html +++ b/samples/deckgl-points/index.html @@ -13,7 +13,7 @@ diff --git a/samples/deckgl-points/package.json b/samples/deckgl-points/package.json index 9bd599ddb..0dd2bdfed 100644 --- a/samples/deckgl-points/package.json +++ b/samples/deckgl-points/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } \ No newline at end of file diff --git a/samples/deckgl-polygon/index.html b/samples/deckgl-polygon/index.html index 21f1021e1..50981390f 100644 --- a/samples/deckgl-polygon/index.html +++ b/samples/deckgl-polygon/index.html @@ -23,7 +23,7 @@ diff --git a/samples/deckgl-polygon/package.json b/samples/deckgl-polygon/package.json index c8fe21f6d..6c6646a0b 100644 --- a/samples/deckgl-polygon/package.json +++ b/samples/deckgl-polygon/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } \ No newline at end of file diff --git a/samples/deckgl-tripslayer/index.html b/samples/deckgl-tripslayer/index.html index 761af5bb8..701e97f28 100644 --- a/samples/deckgl-tripslayer/index.html +++ b/samples/deckgl-tripslayer/index.html @@ -14,7 +14,7 @@ diff --git a/samples/deckgl-tripslayer/package.json b/samples/deckgl-tripslayer/package.json index 409cb0141..6acfd2373 100644 --- a/samples/deckgl-tripslayer/package.json +++ b/samples/deckgl-tripslayer/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } \ No newline at end of file diff --git a/samples/dist.sh b/samples/dist.sh deleted file mode 100755 index 0c8e2b405..000000000 --- a/samples/dist.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Copy/generate: -# - Vite build output for hosting - -if [ "$SKIP_DIST" = "true" ]; then - echo ">>>Skipping dist.sh (SKIP_DIST is true)" - exit 0 -fi - -echo ">>>Running dist.sh" - -NAME=$1 # The name of the folder, taken from package.json "build" line. - -# /Users/[USERNAME]/git/js-api-samples/samples - -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" # Script directory (/samples) -PROJECT_ROOT=$(dirname "$SCRIPT_DIR") # Get the parent directory (js-api-samples) -DIST_DIR="${PROJECT_ROOT}/dist" -SAMPLE_DIR="${PROJECT_ROOT}/dist/samples/${NAME}" - -echo "PROJECT_ROOT: ${PROJECT_ROOT}" - -# Copy Vite output files to /dist/samples/${NAME}/dist -cp -r "${SCRIPT_DIR}/${NAME}/dist" "${SAMPLE_DIR}" diff --git a/samples/event-arguments/index.html b/samples/event-arguments/index.html index ce1640f1c..cac8c870d 100644 --- a/samples/event-arguments/index.html +++ b/samples/event-arguments/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-arguments/package.json b/samples/event-arguments/package.json index b4d8a84e5..98695b93b 100644 --- a/samples/event-arguments/package.json +++ b/samples/event-arguments/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/event-click-latlng/index.html b/samples/event-click-latlng/index.html index 419d3510a..8dce6f216 100644 --- a/samples/event-click-latlng/index.html +++ b/samples/event-click-latlng/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-click-latlng/package.json b/samples/event-click-latlng/package.json index 386a36ca5..8fd6a4ed4 100644 --- a/samples/event-click-latlng/package.json +++ b/samples/event-click-latlng/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/event-closure/index.html b/samples/event-closure/index.html index 542b62119..6fe9390d2 100644 --- a/samples/event-closure/index.html +++ b/samples/event-closure/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-closure/package.json b/samples/event-closure/package.json index e016d406f..df84ed214 100644 --- a/samples/event-closure/package.json +++ b/samples/event-closure/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/event-poi/index.html b/samples/event-poi/index.html index f2e13944a..dd8c5a9b4 100644 --- a/samples/event-poi/index.html +++ b/samples/event-poi/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-poi/package.json b/samples/event-poi/package.json index 0f27f18b2..dc840e955 100644 --- a/samples/event-poi/package.json +++ b/samples/event-poi/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/event-properties/index.html b/samples/event-properties/index.html index 213df2c1d..71e7b114c 100644 --- a/samples/event-properties/index.html +++ b/samples/event-properties/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-properties/package.json b/samples/event-properties/package.json index dd3977852..2ef7d4075 100644 --- a/samples/event-properties/package.json +++ b/samples/event-properties/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/event-simple/index.html b/samples/event-simple/index.html index 6f8e97cf9..824c4a012 100644 --- a/samples/event-simple/index.html +++ b/samples/event-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/event-simple/package.json b/samples/event-simple/package.json index 38dab69dd..10471bcec 100644 --- a/samples/event-simple/package.json +++ b/samples/event-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-component-restriction/index.html b/samples/geocoding-component-restriction/index.html index da9f72f06..d79b86edc 100644 --- a/samples/geocoding-component-restriction/index.html +++ b/samples/geocoding-component-restriction/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-component-restriction/package.json b/samples/geocoding-component-restriction/package.json index cce03670d..3de7c03fe 100644 --- a/samples/geocoding-component-restriction/package.json +++ b/samples/geocoding-component-restriction/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-place-id/index.html b/samples/geocoding-place-id/index.html index e262999aa..b93809003 100644 --- a/samples/geocoding-place-id/index.html +++ b/samples/geocoding-place-id/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-place-id/package.json b/samples/geocoding-place-id/package.json index d7404d86d..160177558 100644 --- a/samples/geocoding-place-id/package.json +++ b/samples/geocoding-place-id/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-region-es/index.html b/samples/geocoding-region-es/index.html index 5be5552f3..40ad10108 100644 --- a/samples/geocoding-region-es/index.html +++ b/samples/geocoding-region-es/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-region-es/package.json b/samples/geocoding-region-es/package.json index 4779ac123..4ed6a49c9 100644 --- a/samples/geocoding-region-es/package.json +++ b/samples/geocoding-region-es/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-region-us/index.html b/samples/geocoding-region-us/index.html index 8c1a4d2e9..f50c2ebd2 100644 --- a/samples/geocoding-region-us/index.html +++ b/samples/geocoding-region-us/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-region-us/package.json b/samples/geocoding-region-us/package.json index 1192a9ac0..e3078afd8 100644 --- a/samples/geocoding-region-us/package.json +++ b/samples/geocoding-region-us/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-reverse/index.html b/samples/geocoding-reverse/index.html index 911310146..8f9e01002 100644 --- a/samples/geocoding-reverse/index.html +++ b/samples/geocoding-reverse/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-reverse/package.json b/samples/geocoding-reverse/package.json index e9a9b4212..fd556a7cc 100644 --- a/samples/geocoding-reverse/package.json +++ b/samples/geocoding-reverse/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/geocoding-simple/index.html b/samples/geocoding-simple/index.html index 419eb74e4..ff87bf10f 100644 --- a/samples/geocoding-simple/index.html +++ b/samples/geocoding-simple/index.html @@ -4,7 +4,6 @@ Copyright 2026 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - @@ -15,7 +14,7 @@ diff --git a/samples/geocoding-simple/package.json b/samples/geocoding-simple/package.json index 6193a7b3a..f103831d3 100644 --- a/samples/geocoding-simple/package.json +++ b/samples/geocoding-simple/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/hiding-features/index.html b/samples/hiding-features/index.html index 630abb2e3..d0ea753c5 100644 --- a/samples/hiding-features/index.html +++ b/samples/hiding-features/index.html @@ -14,7 +14,7 @@ diff --git a/samples/hiding-features/package.json b/samples/hiding-features/package.json index 3e3fcf65d..6a33ce4c7 100644 --- a/samples/hiding-features/package.json +++ b/samples/hiding-features/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/infowindow-simple/index.html b/samples/infowindow-simple/index.html index 8beaa0766..0765c3961 100644 --- a/samples/infowindow-simple/index.html +++ b/samples/infowindow-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/infowindow-simple/package.json b/samples/infowindow-simple/package.json index a18c0ce09..d7c151265 100644 --- a/samples/infowindow-simple/package.json +++ b/samples/infowindow-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/js-api-loader-map/index.ts b/samples/js-api-loader-map/index.ts index 7d303b86a..47319ced0 100644 --- a/samples/js-api-loader-map/index.ts +++ b/samples/js-api-loader-map/index.ts @@ -10,7 +10,7 @@ import { setOptions, importLibrary } from '@googlemaps/js-api-loader'; // [END maps_js_api_loader_map_load] -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; async function init(): Promise { // [START maps_js_api_loader_map_options] diff --git a/samples/js-api-loader-map/package.json b/samples/js-api-loader-map/package.json index a1dbd38d5..c9e196e38 100644 --- a/samples/js-api-loader-map/package.json +++ b/samples/js-api-loader-map/package.json @@ -5,8 +5,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", "preview": "npm run start" }, "keywords": [], diff --git a/samples/layer-data-event/index.html b/samples/layer-data-event/index.html index 924cdf99c..a3ac17ab4 100644 --- a/samples/layer-data-event/index.html +++ b/samples/layer-data-event/index.html @@ -14,7 +14,7 @@ diff --git a/samples/layer-data-event/package.json b/samples/layer-data-event/package.json index c2dbbeeab..cc0acef3d 100644 --- a/samples/layer-data-event/package.json +++ b/samples/layer-data-event/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/layer-data-quakes-red/index.html b/samples/layer-data-quakes-red/index.html index 7f2240b5a..05d532fb3 100644 --- a/samples/layer-data-quakes-red/index.html +++ b/samples/layer-data-quakes-red/index.html @@ -15,7 +15,7 @@ diff --git a/samples/layer-data-quakes-red/package.json b/samples/layer-data-quakes-red/package.json index 9c06608cf..1b40fb157 100644 --- a/samples/layer-data-quakes-red/package.json +++ b/samples/layer-data-quakes-red/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/layer-data-quakes-simple/index.html b/samples/layer-data-quakes-simple/index.html index 26d01c86f..d5254cae1 100644 --- a/samples/layer-data-quakes-simple/index.html +++ b/samples/layer-data-quakes-simple/index.html @@ -15,7 +15,7 @@ diff --git a/samples/layer-data-quakes-simple/package.json b/samples/layer-data-quakes-simple/package.json index fbd68a731..0910116a1 100644 --- a/samples/layer-data-quakes-simple/package.json +++ b/samples/layer-data-quakes-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/layer-data-simple/index.html b/samples/layer-data-simple/index.html index 943849540..08c4e481f 100644 --- a/samples/layer-data-simple/index.html +++ b/samples/layer-data-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/layer-data-simple/package.json b/samples/layer-data-simple/package.json index a04172db2..6a0311bee 100644 --- a/samples/layer-data-simple/package.json +++ b/samples/layer-data-simple/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/layer-data-style/index.html b/samples/layer-data-style/index.html index 943cf9b70..448e7c74e 100644 --- a/samples/layer-data-style/index.html +++ b/samples/layer-data-style/index.html @@ -14,7 +14,7 @@ diff --git a/samples/layer-data-style/package.json b/samples/layer-data-style/package.json index 0f57ab503..ccf799dbd 100644 --- a/samples/layer-data-style/package.json +++ b/samples/layer-data-style/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/map-drawing-terradraw/index.html b/samples/map-drawing-terradraw/index.html index b867fb4c6..4aac7c455 100644 --- a/samples/map-drawing-terradraw/index.html +++ b/samples/map-drawing-terradraw/index.html @@ -13,7 +13,7 @@ diff --git a/samples/map-drawing-terradraw/package.json b/samples/map-drawing-terradraw/package.json index f64d45357..93108cea4 100644 --- a/samples/map-drawing-terradraw/package.json +++ b/samples/map-drawing-terradraw/package.json @@ -5,9 +5,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "dependencies": { "terra-draw": "latest", diff --git a/samples/map-events/index.html b/samples/map-events/index.html index da8a129bc..290a8f971 100644 --- a/samples/map-events/index.html +++ b/samples/map-events/index.html @@ -14,7 +14,7 @@ diff --git a/samples/map-events/package.json b/samples/map-events/package.json index 839775ec4..b1d0cb09f 100644 --- a/samples/map-events/package.json +++ b/samples/map-events/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/map-projection-simple/index.html b/samples/map-projection-simple/index.html index a2cc852c7..1f126dff1 100644 --- a/samples/map-projection-simple/index.html +++ b/samples/map-projection-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/map-projection-simple/package.json b/samples/map-projection-simple/package.json index 7cbda300d..e9655bd26 100644 --- a/samples/map-projection-simple/package.json +++ b/samples/map-projection-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/map-simple-js/index.html b/samples/map-simple-js/index.html index 3206d77a4..d2861ebf2 100644 --- a/samples/map-simple-js/index.html +++ b/samples/map-simple-js/index.html @@ -21,7 +21,7 @@ diff --git a/samples/map-simple-js/package.json b/samples/map-simple-js/package.json index ab96efdc7..379404f6a 100644 --- a/samples/map-simple-js/package.json +++ b/samples/map-simple-js/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/map-simple/index.html b/samples/map-simple/index.html index 171112a1c..b4253b9dc 100644 --- a/samples/map-simple/index.html +++ b/samples/map-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/map-simple/package.json b/samples/map-simple/package.json index 3b7d405c6..e6a24144e 100644 --- a/samples/map-simple/package.json +++ b/samples/map-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/place-autocomplete-basic-map/index.html b/samples/place-autocomplete-basic-map/index.html index 9b022a9c6..8b6fa9b41 100644 --- a/samples/place-autocomplete-basic-map/index.html +++ b/samples/place-autocomplete-basic-map/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-autocomplete-basic-map/package.json b/samples/place-autocomplete-basic-map/package.json index 097af36a4..ac225a0f7 100644 --- a/samples/place-autocomplete-basic-map/package.json +++ b/samples/place-autocomplete-basic-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-autocomplete-data-session/index.html b/samples/place-autocomplete-data-session/index.html index 7925d662a..562fb43c8 100644 --- a/samples/place-autocomplete-data-session/index.html +++ b/samples/place-autocomplete-data-session/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-autocomplete-data-session/package.json b/samples/place-autocomplete-data-session/package.json index 53220cb42..92cd6d676 100644 --- a/samples/place-autocomplete-data-session/package.json +++ b/samples/place-autocomplete-data-session/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-autocomplete-data-simple/index.html b/samples/place-autocomplete-data-simple/index.html index d0c5db8d4..6c4ca298d 100644 --- a/samples/place-autocomplete-data-simple/index.html +++ b/samples/place-autocomplete-data-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-autocomplete-data-simple/package.json b/samples/place-autocomplete-data-simple/package.json index 4707e4e34..f73877be8 100644 --- a/samples/place-autocomplete-data-simple/package.json +++ b/samples/place-autocomplete-data-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-autocomplete-element/index.html b/samples/place-autocomplete-element/index.html index 5836b1746..6b4ad6932 100644 --- a/samples/place-autocomplete-element/index.html +++ b/samples/place-autocomplete-element/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-autocomplete-element/package.json b/samples/place-autocomplete-element/package.json index e74c66072..88804b486 100644 --- a/samples/place-autocomplete-element/package.json +++ b/samples/place-autocomplete-element/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-autocomplete-map/index.html b/samples/place-autocomplete-map/index.html index 714460150..158b56f5a 100644 --- a/samples/place-autocomplete-map/index.html +++ b/samples/place-autocomplete-map/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-autocomplete-map/package.json b/samples/place-autocomplete-map/package.json index 8ccbd263d..4a2c452c9 100644 --- a/samples/place-autocomplete-map/package.json +++ b/samples/place-autocomplete-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-class/index.html b/samples/place-class/index.html index d09423e3c..92fa5a9ab 100644 --- a/samples/place-class/index.html +++ b/samples/place-class/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-class/package.json b/samples/place-class/package.json index 78deb01d7..3e7c152fa 100644 --- a/samples/place-class/package.json +++ b/samples/place-class/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-nearby-search/index.html b/samples/place-nearby-search/index.html index 9efe25799..e32659355 100644 --- a/samples/place-nearby-search/index.html +++ b/samples/place-nearby-search/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-nearby-search/package.json b/samples/place-nearby-search/package.json index dad30f1f3..679907928 100644 --- a/samples/place-nearby-search/package.json +++ b/samples/place-nearby-search/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-photos/index.html b/samples/place-photos/index.html index 4723f1a06..cd85f55c9 100644 --- a/samples/place-photos/index.html +++ b/samples/place-photos/index.html @@ -16,7 +16,7 @@ diff --git a/samples/place-photos/package.json b/samples/place-photos/package.json index 918ab0fe3..3143ba950 100644 --- a/samples/place-photos/package.json +++ b/samples/place-photos/package.json @@ -4,8 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/place-reviews/index.html b/samples/place-reviews/index.html index 775a29f4e..5bedeb537 100644 --- a/samples/place-reviews/index.html +++ b/samples/place-reviews/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-reviews/package.json b/samples/place-reviews/package.json index e712c3129..cd763233d 100644 --- a/samples/place-reviews/package.json +++ b/samples/place-reviews/package.json @@ -4,9 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": {} + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" + } } diff --git a/samples/place-text-search/index.html b/samples/place-text-search/index.html index 0b2530b4b..f134842e0 100644 --- a/samples/place-text-search/index.html +++ b/samples/place-text-search/index.html @@ -14,7 +14,7 @@ diff --git a/samples/place-text-search/package.json b/samples/place-text-search/package.json index 3d4f14f09..b398ae275 100644 --- a/samples/place-text-search/package.json +++ b/samples/place-text-search/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/places-autocomplete-addressform/index.html b/samples/places-autocomplete-addressform/index.html index 5f65bdf7d..f25ed746b 100644 --- a/samples/places-autocomplete-addressform/index.html +++ b/samples/places-autocomplete-addressform/index.html @@ -18,7 +18,7 @@ diff --git a/samples/places-autocomplete-addressform/package.json b/samples/places-autocomplete-addressform/package.json index 550e59d58..58721d03c 100644 --- a/samples/places-autocomplete-addressform/package.json +++ b/samples/places-autocomplete-addressform/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/places-placeid-finder/index.html b/samples/places-placeid-finder/index.html index 8cc50f211..4690a6de7 100644 --- a/samples/places-placeid-finder/index.html +++ b/samples/places-placeid-finder/index.html @@ -14,7 +14,7 @@ diff --git a/samples/places-placeid-finder/package.json b/samples/places-placeid-finder/package.json index ffff3b07f..67b4bdec5 100644 --- a/samples/places-placeid-finder/package.json +++ b/samples/places-placeid-finder/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/polyline-complex/index.html b/samples/polyline-complex/index.html index c54fc579d..906272481 100644 --- a/samples/polyline-complex/index.html +++ b/samples/polyline-complex/index.html @@ -14,7 +14,7 @@ diff --git a/samples/polyline-complex/package.json b/samples/polyline-complex/package.json index 7ba38c865..8399090cc 100644 --- a/samples/polyline-complex/package.json +++ b/samples/polyline-complex/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/polyline-remove/index.html b/samples/polyline-remove/index.html index dace93ece..2f0d2106c 100644 --- a/samples/polyline-remove/index.html +++ b/samples/polyline-remove/index.html @@ -14,7 +14,7 @@ diff --git a/samples/polyline-remove/package.json b/samples/polyline-remove/package.json index 6bb8d713d..f82e923ea 100644 --- a/samples/polyline-remove/package.json +++ b/samples/polyline-remove/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/polyline-simple/index.html b/samples/polyline-simple/index.html index c79ed17ab..4674cbb56 100644 --- a/samples/polyline-simple/index.html +++ b/samples/polyline-simple/index.html @@ -14,7 +14,7 @@ diff --git a/samples/polyline-simple/package.json b/samples/polyline-simple/package.json index 84a92f0de..ac1a471fe 100644 --- a/samples/polyline-simple/package.json +++ b/samples/polyline-simple/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/react-ui-kit-place-details-compact/package.json b/samples/react-ui-kit-place-details-compact/package.json index d8d71903c..6cac9ac9b 100644 --- a/samples/react-ui-kit-place-details-compact/package.json +++ b/samples/react-ui-kit-place-details-compact/package.json @@ -5,8 +5,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/react-ui-kit-place-details-compact/src/app.tsx b/samples/react-ui-kit-place-details-compact/src/app.tsx index e9fcc91c1..526918c91 100644 --- a/samples/react-ui-kit-place-details-compact/src/app.tsx +++ b/samples/react-ui-kit-place-details-compact/src/app.tsx @@ -12,7 +12,7 @@ import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; import './styles.css'; -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; interface PlaceDetailsProps { placeId: string; diff --git a/samples/react-ui-kit-place-details-latlng-compact/package.json b/samples/react-ui-kit-place-details-latlng-compact/package.json index 8c1ca8380..e4c821e33 100644 --- a/samples/react-ui-kit-place-details-latlng-compact/package.json +++ b/samples/react-ui-kit-place-details-latlng-compact/package.json @@ -5,8 +5,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/react-ui-kit-place-details-latlng-compact/src/app.tsx b/samples/react-ui-kit-place-details-latlng-compact/src/app.tsx index 833aed205..4be2b8c24 100644 --- a/samples/react-ui-kit-place-details-latlng-compact/src/app.tsx +++ b/samples/react-ui-kit-place-details-latlng-compact/src/app.tsx @@ -12,7 +12,7 @@ import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; import './styles.css'; -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; interface PlaceDetailsProps { lat: number; diff --git a/samples/react-ui-kit-place-details-latlng/package.json b/samples/react-ui-kit-place-details-latlng/package.json index 3116d08ec..ee7c43f9a 100644 --- a/samples/react-ui-kit-place-details-latlng/package.json +++ b/samples/react-ui-kit-place-details-latlng/package.json @@ -5,9 +5,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "devDependencies": { "@vitejs/plugin-react": "^6.0.2" diff --git a/samples/react-ui-kit-place-details-latlng/src/app.tsx b/samples/react-ui-kit-place-details-latlng/src/app.tsx index f3e0ae2ed..fc9df0349 100644 --- a/samples/react-ui-kit-place-details-latlng/src/app.tsx +++ b/samples/react-ui-kit-place-details-latlng/src/app.tsx @@ -12,7 +12,7 @@ import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; import './styles.css'; -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; interface PlaceDetailsProps { lat: number; diff --git a/samples/react-ui-kit-place-details/package.json b/samples/react-ui-kit-place-details/package.json index 5de600cb7..4ae99bbc9 100644 --- a/samples/react-ui-kit-place-details/package.json +++ b/samples/react-ui-kit-place-details/package.json @@ -5,8 +5,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/react-ui-kit-place-details/src/app.tsx b/samples/react-ui-kit-place-details/src/app.tsx index db19de52c..8213269b4 100644 --- a/samples/react-ui-kit-place-details/src/app.tsx +++ b/samples/react-ui-kit-place-details/src/app.tsx @@ -12,7 +12,7 @@ import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; import './styles.css'; -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; interface PlaceDetailsProps { placeId: string; diff --git a/samples/react-ui-kit-search-nearby/package.json b/samples/react-ui-kit-search-nearby/package.json index 18b56ad45..e795f8204 100644 --- a/samples/react-ui-kit-search-nearby/package.json +++ b/samples/react-ui-kit-search-nearby/package.json @@ -5,9 +5,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" }, "devDependencies": { "@vitejs/plugin-react": "^6.0.2" diff --git a/samples/react-ui-kit-search-nearby/src/app.tsx b/samples/react-ui-kit-search-nearby/src/app.tsx index 1fadcbc91..fc5e30762 100644 --- a/samples/react-ui-kit-search-nearby/src/app.tsx +++ b/samples/react-ui-kit-search-nearby/src/app.tsx @@ -25,7 +25,7 @@ import { import './styles.css'; -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; +const API_KEY = 'GOOGLE_MAPS_API_KEY'; const App = () => ( // prettier-ignore (g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})({ - key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" + key: "GOOGLE_MAPS_API_KEY" }); diff --git a/samples/rectangle-event/package.json b/samples/rectangle-event/package.json index 4547f588a..e35bc3e13 100644 --- a/samples/rectangle-event/package.json +++ b/samples/rectangle-event/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-compute-routes/index.html b/samples/routes-compute-routes/index.html index 6dbde0680..c9767db00 100644 --- a/samples/routes-compute-routes/index.html +++ b/samples/routes-compute-routes/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-compute-routes/package.json b/samples/routes-compute-routes/package.json index 442dc546a..822510222 100644 --- a/samples/routes-compute-routes/package.json +++ b/samples/routes-compute-routes/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-get-alternatives/index.html b/samples/routes-get-alternatives/index.html index 08b5484f8..c793e598d 100644 --- a/samples/routes-get-alternatives/index.html +++ b/samples/routes-get-alternatives/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-get-alternatives/package.json b/samples/routes-get-alternatives/package.json index 7dcb301a3..a434b692c 100644 --- a/samples/routes-get-alternatives/package.json +++ b/samples/routes-get-alternatives/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-get-directions-panel/index.html b/samples/routes-get-directions-panel/index.html index ffe9362d6..e88c2c5b2 100644 --- a/samples/routes-get-directions-panel/index.html +++ b/samples/routes-get-directions-panel/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-get-directions-panel/package.json b/samples/routes-get-directions-panel/package.json index ebc300e40..8a2f2bc94 100644 --- a/samples/routes-get-directions-panel/package.json +++ b/samples/routes-get-directions-panel/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-get-directions/index.html b/samples/routes-get-directions/index.html index 249fa1ba9..d6082dfd7 100644 --- a/samples/routes-get-directions/index.html +++ b/samples/routes-get-directions/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-get-directions/package.json b/samples/routes-get-directions/package.json index 7bafdcdef..509e6e472 100644 --- a/samples/routes-get-directions/package.json +++ b/samples/routes-get-directions/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-markers/index.html b/samples/routes-markers/index.html index 7b2377fb7..05a261d5c 100644 --- a/samples/routes-markers/index.html +++ b/samples/routes-markers/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-markers/package.json b/samples/routes-markers/package.json index 3303c9cfd..cdea18456 100644 --- a/samples/routes-markers/package.json +++ b/samples/routes-markers/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/routes-route-matrix/index.html b/samples/routes-route-matrix/index.html index 5955ddc5a..b371a25b2 100644 --- a/samples/routes-route-matrix/index.html +++ b/samples/routes-route-matrix/index.html @@ -14,7 +14,7 @@ diff --git a/samples/routes-route-matrix/package.json b/samples/routes-route-matrix/package.json index 95a1534ce..f4e14ab35 100644 --- a/samples/routes-route-matrix/package.json +++ b/samples/routes-route-matrix/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/streetview-overlays/index.html b/samples/streetview-overlays/index.html index 7e6d2d520..e3e4f8e47 100644 --- a/samples/streetview-overlays/index.html +++ b/samples/streetview-overlays/index.html @@ -14,7 +14,7 @@ diff --git a/samples/streetview-overlays/package.json b/samples/streetview-overlays/package.json index c87944251..f46586e0f 100644 --- a/samples/streetview-overlays/package.json +++ b/samples/streetview-overlays/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/test-example/index.html b/samples/test-example/index.html index 311f85713..ea3b7a8fa 100644 --- a/samples/test-example/index.html +++ b/samples/test-example/index.html @@ -16,7 +16,7 @@ diff --git a/samples/test-example/package.json b/samples/test-example/package.json index af8934876..1cc1f2a7e 100644 --- a/samples/test-example/package.json +++ b/samples/test-example/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/ui-kit-place-details-compact/index.html b/samples/ui-kit-place-details-compact/index.html index e6ddda001..90f4c9b17 100644 --- a/samples/ui-kit-place-details-compact/index.html +++ b/samples/ui-kit-place-details-compact/index.html @@ -14,7 +14,7 @@ diff --git a/samples/ui-kit-place-details-compact/package.json b/samples/ui-kit-place-details-compact/package.json index 9394d6ba4..d5208df88 100644 --- a/samples/ui-kit-place-details-compact/package.json +++ b/samples/ui-kit-place-details-compact/package.json @@ -4,12 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/ui-kit-place-details/index.html b/samples/ui-kit-place-details/index.html index 983179af2..360497ec8 100644 --- a/samples/ui-kit-place-details/index.html +++ b/samples/ui-kit-place-details/index.html @@ -14,7 +14,7 @@ diff --git a/samples/ui-kit-place-details/package.json b/samples/ui-kit-place-details/package.json index 385931996..ec194de73 100644 --- a/samples/ui-kit-place-details/package.json +++ b/samples/ui-kit-place-details/package.json @@ -4,12 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/ui-kit-place-search-nearby/index.html b/samples/ui-kit-place-search-nearby/index.html index 016ebe58a..0bf73e650 100644 --- a/samples/ui-kit-place-search-nearby/index.html +++ b/samples/ui-kit-place-search-nearby/index.html @@ -14,7 +14,7 @@ diff --git a/samples/ui-kit-place-search-nearby/package.json b/samples/ui-kit-place-search-nearby/package.json index 7d603636d..36f68a138 100644 --- a/samples/ui-kit-place-search-nearby/package.json +++ b/samples/ui-kit-place-search-nearby/package.json @@ -4,12 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/ui-kit-place-search-text/index.html b/samples/ui-kit-place-search-text/index.html index 605b60f07..6aa715b0e 100644 --- a/samples/ui-kit-place-search-text/index.html +++ b/samples/ui-kit-place-search-text/index.html @@ -14,7 +14,7 @@ diff --git a/samples/ui-kit-place-search-text/package.json b/samples/ui-kit-place-search-text/package.json index a2212156f..dd3b93e56 100644 --- a/samples/ui-kit-place-search-text/package.json +++ b/samples/ui-kit-place-search-text/package.json @@ -4,12 +4,9 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } \ No newline at end of file diff --git a/samples/weather-api-current-compact/index.html b/samples/weather-api-current-compact/index.html index 9ec60a670..eee640947 100644 --- a/samples/weather-api-current-compact/index.html +++ b/samples/weather-api-current-compact/index.html @@ -15,7 +15,7 @@ diff --git a/samples/weather-api-current-compact/index.ts b/samples/weather-api-current-compact/index.ts index acbe4793f..a2d408c53 100644 --- a/samples/weather-api-current-compact/index.ts +++ b/samples/weather-api-current-compact/index.ts @@ -11,7 +11,7 @@ import './simple-weather-widget'; // Import the custom element const CURRENT_CONDITIONS_API_URL = 'https://weather.googleapis.com/v1/currentConditions:lookup'; // Current Conditions API endpoint. -const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8'; // Use the hardcoded API key from index.html +const API_KEY = 'GOOGLE_MAPS_API_KEY'; // Use the hardcoded API key from index.html const LIGHT_MAP_ID = 'c306b3c6dd3ed8d9'; const DARK_MAP_ID = '6b73a9fe7e831a00'; diff --git a/samples/weather-api-current-compact/package.json b/samples/weather-api-current-compact/package.json index 20f065021..c58a64e55 100644 --- a/samples/weather-api-current-compact/package.json +++ b/samples/weather-api-current-compact/package.json @@ -5,10 +5,7 @@ "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", "start": "vite --port 5173", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/web-components-events/index.html b/samples/web-components-events/index.html index ed1bbe845..1005cc78b 100644 --- a/samples/web-components-events/index.html +++ b/samples/web-components-events/index.html @@ -14,7 +14,7 @@ diff --git a/samples/web-components-events/package.json b/samples/web-components-events/package.json index 4fd7985cf..e4ffa6612 100644 --- a/samples/web-components-events/package.json +++ b/samples/web-components-events/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/web-components-map/index.html b/samples/web-components-map/index.html index 57b013c82..ffce96031 100644 --- a/samples/web-components-map/index.html +++ b/samples/web-components-map/index.html @@ -13,7 +13,7 @@ + src="https://maps.googleapis.com/maps/api/js?loading=async&key=GOOGLE_MAPS_API_KEY&libraries=maps,marker"> diff --git a/samples/web-components-map/package.json b/samples/web-components-map/package.json index e7570025e..63fbda0c2 100644 --- a/samples/web-components-map/package.json +++ b/samples/web-components-map/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/samples/web-components-markers/index.html b/samples/web-components-markers/index.html index addb240fb..d0278ea63 100644 --- a/samples/web-components-markers/index.html +++ b/samples/web-components-markers/index.html @@ -22,7 +22,7 @@ + src="https://maps.googleapis.com/maps/api/js?loading=async&key=GOOGLE_MAPS_API_KEY&libraries=maps,marker"> diff --git a/samples/web-components-markers/package.json b/samples/web-components-markers/package.json index ee628f50e..d1bcdb54f 100644 --- a/samples/web-components-markers/package.json +++ b/samples/web-components-markers/package.json @@ -4,11 +4,8 @@ "scripts": { "build": "bash ../build-single.sh", "test": "tsc && npm run build:vite --workspace=.", - "start": "tsc && vite build --base './' && vite", - "build:vite": "vite build --base './'", - "preview": "vite preview" - }, - "dependencies": { - + "start": "tsc && vite build --config ../../vite.config.js --base './' && vite --config ../../vite.config.js", + "build:vite": "vite build --config ../../vite.config.js --base './'", + "preview": "vite preview --config ../../vite.config.js" } } diff --git a/vite.config.js b/vite.config.js index 811ec749f..e2e5d3add 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,6 +19,10 @@ export default defineConfig(() => { name: 'html-transform', enforce: 'pre', transformIndexHtml(html) { + console.log( + 'transformIndexHtml running! API Key length:', + apiKey.length + ); return html.replace(/GOOGLE_MAPS_API_KEY/g, apiKey); }, },