Commit Graph

327 Commits

Author SHA1 Message Date
Daniel Roe e105fadd7e
fix(kit): ignore negation when resolving ignore patterns 2024-04-17 14:23:20 +01:00
Anthony Fu f209158352
chore: cleanup eslint rules with latest `@nuxt/eslint-config` (#26653) 2024-04-05 19:08:32 +01:00
Daniel Roe 5be9253cfe
fix(kit): clone middleware when adding to app 2024-03-15 15:38:07 -07:00
Daniel Roe a9effe9c8a
feat(nuxt): allow generating metadata for nuxt components (#26204) 2024-03-13 15:57:04 -07:00
Daniel Roe 7252b56d52 chore: add back stylistic rules and lint project 2024-03-09 06:48:15 +00:00
Daniel Roe 3782ac0a2c fix(kit): handle errors resolving module path 2024-03-09 06:30:02 +00:00
Damian Głowala 2e8d47c269
fix(kit): resolve module `node_modules` for `modulesDir` (#25548) 2024-03-06 14:27:17 +00:00
Daniel Roe 08b656a047 fix(kit): don't warn if middleware is added twice 2024-02-26 21:22:10 +00:00
Michael Brevard ff1bb56e3f
perf: early return chained functions with falsy values (#25647) 2024-02-26 16:08:45 +00:00
Daniel Roe 7815aa534e
fix(kit): widen pattern to `.config/nuxt.*` 2024-02-22 18:15:44 +00:00
Daniel Roe 5440ececed
fix(kit): apply nuxt types to `.config/nuxt.config`
resolves https://github.com/nuxt/nuxt/issues/25918
2024-02-22 16:31:20 +00:00
Daniel Roe 363bb57b63
fix(kit): don't mutate existing component entry when overriding (#25786) 2024-02-14 11:48:25 +00:00
Inesh Bose 406b204640
fix(kit): improve types for `options` in `addTemplate` (#25109) 2024-01-12 10:47:23 +00:00
Peter d3ea8fed97
fix(kit): show correct error when module can't be loaded (#24957) 2024-01-01 09:14:28 +00:00
Michael Brevard c2b94d4a16
perf(kit,schema,nuxt): refactor `startsWith` to array access (#24744) 2023-12-29 08:47:11 +00:00
Daniel Roe 32d2c99c5f
refactor(schema): introduce `future` and `features` namespace (#24880) 2023-12-25 14:03:29 +00:00
Damian Głowala a2ef3091e8
feat(kit,nuxt,vite,webpack): add `toArray` util (#24857) 2023-12-23 14:22:58 +00:00
Bobbie Goede 8917e5f564
fix(kit): don't add local `~/modules` dirs to `modulesDir` (#24457) 2023-12-20 14:42:42 +00:00
Becem fa3a83924e
fix(kit): auto-detect `mode` from `filePath` for `addComponent` (#24835) 2023-12-20 10:52:14 +00:00
Daniel Roe c5ff169c3a
feat(kit): add new `addServerScanDir` composable (#24001) 2023-12-14 17:11:53 +00:00
Michael Brevard 1711c33be4
perf(kit): avoid duplicate `join` operation (#24717) 2023-12-14 11:04:20 +00:00
Daniel Roe 7827f1843b
feat(kit): load `/module` or `/nuxt` module subpath if it exists (#24707) 2023-12-12 17:55:21 +00:00
Julien Huang 0eb9caf0c2
fix(nuxt): remove experimental `reactivityTransform` (vue 3.4) (#24477) 2023-11-27 23:02:02 +00:00
Daniel Acuña c214869e51
feat(kit): allow customising logger options (#24243) 2023-11-23 21:57:48 +00:00
Sadegh Barati be11bac9c2
feat(kit): support prepend option for `addComponentsDir` (#24309) 2023-11-23 21:13:03 +00:00
Daniel Roe c1ddb359e3
chore: update to use `@nuxt/eslint-config` (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00
Daniel Roe ebb5767b9c
fix(kit): fix `addServerImportsDir` implementation (#24000) 2023-10-31 14:16:01 +01:00
Daniel Roe 803c4fe147
fix(kit): resolve module tsconfig paths relative to dirs (#23860) 2023-10-22 10:08:02 +02:00
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00
Daniel Roe eb40409f23
feat(kit,nuxt,vite,webpack): support `-nightly` extension (#23508) 2023-10-12 15:17:38 +01:00
renovate[bot] a5dad0d2e8
chore(deps): update devdependency eslint-plugin-jsdoc to v46 (main) (#23614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-11 13:31:22 +01:00
Ezra Adeyinka 8db82af3a9
chore: fix various typos and update to US English (#23580) 2023-10-10 12:14:55 +01:00
Daniel Roe 24c5af328f
fix(kit): revert accidental change to `addPrerenderRoutes` name (#23509) 2023-10-02 22:36:00 +01:00
Daniel Roe 1e3d989ad9
fix(nuxt): mock hookable methods on nuxt 2 (#23502) 2023-10-02 13:42:34 +01:00
Daniel Roe 770d4c67f7
perf(nuxt): verbatim module syntax + restrict type discovery (#23447) 2023-10-02 11:32:46 +01:00
Julien Huang 9734723aaf
fix(kit): don't force `config.autoImport` in `addServerImports` (#23472) 2023-09-29 22:18:52 +01:00
Daniel Roe a06d5247ca
feat(nuxt): add `prerenderRoutes` ssr composable (#22863) 2023-09-28 11:54:22 +01:00
Julien Huang 2b273fa8e1
feat(kit): add `addServerImports` and `addServerImportsDir` (#23288) 2023-09-28 11:08:02 +01:00
Percy Ma 3b90f82f8d
fix(nuxt): apply right types to modules and their runtime files (#23240) 2023-09-22 09:25:52 +02:00
Pooya Parsa 2bf9028f7e
refactor(kit,nuxt,schema): use `consola` and improve test dx (#23302) 2023-09-19 22:26:15 +01:00
Daniel Roe f79f9b3a60
fix(kit): improve generated `tsconfig.json` defaults (#23121) 2023-09-11 14:40:36 +01:00
Andrey Yolkin 3e676a7fd2
fix(nuxt): disallow `write: false` for type templates (#22972) 2023-09-04 12:23:03 +01:00
Andrey Yolkin aa0ea8bf2d
fix(kit): allow passing a string to `addLayout` (#22902) 2023-08-30 11:45:16 +01:00
Daniel Roe 6036e9d6a2
fix(kit): respect `priority` when registering components dirs (#22882) 2023-08-29 23:06:41 +01:00
Daniel Roe 54a6eab406
feat(kit,nuxt): respect nuxt ignore patterns in nitro (#22808) 2023-08-25 13:08:38 +01:00
Alexander Lichter ce9aecca4a
chore(kit): remove unused internals (#22555) 2023-08-09 08:39:00 +01:00
Daniel Roe b5c9a81d68
feat(nuxt): resolve unresolved paths within `node_modules` (#22478) 2023-08-07 23:05:29 +01:00
Lucas Vargas ffd0223583
feat(vite,webpack): tree-shakable `import.meta.*` build flags (#22428) 2023-08-07 23:03:40 +01:00
Daniel Roe 4d84c714e0
fix(kit): apply preferred options for esbuild transpilation (#22468) 2023-08-03 16:38:31 +01:00
Daniel Roe 2540c879da
fix(kit): remove `baseUrl` and use relative paths in tsconfig (#22410) 2023-08-01 10:17:02 +01:00
Daniel Roe 716a5b8341 fix(kit): don't unsubscribe from file writing 2023-07-31 15:44:44 +01:00
Daniel Roe 38d2bb7b95
feat(kit,nuxi): add `writeTypes` utility (#22385) 2023-07-31 09:42:42 +01:00
Daniel Roe a2b5d31270
perf(nuxt): write templates in single sync step + improve logs (#22384) 2023-07-30 17:14:42 +01:00
Daniel Roe 257cb3c8a0
chore(deps): bump typescript/untyped versions (#22340) 2023-07-30 10:16:13 +01:00
Harlan Wilton 694f13b18f
fix(kit): handle tuple-format modules in `hasNuxtModule` (#22316) 2023-07-25 21:04:16 +00:00
Harlan Wilton 6cabe69ce0 fix(kit): module compatibility not working with module names 2023-07-06 12:36:49 +10:00
Daniel Roe a79d04780a
fix(kit): ignore telemetry startup time (as it has prompt) (#21959) 2023-07-05 16:04:37 +02:00
Daniel Roe 9c8746f2a6
chore: prune internal unused code and exports (#21809) 2023-06-27 10:38:40 +01:00
Inesh Bose c73bed8c6d
feat(kit): allow direct function in `defineNuxtModule` (#20763) 2023-06-16 15:47:38 +01:00
Hebilicious ee6869b1ba
feat(kit): `addTypeTemplate` helper with auto-registration (#21331) 2023-06-09 22:24:03 +01:00
Harlan Wilton c0b3d26b00
feat(kit): module compatibility utils (#21246) 2023-06-06 23:36:35 +01:00
Wilson Pinto 0f4ae15cee
fix(kit): temporarily inline `lodash.template` from `lodash-es` (#20892) 2023-06-05 22:52:43 +01:00
Daniel Roe 980728275a
fix(nuxt): use `resolvePath` to handle edge cases for modules (#20975) 2023-05-20 23:29:32 +01:00
Daniel Roe 26861e68ce
fix(kit): resolve relative module paths when installing (#20896) 2023-05-20 23:10:52 +01:00
Daniel Roe 7006064567
feat(kit): `addBuildPlugin` for builder-agnostic implementation (#20587) 2023-05-14 12:55:26 +01:00
Daniel Roe cbcd254cd4
refactor(kit): use esm utils for `resolvePath` (#20756) 2023-05-10 13:11:13 +01:00
Daniel Roe 3b820ad366
fix(kit): prefer esm resolution for modules to install (#20757) 2023-05-10 13:10:23 +01:00
Anthony Fu 84559e84aa
feat(kit): support passing getter to `addVitePlugin` and `addWebpackPlugin` (#20525) 2023-05-02 12:17:41 +01:00
Daniel Roe b2a1f9f339
feat(kit): allow vite and webpack plugins to be prepended (#20403)
Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
2023-04-29 23:39:08 +01:00
Stefan Milosevic 1444d89e3b
feat(kit): add `prepend` option to `addImportsDir` (#20307) 2023-04-29 23:21:45 +01:00
Harlan Wilton 5febd46d23
fix(core,kit): ensure module transpilation paths are dirs (#20396) 2023-04-19 19:05:46 +01:00
Daniel Roe f366ab4eb8
chore: remove `@ts-ignore` and fix some issues (#20273) 2023-04-14 13:53:21 +01:00
Daniel Roe ea4b5220a4
feat: upgrade to consola v3.x prerelease (#20141) 2023-04-08 03:16:06 -07:00
Daniel Roe 9878c5b6e4
style: enable `sort-imports` eslint rule (#20133) 2023-04-07 09:02:47 -07:00
Daniel Roe b1826ee9f4
fix(kit): support calling Nuxt 2 modules with module container (#20023) 2023-04-03 05:04:56 -07:00
Daniel Roe ae82d70895
fix(vite): allow extending vue config per-environment (#19968) 2023-03-29 03:59:57 -07:00
Daniel Roe 824d296c7b
fix(kit): check if nuxt is restarting before updating templates (#19830) 2023-03-22 17:24:18 -07:00
Daniel Roe 81da4cf5a2
fix(kit): handle node 14 performance behaviour (#19733) 2023-03-17 03:08:21 -07:00
Daniel Roe 886cca19ea
fix(kit): provide name to `performance.mark()` (#19687) 2023-03-15 04:26:01 -07:00
Daniel Roe ce45590120
refactor(nuxt): let mlly handle search paths (#19635) 2023-03-13 10:14:27 +00:00
Daniel Roe 6d79b71588
refactor(kit,nuxi): resolve module paths using node algorithm (#19537) 2023-03-10 06:55:01 -08:00
pooya parsa 6bd9b9448e
feat(kit, schema): measure module setup timings (#18648) 2023-03-10 03:30:22 -08:00
Clément Ollivier fe149618da
docs: update `addComponent` jsdoc comment (#19503) 2023-03-07 03:12:54 -08:00
Daniel Roe 129bb4fa3a
feat(kit,nuxt): add component `priority` to allow overriding (#19252) 2023-03-06 03:33:40 -08:00
Daniel Roe b73ca91437
fix(kit): match commit hashes of other lengths (#19450) 2023-03-04 07:10:40 -08:00
Inesh Bose c7eb891e12
fix(nuxt): deprecate scanning directory index plugins (#18418) 2023-03-01 04:08:58 -08:00
Lioness100 b25b6c82c7
docs: fix typos (#18976) 2023-02-12 19:16:42 +00:00
Mehdi HosseinZade 76a08e3ccd
feat(kit): add `addRouteMiddleware` method (#18553) 2023-02-06 15:24:56 -08:00
pooya parsa 637b88304e
fix(kit): avoid adding already installed modules to internal `_installedModules` (#18647) 2023-01-31 17:44:19 +01:00
Tobias Diez d83dc797af
fix(kit): don't use default export of defu (#18589) 2023-01-30 03:50:24 -08:00
pooya parsa 1af319e0fa
feat: experimental config schema (#18410) 2023-01-23 19:07:21 +01:00
Mehdi HosseinZade 585e8be2e0
feat(kit): add `extendRouteRules` method (#9771) 2023-01-21 16:54:02 +00:00
Alexander Lichter fa2672485a
fix(kit): resolve group syntax of `ignore` (#15884) 2023-01-20 16:23:16 +00:00
Ikko Eltociear Ashimine e908ebdb51
chore: fix typo in comment (#10148) 2023-01-19 13:20:53 +00:00
Daniel Roe a68da6d6a7
chore: case police update (#10085) 2023-01-13 15:00:57 +00:00
Daniil Chudo ab2456c295
refactor: split out type imports from value imports (#9225) 2022-12-11 21:44:52 +00:00
Daniel Roe 1202b1ac97
fix(kit): support applying `.nuxtignore` within external layers (#9599) 2022-12-08 15:57:58 +01:00
pooya parsa 5ac9d85a49
refactor!: remove deprecated api (#9029) 2022-11-16 03:26:35 +01:00
Mehdi HosseinZade f530cd7413
fix(kit): add external module to transpile (#8963) 2022-11-15 15:55:45 +01:00
Daniel Roe 74b81bbeaa
refactor(kit)!: remove support for module container (#9010) 2022-11-15 14:22:14 +01:00