Skip to content

Commit

Permalink
update setup:dev to gen types first
Browse files Browse the repository at this point in the history
  • Loading branch information
mthomps4 committed Nov 30, 2021
1 parent 6254eb7 commit 6699888
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion packages/create-bison-app/postInstallText.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Change to your project directory:
<%= color.bold(`cd ${name}`) %>

To set up your local environment:
* Run <%= color.bold('yarn build:types') %> to generate the initial types.
* Setup your database and generate typings with <%= color.bold('yarn setup:dev') %>. You will be prompted to create it if necessary.
* Run the app with <%= color.bold('yarn dev') %>. This will start the dev server and watchers for generating types.

Expand Down
3 changes: 0 additions & 3 deletions packages/create-bison-app/template/README.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
# Getting Started Tutorial
This checklist and mini-tutorial will make sure you make the most of your shiny new Bison app.

## Generate initial types
- [ ] Run `yarn build:types` to generate the initial types for the project

## Migrate your database, generate typings, and start the dev server
- [ ] Run `yarn setup:dev` to prep and migrate your local database, as well as generate the prisma client, nexus typings, and GraphQL typings. If this fails, make sure you have Postgres running and the generated `DATABASE_URL` values are correct in your `.env` files.
- For more information about code generation, view the [FAQ](https://github.com/echobind/bisonapp/blob/canary/docs/faq.md#where-can-i-find-the-generated-graphql-schema-react-hooks-and-typings).
Expand Down
2 changes: 1 addition & 1 deletion packages/create-bison-app/template/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"g:test:util": "hygen test util --name",
"lint": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp",
"run:script": "yarn ts-node prisma/scripts/run.ts -f",
"setup:dev": "yarn db:setup && yarn build:types",
"setup:dev": "yarn build:types && yarn db:setup",
"start": "next start -p $PORT",
"test": "yarn withEnv:test jest --runInBand --watch",
"test:ci": "yarn withEnv:test jest --runInBand",
Expand Down

0 comments on commit 6699888

Please sign in to comment.