From 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:13:33 +0800 Subject: chore: delete useless codes --- docs/content/legacy-features.ts | 91 ----------------------------------------- 1 file changed, 91 deletions(-) delete mode 100644 docs/content/legacy-features.ts (limited to 'docs/content/legacy-features.ts') diff --git a/docs/content/legacy-features.ts b/docs/content/legacy-features.ts deleted file mode 100644 index 8a25d88..0000000 --- a/docs/content/legacy-features.ts +++ /dev/null @@ -1,91 +0,0 @@ -// Remove when docs is refactored to use the new icons (see ./features.ts) - -import React from "react"; -import { - ArrowsExpandIcon, - BeakerIcon, - ChartBarIcon, - ChartPieIcon, - ChipIcon, - CloudUploadIcon, - FingerPrintIcon, - LightningBoltIcon, - RefreshIcon, -} from "@heroicons/react/outline"; -import { IconType } from "../components/Icons"; - -export type Feature = { - name: string; - description: React.ReactNode; - Icon: IconType; - page: "all" | "home" | "docs"; -}; - -export type Features = Array; - -const LEGACY_REPO_FEATURES: Features = [ - { - name: "Incremental builds", - description: `Building once is painful enough, Turborepo will remember what you've built and skip the stuff that's already been computed.`, - Icon: RefreshIcon, - page: "all", - }, - { - name: "Content-aware hashing", - description: `Turborepo looks at the contents of your files, not timestamps to figure out what needs to be built.`, - Icon: FingerPrintIcon, - page: "home", - }, - { - name: "Parallel execution", - description: `Execute builds using every core at maximum parallelism without wasting idle CPUs.`, - Icon: LightningBoltIcon, - page: "all", - }, - { - name: "Remote Caching", - description: `Share a remote build cache with your teammates and CI/CD for even faster builds.`, - Icon: CloudUploadIcon, - page: "all", - }, - { - name: "Zero runtime overhead", - description: `Turborepo won’t interfere with your runtime code or touch your sourcemaps. `, - Icon: ChipIcon, - page: "all", - }, - { - name: "Pruned subsets", - description: `Speed up PaaS deploys by generating a subset of your monorepo with only what's needed to build a specific target.`, - Icon: ChartPieIcon, - page: "all", - }, - { - name: "Task pipelines", - description: `Define the relationships between your tasks and then let Turborepo optimize what to build and when.`, - Icon: ArrowsExpandIcon, - page: "all", - }, - { - name: "Meets you where you’re at", - description: `Using Lerna? Keep your package publishing workflow and use Turborepo to turbocharge task running.`, - Icon: BeakerIcon, - page: "home", - }, - { - name: `Profile in your browser`, - description: `Generate build profiles and import them in Chrome or Edge to understand which tasks are taking the longest.`, - Icon: ChartBarIcon, - page: "home", - }, -]; - -export const LEGACY_REPO_DOCS_FEATURES = LEGACY_REPO_FEATURES.filter( - (f) => f.page === "docs" || f.page === "all" -); - -export const LEGACY_REPO_HOME_FEATURES = LEGACY_REPO_FEATURES.filter( - (f) => f.page === "home" || f.page === "all" -); - -export default LEGACY_REPO_FEATURES; -- cgit v1.2.3-70-g09d2