Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created June 5, 2017 13:15
Show Gist options
  • Save benjamincharity/a387a1417bb14967ae4d3f5b4685617a to your computer and use it in GitHub Desktop.
Save benjamincharity/a387a1417bb14967ae4d3f5b4685617a to your computer and use it in GitHub Desktop.
Copy and rename a file from the command line (for use in NPM script). Requires https://github.com/mysticatea/cpx
node_modules/.bin/cpx dist/*.css styleguide && for f in styleguide/*.css; do mv \"$f\" \"styleguide/raw-styles.css\"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment