1

I'm trying to slim down the process it takes to rebuild my php/react app, but I'm having trouble with yarn/npm commands. Is there a way to write a script that reads Powershell syntax? Right now I'm just copy pasting it since yarn isn't reading it properly.

Example:

yarn copy to run cp -r src/services build/services; cp -r vendor build/vendor

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Shady Sadie
  • 25
  • 1
  • 5
  • Did you check `yarn run` https://yarnpkg.com/lang/en/docs/cli/run/ ? Also see https://stackoverflow.com/questions/50010211/yarn-run-script-with-parameters – rhand Sep 28 '19 at 00:52

0 Answers0