Skip to content

Commit

Permalink
Next app generation (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewesthad authored Jan 31, 2025
1 parent 7015cad commit ced86af
Show file tree
Hide file tree
Showing 12 changed files with 2,770 additions and 22 deletions.
41 changes: 41 additions & 0 deletions packages/tile-extruder-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
9 changes: 9 additions & 0 deletions packages/tile-extruder-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Tile Extruder Web App

A web app for extruding tilesets.

## Running

Install pnpm and then run the following commands from the root of the repo:
- `pnpm install`
- `pnpm --filter tile-extruder-app dev`
16 changes: 16 additions & 0 deletions packages/tile-extruder-app/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];

export default eslintConfig;
7 changes: 7 additions & 0 deletions packages/tile-extruder-app/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
29 changes: 22 additions & 7 deletions packages/tile-extruder-app/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
{
"name": "tile-extruder-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC"
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.1.6"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.1.6",
"@eslint/eslintrc": "^3"
}
}
Binary file added packages/tile-extruder-app/src/app/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions packages/tile-extruder-app/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
html,
body {
max-width: 100vw;
overflow-x: hidden;
font-family: var(--font-montserrat);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

a {
color: inherit;
text-decoration: none;
}
26 changes: 26 additions & 0 deletions packages/tile-extruder-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import type { Metadata } from "next";
import { Montserrat } from "next/font/google";
import "./globals.css";

const montserrat = Montserrat({
subsets: ["latin"],
display: "swap",
variable: "--font-montserrat",
});

export const metadata: Metadata = {
title: "Tile Extruder",
description: `An app for extruding tiles in tilesets to avoid "bleeding" issues where tiles are rendered with the wrong color at the edges of tiles.`,
};

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={`${montserrat.variable}`}>{children}</body>
</html>
);
}
9 changes: 9 additions & 0 deletions packages/tile-extruder-app/src/app/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.main {
display: grid;
grid-template-rows: 20px 1fr 20px;
align-items: center;
justify-items: center;
min-height: 100svh;
padding: 40px;
gap: 64px;
}
9 changes: 9 additions & 0 deletions packages/tile-extruder-app/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import styles from "./page.module.css";

export default function Home() {
return (
<main className={styles.main}>
<h1>Tile Extruder</h1>
</main>
);
}
28 changes: 28 additions & 0 deletions packages/tile-extruder-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": "../../config/tsconfig.base.json",
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit ced86af

Please sign in to comment.