You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I run a totally different script? Let's say I have a script:
"build:app1:prerender": "npm run build:app1:client-and-server-bundles && npm run webpack:app1:server && npm run generate:app1:prerender",
I want to run build:app1:prerender to build my app1 instead of the standard build. How can I do that?
Same question for affected:e2e. If I have different protractor setup's and I don't want to run the standard ng e2e, but instead I want to run protractor directly. How can I do that?
For #3, I think showing only app1 should make more sense since app1-ngu-app-shell is server platform. Given the fact that nx doesn't officially support angular universal, this issue is understandable.
For now, I am use affected:apps to get the apps, use some regex to parse out the correct apps, and use them to run my custom scripts.
I am following this blog and trying out the affected npm scripts:
https://blog.nrwl.io/smarter-faster-builds-with-nrwl-nx-c2fd0d1a3277
I have some questions:
It seems like affected:apps and apps:affected are the same. This is true for build and e2e. Why provide two names of the same thing?
for affected:build. It runs this internally:
How can I run a totally different script? Let's say I have a script:
I want to run build:app1:prerender to build my app1 instead of the standard build. How can I do that?
Same question for affected:e2e. If I have different protractor setup's and I don't want to run the standard ng e2e, but instead I want to run protractor directly. How can I do that?
I made a html change inside apps/app1/src
It reports that the affected app is app1-ngu-app-shell only
I expected it to show both app1 and app1-ngu-app-shell
The text was updated successfully, but these errors were encountered: