Skip to content

Conversation

dmitry-stepanenko
Copy link
Contributor

@dmitry-stepanenko dmitry-stepanenko commented Feb 13, 2023

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

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 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

@dmitry-stepanenko dmitry-stepanenko force-pushed the ds/build-executor branch 7 times, most recently from 4c834cd to 05e67d6 Compare February 14, 2023 13:21
@shairez
Copy link
Contributor

shairez commented Feb 19, 2023

LGTM

Great and thorough job @dmitry-stepanenko ! 👏🙏

@dmitry-stepanenko dmitry-stepanenko force-pushed the ds/build-executor branch 2 times, most recently from 6e58e0b to 655262e Compare February 20, 2023 09:59
@dmitry-stepanenko dmitry-stepanenko marked this pull request as ready for review February 20, 2023 10:14
@dmitry-stepanenko dmitry-stepanenko merged commit aecae61 into main Feb 20, 2023
@dmitry-stepanenko dmitry-stepanenko deleted the ds/build-executor branch March 6, 2023 07:27
reemardelarosa pushed a commit to reemardelarosa/qwik-nx that referenced this pull request Mar 9, 2023
* feat(qwik-nx): build executor

* feat(qwik-nx): build executor migration and test coverage

* feat(qwik-nx): update target & configuration names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants