Skip to content

Commit

Permalink
Create npm scripts for prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
tomitheninja committed Aug 29, 2021
1 parent 90f112d commit edffc8c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@
"build": "yarn build:ts && yarn build:css && yarn lint && yarn copy:static-assets",
"build:prod": "yarn build:ts && yarn build:css && yarn copy:static-assets",
"serve": "node dist/src/server.js",
"migrate": "knex migrate:latest",
"seed": "knex seed:run",
"migrate:upgrade": "knex migrate:latest",
"prisma:migrate": "npx prisma migrate deploy",
"prisma:migrate:now": "npx prisma migrate dev --create-only --preview-feature",
"prisma:pull": "npx prisma db pull",
"prisma:build": "npx prisma generate",
"prisma:seed": "npx prisma db seed --preview-feature",
"watch:node": "nodemon",
"watch": "concurrently -k -p \"[{name}]\" -n \"Css,Static,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"yarn watch:css\" \"yarn watch:static-assets\" \"yarn watch:node\"",
"test": "yarn run cypress open",
"build:ts": "etsc",
"build:ts": "yarn prisma:build && etsc",
"build:css": "NODE_ENV=production postcss public/css/tailwind.css -o dist/public/css/styles.css",
"watch:css": "NODE_ENV=development postcss public/css/tailwind.css -o dist/public/css/styles.css -w",
"watch:fe": "concurrently -k -p \"[{name}]\" -n \"Css,Static\" -c \"yellow.bold,cyan.bold\" \"yarn watch:css\" \"yarn watch:static-assets\"",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\"",
"copy:static-assets": "node -r esm copyStaticAssets.js",
"watch:static-assets": "chokidar \"views/**/*.pug\" \"public/js/**/*.js\" -c \"yarn copy:static-assets\"",
"debug": "yarn build && yarn watch:debug",
"serve:debug": "nodemon --inspect",
"serve:debug": "nodemon --exec 'tsc && node --inspect dist/src/server.js'",
"watch:debug": "concurrently -k -p \"[{name}]\" -n \"Css,Static,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"yarn watch:css\" \"yarn watch:static-assets\" \"yarn serve:debug\""
},
"dependencies": {
Expand Down

0 comments on commit edffc8c

Please sign in to comment.