Skip to content

lukasholzer/nx-package-based-nuxt-svelte

Repository files navigation

Nx with Nuxt and Svelte

you can build all apps with nx run-many --target build this will execute the build command on every package with a build npm script.

Individual apps can be built by running:

# nuxt app
nx build nuxt-app

# svelte app
nx build svelte-app

Consecutive executions are cached see image

example of cached output

it can be fine-grained what invalidates the cache or not in a package.json of a package.

{
  "nx": {
    "targets": {
      "build": {
        "inputs": ["{projectRoot}/src/**/*", "!{projectRoot}/**/*.test.ts"],
        "outputs": ["{projectRoot}/.svelte-kit"]
      }
    }
  }
}

Releases

No releases published

Packages

No packages published