Skip to content

Commit

Permalink
add playground to docs, and google analytics to it (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestTeluk authored Apr 2, 2024
1 parent 9d3183e commit 8c678be
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<strong><a href="https://github.com/vazco/sparrowql/blob/master/.github/CONTRIBUTING.md">Contribute</a></strong> |
<strong><a href="#usage">Usage</a></strong> |
<strong><a href="https://github.com/vazco/sparrowql/blob/master/INTRODUCTION.md">Documentation</a></strong> |
<strong><a href="https://vazco.github.io/sparrowql">Playground</a></strong> |
<strong><a href="https://github.com/vazco/sparrowql/blob/master/FAQ.md">FAQ</a></strong>
</p>

Expand Down
12 changes: 11 additions & 1 deletion playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lz-string": "1.5.0",
"prettier": "2.8.8",
"typescript": "5.1.3",
"vite": "4.4.5"
"vite": "4.4.5",
"vite-plugin-radar": "0.9.3"
}
}
8 changes: 7 additions & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { vitePluginRadar } from 'vite-plugin-radar'

// https://vitejs.dev/config/
export default defineConfig({
base: '/sparrowql/',
plugins: [react()],
plugins: [react(), vitePluginRadar({
enableDev: false,
gtm: {
id: 'G-ZDM0DBJJVX'
}
})],
})

0 comments on commit 8c678be

Please sign in to comment.