Conversation
| type: 'ProfileRelationalCreateInput', | ||
| }); |
There was a problem hiding this comment.
These are changes that will end up in the created app after the initial commit (potentially from something like an eslint --fix). So just made them here so there aren't uncommitted changes just after creating the app.
I.e. you create a bison app, it sets up your repo, builds the project, etc., you cd into the project folder and git status, you'll see some uncommitted changes.
| "test:e2e:local": "cross-env CYPRESS_LOCAL=true CYPRESS_BASE_URL=http://localhost:3000 cypress open", | ||
| "test:server": "next start --port 3001", | ||
| "ts-node": "ts-node-dev --project tsconfig.cjs.json", | ||
| "ts-node": "ts-node-dev --project tsconfig.cjs.json -r tsconfig-paths/register", |
There was a problem hiding this comment.
This is what makes ts-node work with the path alias. Without it, none of the scripts run with ts-node would be able to use path aliases.
| "typeRoots": ["node_modules/@types", "types"], | ||
| "rootDir": "." | ||
| "rootDir": ".", | ||
| "baseUrl": ".", |
There was a problem hiding this comment.
For some reason tsconfig-paths/register won't work without a baseUrl set.
code-jenn-or
left a comment
There was a problem hiding this comment.
Thanks for taking the lead on this one! Only thing I think we should do is provide a blurb in the readme for bison users to understand our move to using alias'd paths.
| - Customizable [Hygen Templates](https://www.hygen.io/) to generate new files | ||
| - Fully wired up login/signup pages with client and server-side validation. | ||
| - Eslint pre-configured with [Echobind best practices](https://github.com/echobind/eslint-plugin-echobind) | ||
| - Import path alias to the root project folder (`@/`) to avoid the need for long relative import paths. |
There was a problem hiding this comment.
Perfecto! Thanks for adding this.
Adds a
@/path alias.Changes
ts-nodenpm script to work with the path alias.Checklist