Skip to content

Commit

Permalink
chore: add remix build and switch to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 20, 2024
1 parent e472eda commit 4d5fe66
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 24 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://unpkg.com/knip@latest/schema.json",
"entry": ["src/index.ts!"],
"entry": ["app/root.tsx!"],
"ignoreDependencies": ["isbot"],
"ignoreExportsUsedInFile": { "interface": true, "type": true },
"project": ["src/**/*.ts!"]
"project": ["app/**/*.ts!", "app/**/*.tsx!"]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev -c \"node server.js\"",
"format": "prettier .",
"lint": "eslint . .*js --max-warnings 0",
Expand All @@ -35,6 +36,7 @@
},
"devDependencies": {
"@types/eslint": "^8.56.2",
"@types/react": "^18.2.57",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"cspell": "^8.4.1",
Expand Down
20 changes: 19 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions remix.env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
13 changes: 0 additions & 13 deletions src/greet.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/types.ts

This file was deleted.

8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react-jsx",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noEmit": true,
"outDir": "lib",
"paths": {
"~/*": ["./app/*"]
},
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2022"
},
"include": ["src"]
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"]
}

0 comments on commit 4d5fe66

Please sign in to comment.