Skip to content

Instantly share code, notes, and snippets.

@gabrielh-silvestre
Last active May 20, 2022 14:07
Show Gist options
  • Save gabrielh-silvestre/b7c80e4c163055e9af96a55626154868 to your computer and use it in GitHub Desktop.
Save gabrielh-silvestre/b7c80e4c163055e9af96a55626154868 to your computer and use it in GitHub Desktop.
package.json with basic scripts
{
{ // for typescript
"start": "node dist/server.js",
"dev": "ts-node-dev --inspect --transpile-only --ignore node_modules --respawn src/server.ts",
"test": "mocha -r ts-node/register src/**/*.spec.ts"
},
{ // for javascript
"start": "node src/server.js",
"dev": "nodemon src/server.js",
"test": "mocha -r src/**/*.spec.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment