Commit Graph

286 Commits

Author SHA1 Message Date
Daniel Roe
7d918e1457
refactor(nuxi): move nuxt.d.ts within buildDir (#1369) 2021-10-23 00:33:22 +02:00
Levi (Nguyễn Lương Huy)
694e95b2b4
feat(nuxt3): support NuxtChild component (#1301) (#1312) 2021-10-21 21:16:52 +02:00
Levi (Nguyễn Lương Huy)
7f7794787b
fix(nuxi): support build:error hook (#1298) 2021-10-20 20:50:01 +02:00
TenshiGoan
c5920c21e7
fix(nuxt3): child routes in vue-router don't have component field (#998)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-20 20:49:15 +02:00
Levi (Nguyễn Lương Huy)
a3058eebae
test(nuxt3): add unit tests for generateRoutesFromFiles (#261) (#1227)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 20:12:55 +02:00
Daniel Roe
101eaa9baf
fix(nuxt3): restore auto-imports.d.ts to nuxt.d.ts (#1282) 2021-10-20 14:53:13 +02:00
Anthony Fu
550a9f2e12
feat: auto-import for composables (#1176)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 11:47:18 +02:00
Daniel Roe
f950fe0d8a
fix(nuxt3): fix type inference for FetchResult (#1269) 2021-10-20 11:43:08 +02:00
Pooya Parsa
5e903ae176 fix(nuxt3): update legacy plugin (closes #1200) 2021-10-18 21:34:51 +02:00
Daniel Roe
0b634e19a3
fix(nuxt3): auto import types (#1203) 2021-10-18 21:30:14 +02:00
pooya parsa
035e9b5e8b
refactor: rename app to vueApp (#1177) 2021-10-18 20:31:37 +02:00
pooya parsa
4cff21005f
fix(nux3): use murmurhash for fetchKey (#1195) 2021-10-18 20:31:18 +02:00
Daniel Roe
47c004ac97
fix: improve type declarations (#1178) 2021-10-18 18:06:31 +02:00
Daniel Roe
6546fccbf9
fix(nuxi): write tsconfig when generating buildDir (#1161) 2021-10-18 16:22:02 +02:00
pooya parsa
0ab477cad0
feat(auto-imports): allow extending with config and hooks (#1167) 2021-10-18 15:39:53 +02:00
Xin Du (Clark)
dbbce5fcfa
feat(kit): add components types (#1164) 2021-10-18 14:49:02 +02:00
Daniel Roe
117b3aa524
fix(nuxt3): destructure components options (#1165) 2021-10-18 13:59:31 +02:00
Xin Du (Clark)
185366ec2d
fix(nuxt3): correct compoennts hooks parameters types (#1157) 2021-10-18 11:54:29 +02:00
Daniel Roe
d6ad4f3b16
fix(kit): load .env before loading nuxt.config (#1086) 2021-10-18 11:03:39 +02:00
renovate[bot]
4f050e50bf
chore(deps): update all non-major dependencies (#989) 2021-10-18 10:50:46 +02:00
Xin Du (Clark)
6cfe98941d
fix(kit): add missing nuxt hooks types (#971) 2021-10-18 10:14:22 +02:00
nandi95
70f1483f9e
fix(nuxt3): added missing dev to process shims (#1084) 2021-10-18 10:06:31 +02:00
Daniel Roe
93f7d776c4
fix(nuxt3): correctly type arrays returned from fetch requests (#1089) 2021-10-18 10:03:29 +02:00
Pascal Martineau
f4011d0b02
fix(nuxt3): add missing build:before hook (#1139) 2021-10-18 10:00:23 +02:00
Patrick Remy
3e38eb8511
refactor(nuxt3): export NuxtConfig for convenience (#1039) 2021-10-14 17:22:37 +02:00
Daniel Roe
d52b1e8d99
fix(nuxt3): correct auto-import file regexp (#985) 2021-10-13 23:03:36 +02:00
renovate[bot]
07086c8397
chore(deps): update all non-major dependencies (#821)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-13 22:41:21 +02:00
Xin Du (Clark)
a42458e107
fix(nuxt3): enable auto-imports for sfc script with type (#931) 2021-10-13 22:24:13 +02:00
Pooya Parsa
da7ff44c93 fix(nuxt3): add missing toRef import for useState
resolves #804
2021-10-12 18:24:27 +02:00
Pooya Parsa
5764042dbb fix(nuxt3): add missing getCurrentInstance import for useAsyncData (#783) 2021-10-12 17:19:06 +02:00
Anthony Fu
4b04cdfdf1
docs: init function for useState (#780) 2021-10-12 16:59:19 +02:00
Anthony Fu
9f0683079e
feat(nuxt3): support init function for useState (#767) 2021-10-12 16:28:49 +02:00
Matt Kane
70c0d8eedb
chore: change Nuxt3 to Nuxt 3 (#764) 2021-10-12 16:19:58 +02:00
Pooya Parsa
a896c64b12 fix(nuxt3): avoid script setup due to mkdist issue 2021-10-12 15:56:47 +02:00
pooya parsa
9cb9bb651e
feat(nuxt3): create root component (#750) 2021-10-12 14:51:41 +02:00
Anthony Fu
edeafbf6e3
fix(auto-imports): disable global mode and improve detection (#748) 2021-10-12 14:24:43 +02:00
pooya parsa
9c619b8772
fix(nuxt3): provide NuxtWelcome component from design (#745) 2021-10-12 13:16:52 +02:00
Daniel Roe
d1e0af928e
fix(nuxt3): correct KeysOf type (#737) 2021-10-12 10:52:09 +02:00
pooya parsa
101ef20c34
fix(vite): resolve vue aliases (#734) 2021-10-12 10:39:06 +02:00
pooya parsa
54c57e3987
feat(nuxt3): useFetch (#721) 2021-10-12 00:36:50 +02:00
Pooya Parsa
0287b46fed chore: remove unused vuex dependency 2021-10-11 21:17:09 +02:00
pooya parsa
666b7f1ba8
feat: useState composable (#719) 2021-10-11 19:48:03 +02:00
Daniel Roe
b005b2403f
feat(nitro): automatically type middleware/api routes (#708) 2021-10-11 15:29:02 +02:00
Anthony Fu
bade471dcf
refactor: rename global-imports to auto-imports (#706) 2021-10-11 10:07:27 +02:00
pooya parsa
2bf645bd73
refactor(nuxt3): cleanup data fetching and improved useAsyncData (#699) 2021-10-08 16:21:55 +02:00
Daniel Roe
cc2279bd8a
refactor(nuxi): extract nitro types to corresponding modules (#668)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-07 12:09:09 +02:00
Daniel Roe
0aa6fbf5ef
fix(bridge): automatically transpile all modules (and sanitize transpiles) (#677) 2021-10-06 19:59:35 +02:00
Daniel Roe
4b3814a14f
fix(nuxt3): don't call lifecycle methods outside of component (#675) 2021-10-06 19:58:57 +02:00
Daniel Roe
a07b67ce57
feat(bridge): use useMeta in bridge projects (#664) 2021-10-06 14:37:45 +02:00
pooya parsa
dd73a8bcad
feat: export defineNuxtConfig from nuxt3 and @nuxt/bridge (#669) 2021-10-06 14:31:52 +02:00
Daniel Roe
ae0dbda2ce
fix(nuxt3): use ts-friendly paths for global imports (#662) 2021-10-05 22:47:19 +02:00
Daniel Roe
3fa75ba8a6
fix(nuxt3): trigger update dom when invoking usemeta (#650) 2021-10-05 17:29:06 +02:00
Anthony Fu
bb8c4ff019
feat(vite): vite dev server bundler (#604)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-05 16:18:03 +02:00
Daniel Roe
3b4a0f19e3
fix(nuxt3): missing fixes for nuxt3/app (#631) 2021-10-03 01:39:13 +02:00
Daniel Roe
48458e4544
fix(nuxt3): fix meta type generation (#628) 2021-10-03 01:00:21 +02:00
Daniel Roe
768488f07d
fix(nuxt3): correct app types (#630)
* fix(nuxt3): correct app types

* fix module augmentation
* include all shims in types file

* style: disable eslint rule
2021-10-03 00:39:02 +02:00
Daniel Roe
5cf293ea88
fix(nuxt3): move export to top level (#626)
* fixes issue of module augmentation
2021-10-02 23:06:57 +02:00
pooya parsa
45b4946026
feat(nuxt3, bridge): useRuntimeConfig (#625)
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-10-02 22:30:20 +02:00
Xin Du (Clark)
eb794f3f85
chore(eslint): forbid modules importing from core (#556)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-02 20:40:10 +02:00
Anthony Fu
9503d62607
feat(kit, bridge): version constraint utils and checks (#442)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-02 20:31:00 +02:00
Daniel Roe
b712de9aa2
feat(bridge): enable automatic global imports for nuxt2 (#609) 2021-10-02 18:59:32 +02:00
pooya parsa
6e496373f3
feat: use native esm for all packages (#539) 2021-10-02 18:01:17 +02:00
Daniel Roe
71e71d1327
feat(bridge, nuxt3): expose equivalent useRoute and useRouter com… (#615) 2021-10-02 14:32:28 +02:00
Daniel Roe
9110765cb5
fix(nuxt3): use built-in <Link> to render in <head> and prevent CLS (#619) 2021-10-02 14:30:12 +02:00
Anthony Fu
e13baf9867
feat(nuxt3): remove <script setup> transform and prefer top level await (#579)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-30 20:19:55 +02:00
Sébastien Chopin
26163d68b7 chore: update nuxt logo 2021-09-29 19:39:01 +02:00
Daniel Roe
7fdcee3252
feat(kit): support templates with getContents() for nuxt 2 (#587) 2021-09-29 12:10:46 +02:00
Daniel Roe
337bd3d2b4
chore(nuxt3): remove last upath reference (#588) 2021-09-29 11:55:55 +02:00
pooya parsa
6329a681e4
refactor: migrate from upath to pathe (#553) 2021-09-27 14:49:36 +02:00
Daniel Roe
3bf856830b
feat(bridge): add useNuxtApp and defineNuxtPlugin composables (#576) 2021-09-25 10:24:37 +02:00
Xin Du (Clark)
c4e46881cc
refactor(components): use inline templates (#555) 2021-09-23 19:57:37 +02:00
Xin Du (Clark)
f4cf2199a5
refactor(app): remove lodash template files (#543) 2021-09-21 16:55:07 +02:00
Anthony Fu
a994bec4f3
fix(global-imports): don't match with comments (#462) 2021-08-30 13:55:57 +02:00
Ahad Birang
a31e8abfb3
fix: rename useNuxt in global-imports to useNuxtApp (#461) 2021-08-30 11:08:43 +02:00
Daniel Roe
a9c4bfa065
refactor: rename runtime nuxt to nuxtApp equivalents (#460) 2021-08-27 15:30:53 +02:00
Daniel Roe
7a03460584
chore(nitro, kit, nuxt3): add nitro hook types and upgrade hookable@5 (#458) 2021-08-27 14:51:40 +02:00
Daniel Roe
16b769d6b9
fix(nuxt3): add types for runtime hooks (and fix page:finished) (#455)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-26 20:57:36 +02:00
Anthony Fu
45f898e108 chore: fix typo 2021-08-24 15:49:03 +08:00
Ahad Birang
d3582bf1e8
fix: components template path (#447) 2021-08-16 11:08:47 +02:00
Pooya Parsa
91c6ef57e7 fix(nuxt3): resolve dist dir by top level module 2021-08-11 23:26:47 +02:00
pooya parsa
ee0163c273
refactor: merge modules to nuxt3 (#439) 2021-08-11 22:28:38 +02:00
Anthony Fu
b2b4c64807
feat: auto global imports (#410)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-10 02:27:23 +02:00
pooya parsa
4b5d9f1052
feat: nuxt prepare and template improvements (#423) 2021-08-09 22:54:12 +02:00
Daniel Roe
25e96bb896
fix: windows path issues (#408) 2021-08-09 20:24:52 +02:00
pooya parsa
cc212cedc8
refactor: improved template utils (#393) 2021-07-28 13:35:24 +02:00
Anthony Fu
a01dd69fcc
fix(vite): prod build hang, close #336 (#361)
* fix(vite): prod build hang, close #336

* chore: update
2021-07-23 16:45:06 +02:00
Daniel Roe
5d78c14ed6
fix(nuxt3): reresolve app entrypoint when changes to app.vue are detected (#363) 2021-07-23 16:42:49 +02:00
Daniel Roe
98cf97d269
fix: remove vue alias (#335) 2021-07-16 11:12:11 +02:00
Daniel Roe
b263b4f930
feat: @nuxt/meta module for head rendering (#179)
Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-15 13:28:04 +02:00
pooya parsa
bec2720930
feat: use virtual filesystem for templates (#292)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 12:18:34 +02:00
Daniel Roe
0a3041cdf9
fix: allow use of nuxt3 in non-wsl windows environment (#308) 2021-07-12 12:54:24 +02:00
pooya parsa
debe5a98b0
feat(kit, nuxt3): use single nuxt instance (#271) 2021-06-24 16:06:16 +02:00
pooya parsa
a0f81cd1fb
feat: components discovery (#243)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-06-18 18:50:03 +02:00
Pooya Parsa
1ed3387243 fix: use nitro plugin with explicit mjs extension 2021-06-18 14:34:07 +02:00
Pooya Parsa
98a0c727c9 fix nitro client import 2021-06-18 11:53:39 +02:00
Daniel Roe
77e489aae3
fix(nitro): update nitro internal hook name (#218) 2021-06-16 13:48:16 +02:00
Daniel Roe
5c67408191
fix(nuxt3): add support for custom templates (#225) 2021-06-16 13:22:01 +02:00
Daniel Roe
e2d5a2f4b3
fix: add nitro client plugin ($fetch support) (#223)
* fix(nuxt3): add nitro client plugin ($fetch support)

closes #213

* refactor: put hook in more logical place

* docs: update comment
2021-06-16 13:20:18 +02:00
Daniel Roe
1bbd754f29
refactor(nitro): app template 2-3 normalization (#177) 2021-06-03 15:12:05 +02:00
Pooya Parsa
6b62d456d7 feat: optional pages and refactor nuxt3 (#142) 2021-05-20 13:42:41 +02:00