Skip to content

Instantly share code, notes, and snippets.

@ggkrustev
Last active November 29, 2018 08:51
Show Gist options
  • Save ggkrustev/5d25f59f95137e53aec57cd1c8e33342 to your computer and use it in GitHub Desktop.
Save ggkrustev/5d25f59f95137e53aec57cd1c8e33342 to your computer and use it in GitHub Desktop.
The minimum common list of scripts every package.json should contain

Scripts in package.json

The absolute minimum of NPM scripts required for a React app to be build by TeamCity.

{
  ...
  scripts: {
    ...
    "build": "XXX: builds a deployable version in dev mode",
    "lint":  "XXX: lints the code",
    "lint:ci":  "XXX: lints the code and reports with TC reporter",
    "test":  "XXX: runs the unit tests",
    "test:ci":  "XXX: runs the unit tests and reports with TC reporter",
    "integration-test":  "XXX: runs the integration tests",
    "integration-test:ci":  "XXX: runs the integration tests and reports with TC reporter"
    ...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment