Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Last active January 17, 2016 03:29
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 coryhouse/925119b28ef5d332e8d0 to your computer and use it in GitHub Desktop.
Save coryhouse/925119b28ef5d332e8d0 to your computer and use it in GitHub Desktop.
Example of using && to call multiple scripts, serially
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"remove-dist": "rimraf ./dist",
"create-dist": "mkdir dist && cd dist && mkdir js && mkdir styles",
"prebuild": "npm run remove-dist && npm run create-dist",
"build": "webpack"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment