Skip to content

Commit

Permalink
Remove typescript from app
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jun 11, 2024
1 parent 0e94fca commit b4133f4
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 79 deletions.
28 changes: 28 additions & 0 deletions bench/heavy-npm-deps/app/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import localFont from 'next/font/local'
import './globals.css'

const geistSans = localFont({
src: './fonts/GeistVF.woff',
variable: '--font-geist-sans',
weight: '100 900',
})
const geistMono = localFont({
src: './fonts/GeistMonoVF.woff',
variable: '--font-geist-mono',
weight: '100 900',
})

export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}

export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
</body>
</html>
)
}
33 changes: 0 additions & 33 deletions bench/heavy-npm-deps/app/layout.tsx

This file was deleted.

13 changes: 13 additions & 0 deletions bench/heavy-npm-deps/app/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { LodashComponent } from '../components/lodash'
// import { MantineComponent } from "../components/mantine";
// import { MermaidComponent } from "../components/mermaid";

export default function Page() {
return (
<>
{/* <MantineComponent /> */}
{/* <MermaidComponent /> */}
<LodashComponent />
</>
)
}
13 changes: 0 additions & 13 deletions bench/heavy-npm-deps/app/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"use client";
import * as Lodash from "lodash-es";
'use client'
import * as Lodash from 'lodash-es'

console.log(Lodash);
console.log(Lodash)

export function LodashComponent() {
return (
<>
<h1>Client Component</h1>
</>
);
)
}
File renamed without changes.
File renamed without changes.
11 changes: 9 additions & 2 deletions bench/heavy-npm-deps/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
}

export default nextConfig;
export default nextConfig
27 changes: 0 additions & 27 deletions bench/heavy-npm-deps/tsconfig.json

This file was deleted.

0 comments on commit b4133f4

Please sign in to comment.