Skip to content

Instantly share code, notes, and snippets.

@hiroki-gota
Created October 7, 2020 21:01
Show Gist options
  • Save hiroki-gota/b43e7f94783b3bf07ace88afa8da1c41 to your computer and use it in GitHub Desktop.
Save hiroki-gota/b43e7f94783b3bf07ace88afa8da1c41 to your computer and use it in GitHub Desktop.
"build-api": "nx build api --configuration=production",
"i-api": "npm run copy-dotenv-to-api && cd dist/apps/api && npm -q --only=production ci && cd ../../../",
"zip-api": "cd dist/apps && zip -rq api/api.zip api/ && cd ../../",
@chriszrc
Copy link

chriszrc commented Oct 9, 2023

Is this the recommended way of doing it with nx, or are there some nx utilities we should be using for running npm install and zip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment