Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typescript): add typescript page #106

Merged
merged 11 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.1
# ORBS
# -------------------------
orbs:
nx: nrwl/nx@1.2.0
nx: nrwl/nx@1.6.2

# -------------------------
# DEFAULTS
Expand Down Expand Up @@ -46,13 +46,13 @@ commands:
- restore_cache:
name: Restore Yarn Package Cache
keys:
- monorepo-tools/yarn-packages/<< parameters.os >>/{{ checksum "yarn.lock" }}
- monorepo-tools/node-packages/<< parameters.os >>/{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn install --prefer-offline --frozen-lockfile --non-interactive --cache-folder ~/.cache/yarn
- save_cache:
name: Save Yarn Package Cache
key: monorepo-tools/yarn-packages/<< parameters.os >>/{{ checksum "yarn.lock" }}
key: monorepo-tools/node-packages/<< parameters.os >>/{{ checksum "yarn.lock" }}
paths:
- node_modules
- ~/.cache
Expand Down
62 changes: 62 additions & 0 deletions apps/website/pages/typescript.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { Footer } from '@monorepo-tools/website/ui-commons';
import {
Benchmark,
Introduction,
PathAliases,
PrebuildCallout,
ProjectStructure,
Resources,
TypeReferences,
Workspaces,
} from '@monorepo-tools/website/ui-typescript';
import { NextSeo } from 'next-seo';
import { useRouter } from 'next/router';

export function Index() {
const router = useRouter();

return (
<>
<NextSeo
title="Monorepo Explained | TypeScript"
description="Everything you need to know about TypeScript monorepos."
openGraph={{
url: `https://monorepo.tools${router.asPath}`,
title: 'Monorepo Explained',
description:
'Everything you need to know about TypeScript monorepos.',
images: [
{
url: 'https://monorepo.tools/images/og-monorepotools.jpg',
width: 1200,
height: 630,
alt: 'Everything you need to know about TypeScript monorepos.',
type: 'image/jpg',
},
],
site_name: 'monorepo.tools',
}}
twitter={{
handle: '@NxDevTools',
site: '@monorepotools',
cardType: 'summary_large_image',
}}
/>

<main>
<Introduction />
<ProjectStructure />
<PathAliases />
<Workspaces />
<PrebuildCallout />
<TypeReferences />
<Benchmark />
<Resources />
</main>

<Footer />
</>
);
}

export default Index;
9 changes: 9 additions & 0 deletions apps/website/public/images/typescript/cicd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions apps/website/public/images/typescript/code-sharing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/website/public/images/typescript/direct-export.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading