Skip to content

Commit

Permalink
Change CI and fix CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed Oct 31, 2024
1 parent 16a9fdc commit 30b3421
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ jobs:
run: docker compose up -d
- name: Install dependencies
run: pnpm install
- name: Build required packages
run: pnpm turbo run build --filter=@premieroctet/next-admin-json-schema --filter=@premieroctet/next-admin-generator-prisma && pnpm install
- name: Generate Prisma client
run: cd apps/example && pnpm prisma generate
- name: Build Next Admin packages
run: pnpm turbo run build --filter=@premieroctet/next-admin
- name: Setup packages (Build)
run: pnpm setup:packages
- name: Run linter
run: pnpm lint
- name: Run typecheck
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,8 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Build required packages
run: pnpm turbo run build --filter=@premieroctet/next-admin-json-schema --filter=@premieroctet/next-admin-generator-prisma && pnpm install

- name: Generate Prisma client
run: cd apps/example && pnpm prisma generate

- name: Build Next Admin packages
run: pnpm turbo run build --filter=@premieroctet/next-admin
- name: Setup packages (Build)
run: pnpm setup:packages

- name: Install Vercel CLI
run: npm install --global [email protected]
Expand Down
15 changes: 9 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ An auto generated admin from Prisma models for your Next.js app.

### Apps and Packages

- `docs`: a [Next.js](https://nextjs.org/) app
- `web`: another [Next.js](https://nextjs.org/) app
- `next-admin`: the admin library used by both `web` and `docs` applications
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
- `apps/docs`: a [Next.js](https://nextjs.org/) app
- `apps/example`: a [Next.js](https://nextjs.org/) app that uses the `next-admin` package
- `packages/next-admin`: the admin library used by both `web` and `docs` applications
- `packages/cli`: a CLI to generate the admin in your Next.js app
- `packages/generator-prisma`: a CLI to generate a json schema of your Prisma models
- `packages/json-schema`: a packages to normalize the Prisma schema to a json schema (primarily used to type the generated and next-admin packages)
- `packages/eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `packagestsconfig`: `tsconfig.json`s used throughout the monorepo

### Utilities

Expand All @@ -28,7 +31,7 @@ To setup the project, run the following command:
pnpm install
```

Then you need to create a `.env` file in the root of the project with the following content:
Then you need to create a `.env` file in the `apps/example` project with the following content:

```
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"
Expand Down

0 comments on commit 30b3421

Please sign in to comment.