Skip to content

Commit

Permalink
Add new routes and layout components
Browse files Browse the repository at this point in the history
  • Loading branch information
coji committed Jan 19, 2024
1 parent bdcc91b commit 18ce4fb
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"indexes": [],
"fieldOverrides": []
"indexes": [],
"fieldOverrides": []
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "remix vite:build",
"dev": "remix vite:dev",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
"lint": "biome lint .",
"format": "biome format .",
"typecheck": "tsc",
"ci": "pnpm run lint && pnpm run typecheck",
"validate": "pnpm run lint && pnpm run format && pnpm run typecheck",
"start": "http-server -p 3000 build/client/"
},
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions remix.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { AppConfig } from '@remix-run/dev'
import { flatRoutes } from 'remix-flat-routes'

export default {
ignoredRouteFiles: ['**/*'],
routes: async (defineRoutes) => flatRoutes('routes', defineRoutes),
watchPaths: ['tailwind.config.js'],
} satisfies AppConfig
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"paths": {
"~/*": ["./app/*"]
},
"skipLibCheck": true,

// Remix takes care of building everything in `remix build`.
"noEmit": true
Expand Down
10 changes: 2 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@ import { flatRoutes } from 'remix-flat-routes'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import remixConfig from './remix.config'

export default defineConfig({
build: { rollupOptions: { plugins: [visualizer()] } },
plugins: [
remix({
ignoredRouteFiles: ['**/*'],
routes: async (defineRoutes) => flatRoutes('routes', defineRoutes),
unstable_ssr: false,
}),
tsconfigPaths(),
],
plugins: [remix({ ...remixConfig, unstable_ssr: false }), tsconfigPaths()],
})

0 comments on commit 18ce4fb

Please sign in to comment.