Skip to content

Commit

Permalink
Rearrange files
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Dec 5, 2024
1 parent b10e4e5 commit b09391f
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: main
paths:
- "convex/**"
- "e2e/**"
- "tests/**"
- "src/**"
push:
branches: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: main
paths:
- "convex/**"
- "e2e/**"
- "tests/**"
- "src/**"

concurrency:
Expand Down
1 change: 0 additions & 1 deletion .lintstagedrc.yml

This file was deleted.

File renamed without changes.
22 changes: 11 additions & 11 deletions CONTRIBUTING.md → docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ Now that the development app is running, let's get familiar with what's inside.
## Project structure

```shell
📂 convex # Backend queries, mutations, and schema definitions
📂 e2e # End-to-end Playwright tests
📂 public # Images, favicons, and other unprocessed assets
📂 src # Frontend application
└── 📂 components # Shared components
├── 📂 app # App-related global components (logos, sidebar, etc.)
├── 📂 common # Design system components from React Aria
└── 📂 quests # Feature-specific quest components
├── 📂 routes # File-based routing using TanStack Router
├── 📂 styles # Global CSS (not much here; most of it's in Tailwind!)
└── 📄 main.tsx # Base of the project including common Providers
📂 convex # Backend queries, mutations, and schema definitions
▸ 📂 public # Images, favicons, and other unprocessed assets
▾ 📂 src # Frontend application
▾ 📂 components # Shared components
▸ 📂 app # App-related global components (logos, sidebar, etc.)
📂 common # Design system components from React Aria
📂 quests # Feature-specific quest components
▸ 📂 routes # File-based routing using TanStack Router
▸ 📂 styles # Global CSS (not much here; most of it's in Tailwind!)
📄 main.tsx # Base of the project including common Providers
▸ 📂 tests # End-to-end Playwright tests
```

## Dependencies
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Namesake is a web application which helps people in the U.S. navigate the legal

## Contributing

We welcome new contributors! You don't need to be an expert and we're here to help you. Take a look at our [contribution guidelines](/CONTRIBUTING.md) and come [chat with us](https://namesake.fyi/chat) in #code on Discord.
We welcome new contributors! You don't need to be an expert and we're here to help you. Take a look at our [contribution guidelines](/docs/CONTRIBUTING.md) and come [chat with us](https://namesake.fyi/chat) in #code on Discord.

Need somewhere to start? Check out [good first issues](https://github.com/namesakefyi/namesake/contribute).

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"@types/mime": "3.0.4",
"jackspeak": "2.1.1"
},
"lint-staged": {
"*": "pnpm check:fix"
},
"dependencies": {
"@auth/core": "0.37.4",
"@convex-dev/auth": "^0.0.75",
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig, devices } from "@playwright/test";

export default defineConfig({
testDir: "./e2e",
testDir: "./tests/e2e",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import webpackStatsPlugin from "rollup-plugin-webpack-stats";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { configDefaults, coverageConfigDefaults } from "vitest/config";

// https://vitejs.dev/config/
export default defineConfig({
Expand Down Expand Up @@ -36,4 +37,35 @@ export default defineConfig({
plugins: [autoprefixer(), tailwindcss(), cssnano()],
},
},
test: {
globals: true,
environmentMatchGlobs: [
["convex/**", "edge-runtime"],
["**", "jsdom"],
],
include: [
"src/**/*.{test,spec}.{ts,tsx}",
"convex/**/*.{test,spec}.{ts,tsx}",
],
exclude: [...configDefaults.exclude, "tests/**"],
coverage: {
reporter: ["text", "json-summary", "json"],
reportOnFailure: true,
include: ["src/**", "convex/**"],
exclude: [
...coverageConfigDefaults.exclude,
"**/*.config.?(c|m)[jt]s?(x)",
"convex/_generated/**",
"src/routeTree.gen.ts",
"**/*.stories.tsx",
"src/components/**/index.ts",
],
},
setupFiles: ["./tests/vitest.setup.ts"],
server: {
deps: {
inline: ["convex-test"],
},
},
},
});
42 changes: 0 additions & 42 deletions vitest.config.ts

This file was deleted.

0 comments on commit b09391f

Please sign in to comment.