Commit Graph

83 Commits

Author SHA1 Message Date
Bobbie Goede
8917e5f564
fix(kit): don't add local ~/modules dirs to modulesDir (#24457) 2023-12-20 14:42:42 +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
Daniel Roe
803c4fe147
fix(kit): resolve module tsconfig paths relative to dirs (#23860) 2023-10-22 10:08:02 +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
b5c9a81d68
feat(nuxt): resolve unresolved paths within node_modules (#22478) 2023-08-07 23:05:29 +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
Inesh Bose
c73bed8c6d
feat(kit): allow direct function in defineNuxtModule (#20763) 2023-06-16 15:47:38 +01:00
Harlan Wilton
c0b3d26b00
feat(kit): module compatibility utils (#21246) 2023-06-06 23:36:35 +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
3b820ad366
fix(kit): prefer esm resolution for modules to install (#20757) 2023-05-10 13:10:23 +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
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
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
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
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
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
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types (#8487) 2022-10-27 12:36:37 +02:00
Andrew Mudrov
ddbfae1bec
fix(kit): log module id to the console when import fails (#8198) 2022-10-15 13:35:01 +02:00
pooya parsa
b933015850
feat(kit): useNitro() utility (#7557) 2022-09-15 18:10:50 +02:00
pooya parsa
ceb61ada2b
refactor(schema): upgrade to untyped 0.5 (#7452) 2022-09-12 20:22:41 +02:00
Anthony Fu
e1e39b7e79
refactor(nuxt, kit): improve type strictness (#6685) 2022-08-22 12:12:02 +02:00
renovate[bot]
6d64aff6f2
chore(deps): update dependency unctx to v2 (#6340)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-04 13:00:01 +02:00
Daniel Roe
6f8b7a9043
feat(kit): add addLayout (#5537) 2022-06-27 13:47:54 +02:00
Xin Du (Clark)
139fc11c5a
refactor: fix typo and code improvements (#5344) 2022-06-08 21:49:11 +02:00
Daniel Roe
e0b2a3bfe4
chore: use node: prefix for built-in modules (#4384) 2022-04-15 17:19:05 +02:00
pooya parsa
8a3d445bf8
fix(kit): ensure useNuxt returns nuxt instance (#4059) 2022-04-04 11:41:48 +02:00
renovate[bot]
5b7fbc1569
chore(deps): update all non-major dependencies (#3450) 2022-03-08 18:17:01 +01:00
Daniel Roe
73ba30fb69
refactor(schema,webpack)!: split out webpack and postcss build options (#2812)
* refactor: split out webpack and postcss build options

* feat(schema): set nuxt3 builder in config

* fix(schema): default postcss config file to false

* chore: update lockfile

* style: remove unused imports

* refactor(webpack): remove (previously disabled) babel config

* refactor: move shared vite options into schema

* fix(schema): omit __NUXT_BASE__ from defaults

* fix: move appDir-dependent options back to vite

* refactor: split out virtual modules

* refactor: extract compile/createDevMiddleware

* refactor: further improvements

* chore: remove `@nuxt/webpack-builder` dependency

* chore: update lockfile

* refactor: move `builder` option to top level

* fix: bind close to watcher instance

* chore: update lockfile

* fix: create portal between postcss & build.postcss.postcssOptions

* fix: remove duplicate

* fix: revert

* fix: use `postcss` directly

* fix: import builder from rootDir

* chore: dedupe webpack install

* test: update fixture to use `builder`

* fix: bind class in pify

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-25 20:11:01 +01:00
Anthony Fu
467ab693b9
feat: shared logger and silent test logs (#3259)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-16 22:34:32 +01:00
Daniel Roe
7825e2aa12
feat(nuxt3,bridge): add automatic schema augmentation declaration (#3096)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-08 20:09:44 +01:00
pooya parsa
03d5fdde2d
feat(kit)!: expose resolvePath (#3110) 2022-02-07 22:00:20 +01:00
Pooya Parsa
5a7a979dcb fix(kit): add backward compatibility for deprecated module definition as function 2021-12-22 21:40:18 +01:00
pooya parsa
045b9edb5d
feat(kit, schema)!: finalize nuxt 3 module spec and utils (#2275) 2021-12-21 14:57:26 +01:00
Daniel Roe
d52acbffd8
fix(bridge, kit): don't modify template array whilst traversing it (#2244) 2021-12-01 12:58:07 +01:00
pooya parsa
d68318f9d5
refactor: split schema to @nuxt/schema and simplify kit (#2059) 2021-11-21 17:14:46 +01:00
Nozomu Ikuta
583679f9c8
fix(kit): add hooks installation for bridge (#2045)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-21 13:35:37 +01:00
pooya parsa
232fdd8cf3
fix(kit): support chainable extendRoutes in container (#1966) 2021-11-16 17:13:19 +01:00
Daniel Roe
95cbe67f99
feat(kit, nuxt3): add pages:extend and extendPages (#1740)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: fgiraud <hello@florent.dev>
2021-11-09 11:16:23 +01:00
Emil Akhadov
82d1741d52
fix(kit): normalize plugin imports paths (#1779) 2021-11-09 10:44:00 +01:00