Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Created January 10, 2020 18:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JoeM-RP/3bedabe07676daf170756f8bdf367be3 to your computer and use it in GitHub Desktop.
package.json script section for Gatsby.js
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "npm run type-check && echo \"Write tests! -> https://gatsby.dev/unit-testing \"",
"type-check": "tsc",
"lint": "eslint --ignore-path .gitignore 'src/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "npm run lint --fix"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment