Skip to content

Commit

Permalink
added doc watch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Jun 14, 2024
1 parent 8231b8b commit 8249a33
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 31 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
"generate-keys": "only-allow pnpm && turbo run generate-keys --no-cache"
},
"devDependencies": {
"only-allow": "^1.2.1",
"@changesets/cli": "^2.27.1",
"@testing-library/react": "^15.0.2",
"@types/node": "^20.8.10",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.x",
"@typescript-eslint/parser": "^6.x",
"@vitejs/plugin-react": "^4.2.1",
"chokidar-cli": "^3.0.0",
"concurrently": "^8.2.2",
"eslint": "8.30.0",
"eslint-config-next": "^14",
"eslint-config-standard-with-typescript": "^43",
Expand All @@ -44,6 +45,7 @@
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.31.11",
"jsdom": "^24.0.0",
"only-allow": "^1.2.1",
"rimraf": "^5.0.5",
"supertest": "^6.3.4",
"tsup": "^8.0.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/stack-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"typecheck": "tsc --noEmit",
"with-env": "dotenv -c development --",
"with-env:prod": "dotenv -c --",
"dev": "next dev --port 8101",
"dev": "concurrently \"next dev --port 8101\" \"npm run watch-docs\"",
"build": "npm run codegen && next build",
"analyze-bundle": "ANALYZE_BUNDLE=1 npm run build",
"start": "next start --port 8101",
"codegen": "npm run prisma -- generate",
"psql": "npm run with-env -- bash -c 'psql $DATABASE_CONNECTION_STRING'",
"prisma": "npm run with-env -- prisma",
"lint": "next lint",
"watch-docs": "npm run with-env -- chokidar --silent '../../**/*' -i '../../docs/**' -i '../../**/node_modules/**' -i '../../**/.next/**' -i '../../**/dist/**' -c 'tsx scripts/generate-docs.ts'",
"generate-docs": "npm run with-env -- tsx scripts/generate-docs.ts",
"generate-keys": "npm run with-env -- tsx scripts/generate-keys.ts"
},
Expand Down
18 changes: 3 additions & 15 deletions packages/stack-shared/src/interface/crud/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,8 @@ export const usersCrudServerReadSchema = yup.object({
const serverDeleteSchema = yup.mixed();

export const usersCrud = createCrud({
serverReadSchema: usersCrudServerReadSchema.meta({
summary: 'Get server user',
description: 'Get server user by ID',
operationId: 'getServerUser'
}),
serverUpdateSchema: usersCrudServerUpdateSchema.meta({
summary: 'Update server user',
description: 'Update server user by ID',
operationId: 'updateServerUser',
}),
serverDeleteSchema: serverDeleteSchema.meta({
summary: 'Delete server user',
description: 'Delete server user by ID',
operationId: 'deleteServerUser',
}),
serverReadSchema: usersCrudServerReadSchema,
serverUpdateSchema: usersCrudServerUpdateSchema,
serverDeleteSchema: serverDeleteSchema,
});
export type UsersCrud = CrudTypeOf<typeof usersCrud>;
Loading

0 comments on commit 8249a33

Please sign in to comment.