An open API service indexing awesome lists of open source software.

https://github.com/lukasholzer/nx-package-based-nuxt-svelte

Sample repository with nuxt svelte and web components
https://github.com/lukasholzer/nx-package-based-nuxt-svelte

nuxt-3 nx nx-workspace package-based pnpm pnpm-workspace svelte typescript

Last synced: about 1 month ago
JSON representation

Sample repository with nuxt svelte and web components

Awesome Lists containing this project

README

          

# 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](./example-of-cached-output.png)

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

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