diff --git a/apps/web/.gitignore b/apps/web/.gitignore deleted file mode 100644 index 07f86bbc..00000000 --- a/apps/web/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -test-results/ -public/*.js -public/*.js.map diff --git a/apps/web/README.md b/apps/web/README.md deleted file mode 100644 index 1fa45c05..00000000 --- a/apps/web/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Title - -This is an example file with default selections. - -## Install - -> TBD - -## Usage - -> TBD - -## Contributing - -PRs accepted. - -## License - -MIT © TBD diff --git a/apps/web/e2e/index.spec.ts b/apps/web/e2e/index.spec.ts deleted file mode 100644 index 5ad6ee21..00000000 --- a/apps/web/e2e/index.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { expect, test } from "@playwright/test"; - -test("should navigate to the about page", async ({ page }) => { - await page.goto("/"); - await page.getByText("About").click(); - await expect(page).toHaveURL("/about"); -}); diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts deleted file mode 100644 index 4f11a03d..00000000 --- a/apps/web/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/web/next.config.js b/apps/web/next.config.js deleted file mode 100644 index 77cbd227..00000000 --- a/apps/web/next.config.js +++ /dev/null @@ -1,16 +0,0 @@ -// @ts-check - -const withPreact = require("next-plugin-preact"); -const { GA_TRACKING_ID } = process.env; - -/** - * @type {import('next').NextConfig} - */ -const config = { - productionBrowserSourceMaps: true, - env: { - GA_TRACKING_ID, - }, -}; - -module.exports = withPreact(config); diff --git a/apps/web/package.json b/apps/web/package.json deleted file mode 100644 index 1a993218..00000000 --- a/apps/web/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "web", - "version": "0.0.1", - "private": true, - "license": "MIT", - "scripts": { - "build": "next build", - "dev": "next dev", - "start": "next start", - "playwright": "playwright", - "test": "playwright test" - }, - "dependencies": { - "@app/ui": "^0.0.1", - "next": "12.3.4", - "next-plugin-preact": "3.0.7", - "react": "npm:@preact/compat@17.1.2", - "react-dom": "npm:@preact/compat@17.1.2", - "react-ssr-prepass": "npm:preact-ssr-prepass@1.2.1" - }, - "devDependencies": { - "@playwright/test": "^1.44.1", - "@types/gtag.js": "^0.0.20" - } -} diff --git a/apps/web/pages/404.tsx b/apps/web/pages/404.tsx deleted file mode 100644 index 10f6753e..00000000 --- a/apps/web/pages/404.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import ErrorPage from "next/error"; - -export default function NotFound() { - return ; -} diff --git a/apps/web/pages/_app.tsx b/apps/web/pages/_app.tsx deleted file mode 100644 index a873f68b..00000000 --- a/apps/web/pages/_app.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import type { AppProps } from "next/app"; -import { useRouter } from "next/router"; -import { useEffect } from "react"; -import * as gtag from "../utils/gtag"; - -const App = ({ Component, pageProps }: AppProps) => { - const router = useRouter(); - useEffect(() => { - const handleRouteChange = (url: string) => { - gtag.pageView(url); - }; - router.events.on("routeChangeComplete", handleRouteChange); - return () => { - router.events.off("routeChangeComplete", handleRouteChange); - }; - }, [router.events]); - - return ; -}; - -export default App; diff --git a/apps/web/pages/_document.tsx b/apps/web/pages/_document.tsx deleted file mode 100644 index 6ebdb055..00000000 --- a/apps/web/pages/_document.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import Document, { Head, Html, Main, NextScript } from "next/document"; -import { GA_TRACKING_ID } from "../utils/gtag"; - -export default class MyDocument extends Document { - render() { - return ( - - - - - - - - Next.js PWA Example - - - - - - - {/* Global Site Tag (gtag.js) - Google Analytics */} -