Skip to content

Instantly share code, notes, and snippets.

@yousifalraheem
Created June 14, 2020 07:35
Show Gist options
  • Save yousifalraheem/fc8eceb65a7899ceebec3148ba6e5a0c to your computer and use it in GitHub Desktop.
Save yousifalraheem/fc8eceb65a7899ceebec3148ba6e5a0c to your computer and use it in GitHub Desktop.
More complicated example of clean chained scripts
{
"scripts": {
"clean:dist": "rimraf dist",
"clean:test": "rimraf converage",
"clean": "npm run clean:dist && npm run clean:test",
"lint": "tslint -p tsconfig.json",
"build:prod": "webpack - mode production",
"test": "jest",
"deploy": "gh-pages -d dist",
"build": "npm run clean && npm run lint && npm test && npm run build:prod && npm run deploy"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment