Adding a new build executor, that will unify the flow to build the Qwik project in a similar way how it's done with original qwik apps with Qwik CLI.
The new executor wraps build.client and build.ssr targets into build executor, where they can both be executed sequentially. It also allows to project build's target configuration to the ones it invokes.
With this change the commands will be as follows:
nx preview my-app - builds the app in the preview mode and runs the preview server
nx run my-app:build or nx run my-app:build:preview - builds the app in the preview mode
nx build my-app --prod or nx run my-app:build:production - builds the app in a cloudflare mode. This is the main change: if there're no integrations, the one that is being added will get a "production" mode as its configuration. If we want to add "netlify" next, it will use respective configuration name.
Along with breaking changes this PR presents there's a NX migration available, that should help updating the config. It can be used by running nx migrate qwik-nx command
What is it?
Description
Adding a new build executor, that will unify the flow to build the Qwik project in a similar way how it's done with original qwik apps with Qwik CLI.
The new executor wraps
build.client
andbuild.ssr
targets intobuild
executor, where they can both be executed sequentially. It also allows to projectbuild
's target configuration to the ones it invokes.With this change the commands will be as follows:
Along with breaking changes this PR presents there's a NX migration available, that should help updating the config. It can be used by running
nx migrate qwik-nx
command