Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`nuxt module add` -> select the `nuxt.config.ts` to install when working with layers

未关闭
#361 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #380 来自 @DamianGlowala —— 已关闭,未合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
nuxt, typescript
领域
cli

调研方向

入口点是 nuxi module add tailwind;首先跟踪在存在 Nuxt Layers 时它如何选择根目录的 nuxt.config.ts。比较报告中的 Nuxt Devtools 路径和 layer 布局,然后确定如何选择可配置的目标或通过提示选择的目标。完成的标准是模块安装可以针对所选 layer 的配置,而不是始终修改根文件。

由索引模型根据 Issue 内容生成。

描述

enhancement
Describe the feature

When working with Nuxt Layers and you add a Nuxt module using the Nuxt Devtools or using nuxi nuxi module add tailwind it adds the module to the root nuxt.config.ts file and this is not configurable.

My nuxt.config.ts file is only for extending layers and I do not want Nuxt to add modules here. It would be very nice if this was configurable (or if asked me which nuxt.config.ts to use) so that I can specify which nuxt.config.ts file I actually want it to use. Maybe before adding the module it could ask me which one I want it to add the module to.

common
  └─ components
  └─ composables
  └─ nuxt.config.ts   <------ I actually want nuxi to add the module here
users
  └─ components
  └─ composables
  └─ nuxt.config.ts
nuxt.config.ts        <--------- it adds it here (root)
Additional information
  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?
Final checks
主要语言
TypeScript
星标
401
派生
123
平均合并
1 天 1 小时
30 天内合并 PR
71

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nuxt/cli 的其他 Issue

查看 nuxt/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。