aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-create-react-app/apps/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-create-react-app/apps/docs/src')
-rw-r--r--examples/with-create-react-app/apps/docs/src/App.css26
-rw-r--r--examples/with-create-react-app/apps/docs/src/App.test.tsx9
-rw-r--r--examples/with-create-react-app/apps/docs/src/App.tsx27
-rw-r--r--examples/with-create-react-app/apps/docs/src/index.css13
-rw-r--r--examples/with-create-react-app/apps/docs/src/index.tsx17
-rw-r--r--examples/with-create-react-app/apps/docs/src/react-app-env.d.ts1
-rw-r--r--examples/with-create-react-app/apps/docs/src/reportWebVitals.ts15
-rw-r--r--examples/with-create-react-app/apps/docs/src/setupTests.ts5
8 files changed, 0 insertions, 113 deletions
diff --git a/examples/with-create-react-app/apps/docs/src/App.css b/examples/with-create-react-app/apps/docs/src/App.css
deleted file mode 100644
index 2be1fcc..0000000
--- a/examples/with-create-react-app/apps/docs/src/App.css
+++ /dev/null
@@ -1,26 +0,0 @@
-.App {
- text-align: center;
-}
-
-.Turborepo {
- font-size: 72px;
- background: linear-gradient(to right, #0099f7, #f11712);
- -webkit-background-clip: text;
- background-clip: text;
- -webkit-text-fill-color: transparent;
-}
-
-.App-header {
- background-color: #18181b;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: calc(10px + 2vmin);
- color: white;
-}
-
-.App-link {
- color: white;
-}
diff --git a/examples/with-create-react-app/apps/docs/src/App.test.tsx b/examples/with-create-react-app/apps/docs/src/App.test.tsx
deleted file mode 100644
index bbcbc62..0000000
--- a/examples/with-create-react-app/apps/docs/src/App.test.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from "react";
-import { render, screen } from "@testing-library/react";
-import App from "./App";
-
-test("renders learn react link", () => {
- render(<App />);
- const linkElement = screen.getByText(/Turborepo Example/i);
- expect(linkElement).toBeInTheDocument();
-});
diff --git a/examples/with-create-react-app/apps/docs/src/App.tsx b/examples/with-create-react-app/apps/docs/src/App.tsx
deleted file mode 100644
index 482f83d..0000000
--- a/examples/with-create-react-app/apps/docs/src/App.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from "react";
-import { Link } from "ui";
-import "./App.css";
-
-function App() {
- return (
- <div className="App">
- <header className="App-header">
- <h1 className="header">
- Docs
- <div className="Turborepo">Turborepo Example</div>
- </h1>
- <div>
- <Link className="App-link" href="https://turbo.build/repo">
- Turborepo Docs
- </Link>
- <span> | </span>
- <Link className="App-link" href="https://reactjs.org">
- React Docs
- </Link>
- </div>
- </header>
- </div>
- );
-}
-
-export default App;
diff --git a/examples/with-create-react-app/apps/docs/src/index.css b/examples/with-create-react-app/apps/docs/src/index.css
deleted file mode 100644
index 4a1df4d..0000000
--- a/examples/with-create-react-app/apps/docs/src/index.css
+++ /dev/null
@@ -1,13 +0,0 @@
-body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
- "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
- monospace;
-}
diff --git a/examples/with-create-react-app/apps/docs/src/index.tsx b/examples/with-create-react-app/apps/docs/src/index.tsx
deleted file mode 100644
index ad9cbbb..0000000
--- a/examples/with-create-react-app/apps/docs/src/index.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from "react";
-import ReactDOM from "react-dom";
-import "./index.css";
-import App from "./App";
-import reportWebVitals from "./reportWebVitals";
-
-ReactDOM.render(
- <React.StrictMode>
- <App />
- </React.StrictMode>,
- document.getElementById("root")
-);
-
-// If you want to start measuring performance in your app, pass a function
-// to log results (for example: reportWebVitals(console.log))
-// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
-reportWebVitals();
diff --git a/examples/with-create-react-app/apps/docs/src/react-app-env.d.ts b/examples/with-create-react-app/apps/docs/src/react-app-env.d.ts
deleted file mode 100644
index 6431bc5..0000000
--- a/examples/with-create-react-app/apps/docs/src/react-app-env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-/// <reference types="react-scripts" />
diff --git a/examples/with-create-react-app/apps/docs/src/reportWebVitals.ts b/examples/with-create-react-app/apps/docs/src/reportWebVitals.ts
deleted file mode 100644
index 5fa3583..0000000
--- a/examples/with-create-react-app/apps/docs/src/reportWebVitals.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { ReportHandler } from "web-vitals";
-
-const reportWebVitals = (onPerfEntry?: ReportHandler) => {
- if (onPerfEntry && onPerfEntry instanceof Function) {
- import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
- getCLS(onPerfEntry);
- getFID(onPerfEntry);
- getFCP(onPerfEntry);
- getLCP(onPerfEntry);
- getTTFB(onPerfEntry);
- });
- }
-};
-
-export default reportWebVitals;
diff --git a/examples/with-create-react-app/apps/docs/src/setupTests.ts b/examples/with-create-react-app/apps/docs/src/setupTests.ts
deleted file mode 100644
index 1dd407a..0000000
--- a/examples/with-create-react-app/apps/docs/src/setupTests.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// jest-dom adds custom jest matchers for asserting on DOM nodes.
-// allows you to do things like:
-// expect(element).toHaveTextContent(/react/i)
-// learn more: https://github.com/testing-library/jest-dom
-import "@testing-library/jest-dom";