[Feature] Read Nuxt dir overrides, extends layers and serverDir

Open
#6,450 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@rishu685 is already working on this.

Since Nov 27, 2026.

  • #6473 by @rishu685 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
nuxt, python, typescript
Domain
devtools, tooling

Research direction

Read packages/core/src/repowise/core/ingestion/framework_facts/nuxt.py, starting with _SRC_DIR_RE and the fixed directory globs around line 43. Then inspect tests/unit/ingestion/test_nuxt_imports.py and add one case for each listed setting. Done means literal directory overrides, in-repository extends paths, and serverDir are handled while defaults remain unchanged.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Summary

Nuxt apps that change the default directories, extend a layer, or set serverDir get no framework handling for the moved folders. Only a literal srcDir is read.

packages/core/src/repowise/core/ingestion/framework_facts/nuxt.py:43

*_under(srcs, "pages/*", "layouts/*", "middleware/*", "plugins/*"),

Mechanism

  • The entry and review globs use fixed directory names under the source directory. dir.pages, dir.layouts, dir.middleware and dir.plugins overrides are not read.
  • extends: ['../base'] layers are not followed, so their pages/, components/ and composables/ are not anchored.
  • serverDir is not read, and server/* is assumed.

Repro

// nuxt.config.ts
export default defineNuxtConfig({ dir: { pages: 'routes' }, extends: ['../base'] })

routes/index.vue and everything under ../base/pages/ read as files nothing loads, and dead-code output lists them.

Impact

False unreachable files and unused exports for any Nuxt app or layer that moves a folder.

Done looks like

  • Read literal dir.* and serverDir the way srcDir is read (_SRC_DIR_RE), from the config text.
  • Treat each literal extends path inside the repo as another source root.
  • Defaults are unchanged when nothing is set.

Tests

tests/unit/ingestion/test_nuxt_imports.py: one case per setting.

Dominant language
Python
Stars
7.1k
Forks
756
Avg merge
21h 5m
Merged PRs (30d)
797

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from repowise-dev/repowise

All issues in repowise-dev/repowise

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.