Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Last active February 11, 2020 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whoisryosuke/32c79254ccd6204fc62c74386fcc20cd to your computer and use it in GitHub Desktop.
Save whoisryosuke/32c79254ccd6204fc62c74386fcc20cd to your computer and use it in GitHub Desktop.
NodeJS - Useful package.json Scripts
{
"scripts": {
// Clear cache and run develop script
"clean": "rm -rf .cache && npm run develop",
// Linting and formatting
"format": "prettier --write 'src/**/*.js'",
"lint": "eslint . --ext ts --ext tsx",
// Testing
"test": "jest",
"test:watch": "jest --watch"
// Typescript
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
// 3rd Party
// Gatsby
"develop": "nodemon --exec \"gatsby develop\"",
"debug": "nodemon --exec \"node --inspect-brk --no-lazy node_modules/.bin/gatsby develop\"",
// Storybook
"storybook": "start-storybook",
"storybook:build": "build-storybook -c .storybook -o .out",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment