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
Daniel Roe
4e8f59bf70
fix(schema): add declarations to ignore list ( #8787 )
2022-11-09 10:01:09 +01:00
pooya parsa
ea17148a6b
feat(kit, nuxt): support prerender:routes
and addPrerenderRoutes
( #8670 )
2022-11-03 22:03:12 +01:00
Daniel Roe
e450debc08
feat(kit): add addServerPlugin
utility ( #8635 )
2022-11-03 15:54:05 +01:00
Daniel Roe
7c4899a7ab
fix(kit): normalize handler paths ( #8626 )
2022-11-03 15:04:02 +01:00
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types ( #8487 )
2022-10-27 12:36:37 +02:00
Daniel Roe
2284525662
fix(kit): don't require nuxt context when resolving path ( #8504 )
2022-10-26 15:55:11 +02:00
Daniel Roe
54da6f81a0
fix(kit): use pathe
to resolve aliases ( #8453 )
2022-10-25 10:24:09 +02:00
Daniel Roe
5a88510cb7
feat(kit): add updateTemplates
utility ( #8413 )
2022-10-24 10:53:02 +02:00
Anthony Fu
6567ac375d
feat(kit): support plugin array for addVitePlugin
and addWebpackPlugin
( #8270 )
2022-10-18 11:09:11 +02:00
pooya parsa
895ecc7677
feat!: upgrade to nitropack@0.6
and h3@0.8
( #8218 )
2022-10-15 20:42:57 +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
ac0b3a63a2
feat(nuxt, kit): auto import defineNuxtConfig
( #7497 )
2022-09-14 13:10:10 +02:00
pooya parsa
ceb61ada2b
refactor(schema): upgrade to untyped 0.5 ( #7452 )
2022-09-12 20:22:41 +02:00
pooya parsa
a418895595
fix(kit): add default config layer without nuxt.config
file ( #7358 )
2022-09-08 16:15:52 +02:00
Daniel Roe
a931667111
feat(kit): add addImportsSources
utility ( #7270 )
2022-09-06 12:17:41 +02:00
AndreyYolkin
b97cc27469
fix(kit, nuxi): semver regexp to support nuxt-edge
current releases (bridge) ( #7193 )
2022-09-03 15:08:23 +02:00
pooya parsa
abd5dc58c9
fix: improve autoImports
deprecation dx ( #7158 )
2022-09-02 15:42:46 +02:00
pooya parsa
68d12b468b
feat: allow extending with theme
config ( #7131 )
2022-09-01 12:05:02 +02:00
pooya parsa
0339a23372
fix(kit)!: handle prerelease constraint ( #7116 )
2022-08-31 21:18:05 +02:00
Daniel Roe
33d82b65ef
fix(kit): sort aliases before resolving ( #7018 )
2022-08-29 11:45:29 +02:00
Anthony Fu
fd94351ee9
refactor(nuxt)!: rename autoImports
to imports
( #6864 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-23 16:22:11 +02:00
Anthony Fu
e1e39b7e79
refactor(nuxt, kit): improve type strictness ( #6685 )
2022-08-22 12:12:02 +02:00
Anthony Fu
f350a70775
refactor(nuxt): enable strict type checking ( #6368 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-12 19:47:58 +02:00
Daniel Roe
e3b0608470
fix(kit): move relative path handling back into nuxt templates ( #6430 )
2022-08-08 13:03:44 +02:00
pooya parsa
e3534bcda5
fix(nuxi, kit): enable esmResolve
flag for jiti
( #6356 )
2022-08-04 15:22:32 +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
Conrawl Rogers
8efaad43bb
feat(kit): support followSymbolicLinks
option for resolveFiles
( #6240 )
2022-08-02 14:25:35 +02:00
pooya parsa
5dc864d7bc
fix(kit): try extensions with resolvePath
with absolute input ( #6233 )
2022-07-29 15:53:35 +02:00
Anthony Fu
d135608ef0
fix(nuxt): use relative path to generate plugin variables ( #6030 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-21 20:09:27 +02:00
Daniel Roe
4d80c43d25
fix(kit): resolve aliases in plugin src ( #6037 )
2022-07-21 16:05:41 +02:00
Anthony Fu
b4b98041f0
fix(kit, nuxt): always sort globby results ( #6029 )
2022-07-21 12:46:50 +02:00
Daniel Roe
a54925f880
fix(kit): only call viteExtendConfig
callback once if possible ( #5929 )
2022-07-15 23:34:29 +02:00
Daniel Roe
a41644e084
fix(kit): support adding server-only/client-only components separately ( #5686 )
2022-07-01 12:02:34 +02:00
Daniel Roe
6f8b7a9043
feat(kit): add addLayout
( #5537 )
2022-06-27 13:47:54 +02:00
Daniel Roe
308148977d
feat(kit): support client and server flags for addVitePlugin
( #5560 )
2022-06-22 19:29:51 +02:00
Julien Huang
ccec0a3738
feat(kit): allow addServerHandler
to use method suffix of the file path ( #5465 )
2022-06-15 13:53:31 +02:00
Daniel Roe
93f6a1e4ca
fix(vite, kit, nuxt): generate safe variable names using knitwork ( #4906 )
2022-06-10 15:12:21 +02:00
Daniel Roe
6947d30f01
fix(kit): pass resolved path to isIgnored
( #5375 )
2022-06-10 14:28:48 +02:00
Xin Du (Clark)
139fc11c5a
refactor: fix typo and code improvements ( #5344 )
2022-06-08 21:49:11 +02:00
pooya parsa
92847ed924
feat(nuxt, kit): add shortcuts to register custom server handlers ( #4850 )
2022-05-06 15:31:52 +02:00
Pooya Parsa
e006c5605b
fix(kit): try canonical package name for edge release
2022-04-20 12:35:09 +02:00
pooya parsa
4712e99411
refactor!: rename nuxt3 to nuxt ( #4449 )
2022-04-20 10:52:39 +02:00
Daniel Roe
b38dc097f6
feat(nuxt3): allow separating client and server components ( #4390 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 21:13:55 +02:00
Daniel Roe
e0b2a3bfe4
chore: use node:
prefix for built-in modules ( #4384 )
2022-04-15 17:19:05 +02:00
Ahad Birang
f0714d78b0
fix(kit): use route
instead of path
in ServerMiddleware
( #4139 )
2022-04-07 13:32:28 +02:00
pooya parsa
8a3d445bf8
fix(kit): ensure useNuxt
returns nuxt instance ( #4059 )
2022-04-04 11:41:48 +02:00
Matteo Rigoni
01db83032a
fix(kit): add typings to kit server middleware ( #3776 )
...
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-04 10:21:30 +02:00
pooya parsa
7d945952d8
fix(kit): avoid behavior change based on NODE_ENV ( #3751 )
2022-03-17 21:10:12 +01:00
pooya parsa
b03cdb7114
feat!(nuxt3): use individual config layers for extending ( #3717 )
2022-03-16 21:36:30 +01:00
Raja
f38cacec0f
feat(nuxt 3): support custom router options ( #3485 )
...
Co-authored-by: Raja Munisamy <raja.munisamy@carbar.com.au>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-15 17:57:41 +01:00
Anthony Fu
cff2f37cc8
refactor!: migrate to unimport
( #3386 )
2022-03-11 09:09:11 +01:00
Kevin Marrec
13dd2b98ea
feat(nuxt3): extends support for plugins/
directory ( #3462 )
2022-03-09 11:51:32 +01:00
Daniel Roe
e12d2e9405
fix(kit): allow src
for addPluginTemplate
( #3542 )
2022-03-08 18:42:46 +01:00
renovate[bot]
5b7fbc1569
chore(deps): update all non-major dependencies ( #3450 )
2022-03-08 18:17:01 +01:00
Daniel Roe
754ff0c9e7
feat: .nuxtignore
support and isIgnored
kit utility ( #3424 )
2022-02-28 17:11:46 +01:00
Daniel Roe
52d22feaea
fix(nuxt3): share scanned components with loader ( #3396 )
...
* fix(nuxt3): share scanned components with loader
* refactor: remove `src` type from input
* fix: remove old `src: ''` option
* fix: use shared context for extending components too
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-28 11:07:20 +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
pooya parsa
12a95ad86c
test: rework tests using @nuxt/test-utils
( #3308 )
2022-02-18 19:14:57 +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
82a7fd561b
feat(kit): createResolver
utility ( #3111 )
2022-02-07 22:39:31 +01:00
pooya parsa
03d5fdde2d
feat(kit)!: expose resolvePath
( #3110 )
2022-02-07 22:00:20 +01:00
pooya parsa
c9c0171b2d
refactor: rename options.layers
to options._extends
( #3109 )
2022-02-07 19:44:48 +01:00
Daniel Roe
29171bd105
fix: sanitize import filenames in generated imports ( #2216 )
2022-02-07 14:45:47 +01:00
Daniel Roe
c1148d4d77
refactor: write declarations to <buildDir>/types
( #3067 )
...
* refactor: write declarations to `<buildDir>/types`
* fix: update relative imports
2022-02-07 11:20:01 +01:00
Daniel Roe
fae2179ee9
chore: replace constructors with types ( #3056 )
2022-02-03 19:02:55 +01:00
Ricardo Gobbo de Souza
adc44a2d2b
feat(kit): add helper addAutoImport
( #3030 )
2022-02-03 12:31:15 +01:00
Ahad Birang
ed4f4f51ab
fix(kit): load dotenv if option is missing ( #3029 )
2022-02-02 10:59:00 +01:00
pooya parsa
1672148a87
feat(kit): support config extends
using unjs/c12
( #3008 )
2022-01-31 22:13:58 +01:00
Daniel Roe
b38e394dfe
fix(nuxt3): import top-level files and subdirectory indices ( #2774 )
2022-01-18 17:43:41 +01:00
Daniel Roe
0ed2d4a00b
fix(kit): don't ignore @
alias ( #2737 )
2022-01-17 13:51:08 +01:00
renovate[bot]
4de167e246
chore(deps): update dependency globby to v12 ( #2659 )
2022-01-13 19:21:49 +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
b1371373c8
docs: improve schema generation ( #2035 )
2021-11-19 17:26:15 +01:00
Daniel Roe
4fe1fc881c
feat(kit): add more specific typings for schema ( #1988 )
2021-11-19 13:22:27 +01:00
pooya parsa
232fdd8cf3
fix(kit): support chainable extendRoutes
in container ( #1966 )
2021-11-16 17:13:19 +01:00
pooya parsa
b16cfea689
feat: typescript
options ( #1940 )
2021-11-16 13:32:21 +01:00
fgiraud
6b873f15bc
chore(nuxt3): add tests, comments and example for components scan ( #1455 )
...
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 17:22:46 +01:00
fgiraud
9b9843b501
docs: update doc meta ( #1790 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-11-10 21:16:20 +01:00
Daniel Roe
13a8e2b163
fix(nitro, nuxi): add runtimeConfig types (for #config
and useRuntimeConfig()
) ( #1783 )
...
Co-authored-by: Tobias Diez <code@tobiasdiez.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-10 13:40:02 +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