Last active
February 11, 2020 19:15
-
-
Save whoisryosuke/32c79254ccd6204fc62c74386fcc20cd to your computer and use it in GitHub Desktop.
NodeJS - Useful package.json Scripts
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
{ | |
"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