Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Nov 20, 2024
2 parents b681568 + 12bfcc6 commit 7e213a5
Show file tree
Hide file tree
Showing 11 changed files with 370 additions and 340 deletions.
121 changes: 60 additions & 61 deletions apps/analytics-web/package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,62 @@
{
"name": "analytics-web",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "vitest run",
"test:watch": "vitest watch",
"generate": "npx drizzle-kit generate:pg",
"migrate": "npx tsx scripts/migrate.ts",
"seed": "pnpm run generate && pnpm run migrate && npx tsx scripts/seed.ts"
},
"dependencies": {
"@clerk/nextjs": "^6.3.3",
"@codaco/analytics": "workspace:*",
"@codaco/ui": "workspace:*",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@tanstack/react-table": "^8.20.5",
"@vercel/kv": "^3.0.0",
"@vercel/postgres": "^0.10.0",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.36.1",
"i18n-iso-countries": "^7.13.0",
"lucide-react": "^0.363.0",
"next": "^14.2.18",
"papaparse": "^5.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@codaco/tailwind-config": "workspace:*",
"@codaco/tsconfig": "workspace:*",
"@faker-js/faker": "^8.2.0",
"@testing-library/react": "^14.1.2",
"@types/node": "^20.5.2",
"@types/papaparse": "^5.3.15",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"drizzle-kit": "^0.28.0",
"jsdom": "^25.0.1",
"next-test-api-route-handler": "^4.0.14",
"tailwindcss": "^3.4.1",
"typescript": "^5.6.3",
"vite-tsconfig-paths": "^5.1.2",
"vitest": "^2.1.5"
}
"name": "analytics-web",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "vitest run",
"test:watch": "vitest watch",
"generate": "npx drizzle-kit generate:pg",
"migrate": "npx tsx scripts/migrate.ts",
"seed": "pnpm run generate && pnpm run migrate && npx tsx scripts/seed.ts"
},
"dependencies": {
"@clerk/nextjs": "^6.3.4",
"@codaco/analytics": "workspace:*",
"@codaco/ui": "workspace:*",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@tanstack/react-table": "^8.20.5",
"@vercel/kv": "^3.0.0",
"@vercel/postgres": "^0.10.0",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.36.1",
"i18n-iso-countries": "^7.13.0",
"lucide-react": "^0.363.0",
"next": "^14.2.18",
"papaparse": "^5.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@codaco/tailwind-config": "workspace:*",
"@codaco/tsconfig": "workspace:*",
"@faker-js/faker": "^8.2.0",
"@testing-library/react": "^14.1.2",
"@types/node": "^20.5.2",
"@types/papaparse": "^5.3.15",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"drizzle-kit": "^0.28.0",
"jsdom": "^25.0.1",
"next-test-api-route-handler": "^4.0.14",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3",
"vite-tsconfig-paths": "^5.1.2",
"vitest": "^2.1.5"
}
}
5 changes: 2 additions & 3 deletions apps/documentation/lib/writeSidebarJson.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import "dotenv/config"; // This is essential here, because helper functions (below) use env variables, but they are not available in the Node.js environment without dotenv! This file is run directly in Node via tsc.
import matter from "gray-matter";
import { readFileSync, readdirSync, writeFileSync } from "node:fs";
import type fs from "node:fs";
import { join } from "node:path";
import matter from "gray-matter";
import { type Locale, type TSideBar, locales } from "~/app/types";
import {
createFolderEntry,
Expand All @@ -26,7 +25,7 @@ function generateSidebarData() {

// Set up initial structure for sidebar data.
const sidebarData: TSideBar = locales.reduce((acc, locale) => {
acc[locale] = {};
acc[locale] = {} as TSideBar[Locale];
return acc;
}, {} as TSideBar);

Expand Down
143 changes: 71 additions & 72 deletions apps/documentation/package.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,73 @@
{
"name": "@codaco/documentation",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx ./lib/writeSidebarJson.ts && pnpm next dev",
"build": "pnpm next build",
"postbuild": "pnpm next-sitemap",
"prebuild": "tsx ./lib/writeSidebarJson.ts",
"start": "pnpm next start",
"lint": "pnpm next lint"
},
"dependencies": {
"@codaco/art": "workspace:*",
"@codaco/ui": "workspace:*",
"@docsearch/css": "^3.8.0",
"@docsearch/react": "^3.8.0",
"@mendable/search": "^0.0.206",
"@next/bundle-analyzer": "^15.0.3",
"@next/third-parties": "^14.2.18",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-popover": "^1.1.2",
"@t3-oss/env-nextjs": "^0.11.1",
"@tailwindcss/container-queries": "^0.1.1",
"@vercel/analytics": "^1.4.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"framer-motion": "^11.11.15",
"lucide-react": "^0.456.0",
"next": "^14.2.18",
"next-intl": "^3.25.1",
"next-themes": "^0.4.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@codaco/tailwind-config": "workspace:*",
"@codaco/tsconfig": "workspace:*",
"@microflash/rehype-figure": "^2.1.1",
"@tailwindcss/typography": "^0.5.15",
"@types/hast": "^3.0.4",
"@types/node": "^20.17.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/unist": "^3.0.3",
"gray-matter": "^4.0.3",
"hast-util-heading-rank": "^3.0.0",
"hast-util-to-string": "^3.0.1",
"mdast-util-to-string": "^4.0.0",
"next-sitemap": "^4.2.3",
"rehype-highlight": "^7.0.1",
"rehype-raw": "^7.0.0",
"rehype-react": "^8.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark": "^15.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.14",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.3",
"vfile-matter": "^5.0.0",
"zod": "^3.23.8"
}
"name": "@codaco/documentation",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx ./lib/writeSidebarJson.ts && pnpm next dev",
"build": "pnpm next build",
"postbuild": "pnpm next-sitemap",
"prebuild": "tsx ./lib/writeSidebarJson.ts",
"start": "pnpm next start"
},
"dependencies": {
"@codaco/art": "workspace:*",
"@codaco/ui": "workspace:*",
"@docsearch/css": "^3.8.0",
"@docsearch/react": "^3.8.0",
"@mendable/search": "^0.0.206",
"@next/bundle-analyzer": "^15.0.3",
"@next/third-parties": "^14.2.18",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-popover": "^1.1.2",
"@t3-oss/env-nextjs": "^0.11.1",
"@tailwindcss/container-queries": "^0.1.1",
"@vercel/analytics": "^1.4.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"framer-motion": "^11.11.15",
"lucide-react": "^0.456.0",
"next": "^14.2.18",
"next-intl": "^3.25.1",
"next-themes": "^0.4.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@codaco/tailwind-config": "workspace:*",
"@codaco/tsconfig": "workspace:*",
"@microflash/rehype-figure": "^2.1.1",
"@tailwindcss/typography": "^0.5.15",
"@types/hast": "^3.0.4",
"@types/node": "^20.17.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/unist": "^3.0.3",
"gray-matter": "^4.0.3",
"hast-util-heading-rank": "^3.0.0",
"hast-util-to-string": "^3.0.1",
"mdast-util-to-string": "^4.0.0",
"next-sitemap": "^4.2.3",
"rehype-highlight": "^7.0.1",
"rehype-raw": "^7.0.0",
"rehype-react": "^8.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark": "^15.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.15",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.3",
"vfile-matter": "^5.0.0",
"zod": "^3.23.8"
}
}
Loading

0 comments on commit 7e213a5

Please sign in to comment.