Commit Graph

235 Commits

Author SHA1 Message Date
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
pooya parsa 9732d63c74
feat: update vite implementation (#130) 2021-04-29 13:51:54 +02:00
pooya parsa de9dffb0d6 chore: migrate to unenv and mkbuild 0.2 (#108) 2021-04-21 17:10:53 +02:00
Pooya Parsa bef9f82a8d feat(nitro): allow extending nitro context 2021-04-19 22:39:11 +02:00
pooya parsa e224818395
feat: improve dev experience (#89) 2021-04-15 21:17:44 +02:00
Daniel Roe dacde63063
feat: add hook signatures and basic typings (#79) 2021-04-13 00:12:30 +02:00
pooya parsa c351574043
chore: update build scripts (#69) 2021-04-09 15:48:39 +02:00
Daniel Roe 2db79adfb8
chore(nuxt3): add more types (#51)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-04-05 00:15:34 +02:00
Pooya Parsa c864c5a30c fix(nitro): resolve alias for serverMiddleware 2021-04-04 19:54:12 +02:00
pooya parsa ef2f9993cb
chore: switch to berry (#50) 2021-04-04 16:22:40 +02:00
Pooya Parsa 94d36976c7 fix(app): provide appDir via meta export 2021-04-03 17:08:42 +02:00
pooya parsa f47808f59a
refactor: extract vite and webpack builders (#45) 2021-04-03 15:38:07 +02:00
pooya parsa 2c1eb87671
fix: webpack compilation (#41) 2021-04-03 14:42:02 +02:00
Pooya Parsa 2849559598 ✔️ 2021-04-02 22:47:23 +02:00
Pooya Parsa 4829d89b17 chore: fix type and imports 2021-04-02 21:38:11 +02:00
pooya parsa b3f3dc94f3
feat: module utils and improvements (#38) 2021-04-02 13:47:01 +02:00
Pooya Parsa 823e1a1eb4 refactor: nuxt3 utils 2021-03-29 11:33:38 +02:00
Pooya Parsa 5b146c0c88 chore: fix lint error 2021-03-28 23:15:24 +02:00
Pooya Parsa 636d1e38bb refactor: flatten nuxt3 src
some packages yet to be externalized
2021-03-28 23:12:37 +02:00
Pooya Parsa 547b8ec2a7 refactor: move utils to kit
to be rewritten
2021-03-28 23:12:37 +02:00
Pooya Parsa c9347e3f5b feat: create `nu` cli 2021-03-28 23:12:37 +02:00
Pooya Parsa c95d88c6cb refactor: externalize `@nuxt/app` 2021-03-28 22:49:05 +02:00
pooya parsa 46f771a98b
feat: `@nuxt/kit` and new config schema (#34) 2021-03-28 22:14:04 +02:00
Pooya Parsa a16e13b1de chore: upgrade to monorepo 2021-03-18 15:26:41 +01:00
Daniel Roe 545bfe4f9e feat: add `nuxt-head` component (#166) 2021-03-17 10:18:32 +01:00
Daniel Roe 451fc29b60 fix(app): improve composables (#183) 2021-03-17 10:17:18 +01:00
Daniel Roe 960523c4b8 chore: improve ide dx in playground (#185)
* chore: improve ide dx in playground

* fix(types): correct builder types
2021-03-17 10:11:37 +01:00
renovate[bot] e3aee4bb81 chore(deps): update devdependency @nuxtjs/eslint-config-typescript to v6 (#178)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2021-03-10 20:11:49 +00:00
Xin Du (Clark) 2c9854dfe3 fix(webpack): types in webpack and await compiler close (#176) 2021-03-05 18:17:05 +00:00
Sébastien Chopin 5248c61ed0 feat: add asyncData and improve reactivity (#174)
* feat: add asyncData and improve reactivity

* chore: lint fix
2021-03-01 10:45:37 +01:00
Pooya Parsa 040e14f2b6 fix: update nitro preset for dev 2021-02-22 20:11:54 +01:00
Xin Du (Clark) 52d28c041a fix(types): type definitions errors (#172) 2021-02-22 11:04:46 +01:00
Pooya Parsa 52592a5d64 fix: replace ~build with nuxt/build
vite sees does not likes ~ for alias when file is in node_modules
2021-02-19 15:21:50 +01:00
Pooya Parsa a1ac066cb5 fix: polyfill $fetch on globalThis
TODO: nitro client plugin needs rewrite
2021-02-19 14:59:47 +01:00
Sébastien Chopin bece3b85ab feat: support auto import of plugins (#169) 2021-02-19 02:08:45 +01:00
Sébastien Chopin 498a234039 chore: update welcome app 2021-02-18 20:16:42 +01:00
Pooya Parsa 23f6578c88 fix: include nitro.client plugin for global $fetch 2021-02-18 13:09:15 +01:00
Sébastien Chopin d48d920a81 chore(app): update logo 2021-02-18 12:29:55 +01:00
Sébastien Chopin 2548e753c0 docs: wip welcome page 2021-02-18 12:17:27 +01:00
Pooya Parsa 270bbbc47e fix: init nitro before module container (closes #165) 2021-02-18 11:47:23 +01:00
Pooya Parsa f5d96eb60c chore: fix lint error 2021-02-17 21:40:13 +01:00
Pooya Parsa 30c6b1d8e6 chore: update vite 2021-02-17 21:37:56 +01:00
Pooya Parsa c2d93aa55a chore: minimal webpack stats 2021-02-17 21:15:47 +01:00
Pooya Parsa 64ca193ac9 fix(webpack): remove hmr chunks from client manifest 2021-02-17 20:39:02 +01:00
Pooya Parsa 7b3244a567 fix(builder): empty buildDir only once by build 2021-02-17 19:32:37 +01:00
Sébastien Chopin d63b28303e fix: don't display 404 page if no pages/ 2021-02-17 15:29:15 +01:00
Pooya Parsa b4251b1389 Merge branch 'main' of github.com:nuxt/nuxt3 into main 2021-02-09 15:56:21 +01:00
Daniel Roe abb21f30ca fix: allow resolving relative `package.json` in vite mode
closes #146
2021-02-05 22:09:16 +00:00
Sébastien Chopin a8707469f8 feat: useAsyncData (#142)
* feat: useAsyncData

Resolves #141

* chore: improvements

* chore: fix lint
2021-02-03 19:14:30 +01:00
Sébastien Chopin b04e212ebc chore: router improvements (#139) 2021-02-02 17:42:48 +01:00
Pooya Parsa 694a6b5635 fix(vite): include deps from nuxt3 package 2021-01-22 23:32:02 +01:00
pooya parsa 9be282623c feat: initial support for vite bundler (#127) 2021-01-22 23:02:33 +01:00