From 94071d7ce16c56641d67d488e2bac6be84ffe731 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:17:06 +0800 Subject: chore: delete useless files --- examples/with-create-react-app/apps/docs/README.md | 46 ------------------- .../with-create-react-app/apps/docs/package.json | 51 --------------------- .../apps/docs/public/favicon.ico | Bin 3870 -> 0 bytes .../apps/docs/public/index.html | 43 ----------------- .../apps/docs/public/logo192.png | Bin 5347 -> 0 bytes .../apps/docs/public/logo512.png | Bin 9664 -> 0 bytes .../apps/docs/public/manifest.json | 25 ---------- .../apps/docs/public/robots.txt | 3 -- .../with-create-react-app/apps/docs/src/App.css | 26 ----------- .../apps/docs/src/App.test.tsx | 9 ---- .../with-create-react-app/apps/docs/src/App.tsx | 27 ----------- .../with-create-react-app/apps/docs/src/index.css | 13 ------ .../with-create-react-app/apps/docs/src/index.tsx | 17 ------- .../apps/docs/src/react-app-env.d.ts | 1 - .../apps/docs/src/reportWebVitals.ts | 15 ------ .../apps/docs/src/setupTests.ts | 5 -- .../with-create-react-app/apps/docs/tsconfig.json | 4 -- examples/with-create-react-app/apps/web/README.md | 46 ------------------- .../with-create-react-app/apps/web/package.json | 51 --------------------- .../apps/web/public/favicon.ico | Bin 3870 -> 0 bytes .../apps/web/public/index.html | 43 ----------------- .../apps/web/public/logo192.png | Bin 5347 -> 0 bytes .../apps/web/public/logo512.png | Bin 9664 -> 0 bytes .../apps/web/public/manifest.json | 25 ---------- .../apps/web/public/robots.txt | 3 -- .../with-create-react-app/apps/web/src/App.css | 26 ----------- .../apps/web/src/App.test.tsx | 9 ---- .../with-create-react-app/apps/web/src/App.tsx | 27 ----------- .../with-create-react-app/apps/web/src/index.css | 13 ------ .../with-create-react-app/apps/web/src/index.tsx | 17 ------- .../apps/web/src/react-app-env.d.ts | 1 - .../apps/web/src/reportWebVitals.ts | 15 ------ .../apps/web/src/setupTests.ts | 5 -- .../with-create-react-app/apps/web/tsconfig.json | 4 -- 34 files changed, 570 deletions(-) delete mode 100644 examples/with-create-react-app/apps/docs/README.md delete mode 100644 examples/with-create-react-app/apps/docs/package.json delete mode 100644 examples/with-create-react-app/apps/docs/public/favicon.ico delete mode 100644 examples/with-create-react-app/apps/docs/public/index.html delete mode 100644 examples/with-create-react-app/apps/docs/public/logo192.png delete mode 100644 examples/with-create-react-app/apps/docs/public/logo512.png delete mode 100644 examples/with-create-react-app/apps/docs/public/manifest.json delete mode 100644 examples/with-create-react-app/apps/docs/public/robots.txt delete mode 100644 examples/with-create-react-app/apps/docs/src/App.css delete mode 100644 examples/with-create-react-app/apps/docs/src/App.test.tsx delete mode 100644 examples/with-create-react-app/apps/docs/src/App.tsx delete mode 100644 examples/with-create-react-app/apps/docs/src/index.css delete mode 100644 examples/with-create-react-app/apps/docs/src/index.tsx delete mode 100644 examples/with-create-react-app/apps/docs/src/react-app-env.d.ts delete mode 100644 examples/with-create-react-app/apps/docs/src/reportWebVitals.ts delete mode 100644 examples/with-create-react-app/apps/docs/src/setupTests.ts delete mode 100644 examples/with-create-react-app/apps/docs/tsconfig.json delete mode 100644 examples/with-create-react-app/apps/web/README.md delete mode 100644 examples/with-create-react-app/apps/web/package.json delete mode 100644 examples/with-create-react-app/apps/web/public/favicon.ico delete mode 100644 examples/with-create-react-app/apps/web/public/index.html delete mode 100644 examples/with-create-react-app/apps/web/public/logo192.png delete mode 100644 examples/with-create-react-app/apps/web/public/logo512.png delete mode 100644 examples/with-create-react-app/apps/web/public/manifest.json delete mode 100644 examples/with-create-react-app/apps/web/public/robots.txt delete mode 100644 examples/with-create-react-app/apps/web/src/App.css delete mode 100644 examples/with-create-react-app/apps/web/src/App.test.tsx delete mode 100644 examples/with-create-react-app/apps/web/src/App.tsx delete mode 100644 examples/with-create-react-app/apps/web/src/index.css delete mode 100644 examples/with-create-react-app/apps/web/src/index.tsx delete mode 100644 examples/with-create-react-app/apps/web/src/react-app-env.d.ts delete mode 100644 examples/with-create-react-app/apps/web/src/reportWebVitals.ts delete mode 100644 examples/with-create-react-app/apps/web/src/setupTests.ts delete mode 100644 examples/with-create-react-app/apps/web/tsconfig.json (limited to 'examples/with-create-react-app/apps') diff --git a/examples/with-create-react-app/apps/docs/README.md b/examples/with-create-react-app/apps/docs/README.md deleted file mode 100644 index 04cd80b..0000000 --- a/examples/with-create-react-app/apps/docs/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://create-react-app.dev/docs/running-tests/) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://create-react-app.dev/docs/deployment/) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://create-react-app.dev/docs/getting-started/). - -To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/examples/with-create-react-app/apps/docs/package.json b/examples/with-create-react-app/apps/docs/package.json deleted file mode 100644 index 97be3e9..0000000 --- a/examples/with-create-react-app/apps/docs/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "docs", - "version": "0.0.0", - "private": true, - "scripts": { - "start": "react-scripts start", - "dev": "PORT=3001 react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject", - "lint": "eslint \"src/**/*.ts*\"", - "clean": "rm -rf build" - }, - "dependencies": { - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-scripts": "5.0.0", - "ui": "workspace:*", - "web-vitals": "^2.1.2" - }, - "devDependencies": { - "@testing-library/jest-dom": "^5.16.1", - "@testing-library/react": "^12.1.2", - "@testing-library/user-event": "^13.5.0", - "@types/jest": "^27.0.3", - "@types/node": "^16.11.14", - "@types/react": "^17.0.37", - "@types/react-dom": "^17.0.11", - "@types/testing-library__jest-dom": "^5.14.5", - "tsconfig": "workspace:*", - "typescript": "^4.5.4" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/examples/with-create-react-app/apps/docs/public/favicon.ico b/examples/with-create-react-app/apps/docs/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/examples/with-create-react-app/apps/docs/public/favicon.ico and /dev/null differ diff --git a/examples/with-create-react-app/apps/docs/public/index.html b/examples/with-create-react-app/apps/docs/public/index.html deleted file mode 100644 index 0754118..0000000 --- a/examples/with-create-react-app/apps/docs/public/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - Docs - Turborepo Example - - - -
- - - diff --git a/examples/with-create-react-app/apps/docs/public/logo192.png b/examples/with-create-react-app/apps/docs/public/logo192.png deleted file mode 100644 index fc44b0a..0000000 Binary files a/examples/with-create-react-app/apps/docs/public/logo192.png and /dev/null differ diff --git a/examples/with-create-react-app/apps/docs/public/logo512.png b/examples/with-create-react-app/apps/docs/public/logo512.png deleted file mode 100644 index a4e47a6..0000000 Binary files a/examples/with-create-react-app/apps/docs/public/logo512.png and /dev/null differ diff --git a/examples/with-create-react-app/apps/docs/public/manifest.json b/examples/with-create-react-app/apps/docs/public/manifest.json deleted file mode 100644 index 080d6c7..0000000 --- a/examples/with-create-react-app/apps/docs/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/examples/with-create-react-app/apps/docs/public/robots.txt b/examples/with-create-react-app/apps/docs/public/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/examples/with-create-react-app/apps/docs/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: 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(); - 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 ( -
-
-

- Docs -
Turborepo Example
-

-
- - Turborepo Docs - - | - - React Docs - -
-
-
- ); -} - -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( - - - , - 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 @@ -/// 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"; diff --git a/examples/with-create-react-app/apps/docs/tsconfig.json b/examples/with-create-react-app/apps/docs/tsconfig.json deleted file mode 100644 index c5a1f17..0000000 --- a/examples/with-create-react-app/apps/docs/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "tsconfig/react-app.json", - "include": ["src"] -} diff --git a/examples/with-create-react-app/apps/web/README.md b/examples/with-create-react-app/apps/web/README.md deleted file mode 100644 index 04cd80b..0000000 --- a/examples/with-create-react-app/apps/web/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://create-react-app.dev/docs/running-tests/) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://create-react-app.dev/docs/deployment/) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://create-react-app.dev/docs/getting-started/). - -To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/examples/with-create-react-app/apps/web/package.json b/examples/with-create-react-app/apps/web/package.json deleted file mode 100644 index 768d191..0000000 --- a/examples/with-create-react-app/apps/web/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "web", - "version": "0.0.0", - "private": true, - "scripts": { - "start": "react-scripts start", - "dev": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject", - "lint": "eslint \"src/**/*.ts*\"", - "clean": "rm -rf build" - }, - "dependencies": { - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-scripts": "5.0.0", - "ui": "workspace:*", - "web-vitals": "^2.1.2" - }, - "devDependencies": { - "@testing-library/jest-dom": "^5.16.1", - "@testing-library/react": "^12.1.2", - "@testing-library/user-event": "^13.5.0", - "@types/jest": "^27.0.3", - "@types/node": "^16.11.14", - "@types/react": "^17.0.37", - "@types/react-dom": "^17.0.11", - "@types/testing-library__jest-dom": "^5.14.5", - "tsconfig": "workspace:*", - "typescript": "^4.5.4" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/examples/with-create-react-app/apps/web/public/favicon.ico b/examples/with-create-react-app/apps/web/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/examples/with-create-react-app/apps/web/public/favicon.ico and /dev/null differ diff --git a/examples/with-create-react-app/apps/web/public/index.html b/examples/with-create-react-app/apps/web/public/index.html deleted file mode 100644 index dcddb39..0000000 --- a/examples/with-create-react-app/apps/web/public/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - Web - Turborepo Example - - - -
- - - diff --git a/examples/with-create-react-app/apps/web/public/logo192.png b/examples/with-create-react-app/apps/web/public/logo192.png deleted file mode 100644 index fc44b0a..0000000 Binary files a/examples/with-create-react-app/apps/web/public/logo192.png and /dev/null differ diff --git a/examples/with-create-react-app/apps/web/public/logo512.png b/examples/with-create-react-app/apps/web/public/logo512.png deleted file mode 100644 index a4e47a6..0000000 Binary files a/examples/with-create-react-app/apps/web/public/logo512.png and /dev/null differ diff --git a/examples/with-create-react-app/apps/web/public/manifest.json b/examples/with-create-react-app/apps/web/public/manifest.json deleted file mode 100644 index 080d6c7..0000000 --- a/examples/with-create-react-app/apps/web/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/examples/with-create-react-app/apps/web/public/robots.txt b/examples/with-create-react-app/apps/web/public/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/examples/with-create-react-app/apps/web/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/examples/with-create-react-app/apps/web/src/App.css b/examples/with-create-react-app/apps/web/src/App.css deleted file mode 100644 index 2be1fcc..0000000 --- a/examples/with-create-react-app/apps/web/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/web/src/App.test.tsx b/examples/with-create-react-app/apps/web/src/App.test.tsx deleted file mode 100644 index bbcbc62..0000000 --- a/examples/with-create-react-app/apps/web/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(); - const linkElement = screen.getByText(/Turborepo Example/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/examples/with-create-react-app/apps/web/src/App.tsx b/examples/with-create-react-app/apps/web/src/App.tsx deleted file mode 100644 index f260409..0000000 --- a/examples/with-create-react-app/apps/web/src/App.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from "react"; -import { Link } from "ui"; -import "./App.css"; - -function App() { - return ( -
-
-

- Web -
Turborepo Example
-

-
- - Turborepo Docs - - | - - React Docs - -
-
-
- ); -} - -export default App; diff --git a/examples/with-create-react-app/apps/web/src/index.css b/examples/with-create-react-app/apps/web/src/index.css deleted file mode 100644 index 4a1df4d..0000000 --- a/examples/with-create-react-app/apps/web/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/web/src/index.tsx b/examples/with-create-react-app/apps/web/src/index.tsx deleted file mode 100644 index ad9cbbb..0000000 --- a/examples/with-create-react-app/apps/web/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( - - - , - 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/web/src/react-app-env.d.ts b/examples/with-create-react-app/apps/web/src/react-app-env.d.ts deleted file mode 100644 index 6431bc5..0000000 --- a/examples/with-create-react-app/apps/web/src/react-app-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/examples/with-create-react-app/apps/web/src/reportWebVitals.ts b/examples/with-create-react-app/apps/web/src/reportWebVitals.ts deleted file mode 100644 index 5fa3583..0000000 --- a/examples/with-create-react-app/apps/web/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/web/src/setupTests.ts b/examples/with-create-react-app/apps/web/src/setupTests.ts deleted file mode 100644 index 1dd407a..0000000 --- a/examples/with-create-react-app/apps/web/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"; diff --git a/examples/with-create-react-app/apps/web/tsconfig.json b/examples/with-create-react-app/apps/web/tsconfig.json deleted file mode 100644 index c5a1f17..0000000 --- a/examples/with-create-react-app/apps/web/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "tsconfig/react-app.json", - "include": ["src"] -} -- cgit v1.2.3-70-g09d2