What are some of the best script commands (package...
# orm-help
s
What are some of the best script commands (package.json) to add to a new project (prisma2 + nexus)? I have the defaults for migrations, running server, testing and I'm sure there are some awesome shortcuts I haven't thought of yet.
j
Curious to see what you currently have 👀 😃
s
Copy code
"scripts": {
    "build": "webpack --config webpack.${NODE_ENV:-development}.js",
    "build-npm": "npm -s run clean && npm -s run generate && tsc",
    "clean": "rm -rf dist",
    "dev-npm": "ts-node-dev --no-notify --respawn --transpile-only src/main",
    "dev": "webpack --config webpack.development.js --watch",
    "generate:codegen": "graphql-codegen --config codegen.yml",
    "generate:prisma": "prisma generate",
    "generate:nexus": "ts-node --transpile-only src/schema",
    "start": "node --require dotenv/config dist/server",
    "server": "node dist/server",
    "test": "jest",
    "lint": "eslint -f compact .",
    "type-check": "tsc"
  },
👍 1
I've a couple of things going, haven't quite settled on a standard yet-- thus my question 😉