Last active
June 19, 2022 12:30
-
-
Save sramam/253fde7b0a96f0e2426809feb21b9d98 to your computer and use it in GitHub Desktop.
nexus to noun-and-verb migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
rm -rf bye-bye-nexus | |
mkdir -p bye-bye-nexus/prisma | |
cd bye-bye-nexus | |
npm init -y | |
npm i typescript ts-node -D | |
cd prisma | |
curl -O https://gist.githubusercontent.com/sramam/6e6261b8bc97f592a44c25edee4d3d8f/raw/1de27ab39cf003f940818438340efbd6d655b76f/schema.prisma | |
cd .. | |
mkdir src | |
touch src/index.ts | |
git clone https://github.com/Journaly/journaly | |
cd journaly | |
cd packages/j-db-client/prisma | |
curl -O https://gist.githubusercontent.com/sramam/6e6261b8bc97f592a44c25edee4d3d8f/raw/1de27ab39cf003f940818438340efbd6d655b76f/schema.prisma | |
cd ../../../packages/web | |
npm ci | |
npm run prisma:generate | |
npm run build:nexus | |
cd ../.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment