Commit Graph

870 Commits

Author SHA1 Message Date
pooya parsa ad4e2e98d9
fix(vite): ensure id is javascript before externalizing (#983) 2021-10-13 22:44:52 +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
renovate[bot] ff97e2558c
chore(deps): update devdependency clipboardy to v3 (#974) 2021-10-13 22:11:45 +02:00
Anthony Fu 5b75e11e85
feat(vite): postcss support (#818)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-13 22:08:26 +02:00
Xin Du (Clark) 31b12d04c0
feat(cli): generate tsconfig.json in prepare command (#822)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-13 22:01:50 +02:00
Daniel Roe 1fbfdefe70
refactor: use `p-debounce` everywhere (#977) 2021-10-13 21:04:12 +02:00
Daniel Roe ece0e014a4
fix(nitro): fix type inference for `$fetch` (#938) 2021-10-13 14:04:41 +02:00
Xin Du (Clark) d8332d6ad6 chore(eslint): fix lint error 2021-10-13 12:16:15 +01:00
Daniel Roe f0ce5f78f8
fix(nuxi): warn if user does not have `@nuxt/kit` installed (#915) 2021-10-13 12:44:54 +02:00
Xin Du (Clark) c1ee1c4377
feat(vite): support jsx syntax (#922) 2021-10-13 12:34:51 +02:00
Anthony Fu 8f38280978
fix(nuxi): respect `--port` arg (#919) 2021-10-13 12:33:21 +02:00
Daniel Roe 81293ff195
fix(nuxi): provide install advice if git fails (#923) 2021-10-13 12:30:27 +02:00
Pooya Parsa 961d142039 fix(nitro): `table` esm compatibility (resolves #877) 2021-10-13 11:09:24 +02:00
Daniel Roe d5127e95ac
fix(bridge): alias direct references to vue files (#847) 2021-10-12 22:16:43 +02:00
Daniel Roe b6065a2edf
fix(bridge): remove circular reference (#844) 2021-10-12 22:02:07 +02:00
Anthony Fu 10170daa84
fix(nitro): `dot-prop` esm compatibility (#829) 2021-10-12 20:51:24 +02:00
pooya parsa 47ea41dadb
fix(vite): use pathToFileURL for externals (#819) 2021-10-12 20:01:27 +02:00
Xin Du (Clark) 3759926de5
fix(nitro): firebase package.json is not exported (#809) 2021-10-12 19:39:55 +02:00
Pooya Parsa da7ff44c93 fix(nuxt3): add missing `toRef` import for `useState`
resolves #804
2021-10-12 18:24:27 +02:00
Anthony Fu 6e52775bf9
fix(kit): dotenv esm compactiblity (#799)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-12 18:21:01 +02:00
Daniel Roe 2a0afbd092
fix(bridge): define `head` with `vue-meta` type (#784) 2021-10-12 17:22:37 +02:00
renovate[bot] 743160702a
chore(deps): update devdependency jiti to ^1.12.7 (#785)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 17:22:17 +02:00
Daniel Roe 7bf2412eae
refactor(bridge): implement `ssrRef` with `useState` (#787) 2021-10-12 17:22:06 +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 2fb58ae2be
feat(bridge): init function for `useState` (#773) 2021-10-12 16:49:18 +02:00
Pooya Parsa 3c132a8de0 fix(vite): normalize paths before comparing (#763)
Co-Authored-By: Anthony Fu <hi@antfu.me>
2021-10-12 16:42:52 +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
Anthony Fu 44f8904957
fix(vite): dev ssr fouc (#757) 2021-10-12 16:05:20 +02:00
renovate[bot] 2e87a76721
chore(deps): update all non-major dependencies (#742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 16:04:31 +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
Sébastien Chopin b35b111032
fix(nuxi): dx improvements when creating `components/` directory (#749) 2021-10-12 14:32:49 +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
pooya parsa 096b0e3305
feat(cli): add placeholder generate command (#738) 2021-10-12 10:52:28 +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 e531b65a32
fix(vite): improve external handling (#729) 2021-10-12 03:38:30 +02:00
Sébastien Chopin 95779c3d5f
chore: add readme to packages (#727)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-12 03:38:17 +02:00
pooya parsa 54c57e3987
feat(nuxt3): `useFetch` (#721) 2021-10-12 00:36:50 +02:00
renovate[bot] ad821d1aba
chore(deps): update dependency @vercel/nft to ^0.16.0 (#722)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 23:50:48 +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
Anthony Fu c8dfd61b87
chore: update vite version (#713) 2021-10-11 17:50:12 +02:00
renovate[bot] 0dcbd4a682
chore(deps): update all non-major dependencies (#704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 15:30:04 +02:00
Daniel Roe b005b2403f
feat(nitro): automatically type middleware/api routes (#708) 2021-10-11 15:29:02 +02:00
Anthony Fu 2f5938c7b5
chore(vite): add missing types and move out utils (#710) 2021-10-11 14:29:35 +02:00
Anthony Fu a4e903e55e
fix(bridge): use esm for `unplugin-vue2-script-setup` (#690) 2021-10-11 10:21:45 +02:00
Anthony Fu bade471dcf
refactor: rename `global-imports` to `auto-imports` (#706) 2021-10-11 10:07:27 +02:00
renovate[bot] 27666063ea
chore(deps): update all non-major dependencies (#649)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-08 16:22:23 +02:00
pooya parsa 2bf645bd73
refactor(nuxt3): cleanup data fetching and improved `useAsyncData` (#699) 2021-10-08 16:21:55 +02:00
Daniel Roe 8df29679ce
fix(bridge): don't rely on auto-imports in internal plugin (#700) 2021-10-08 09:17:58 +02:00
Daniel Roe a4f06716be
fix(nitro): always inline `.wasm` (#698) 2021-10-07 18:32:48 +02:00
Daniel Roe 06c1222e1f
feat(nuxi): invoke `prepare` step for nuxi dev/build (#689) 2021-10-07 15:53:31 +02:00
Daniel Roe 5275624f2e
feat(nitro): support importing/inlining wasm binaries (#693) 2021-10-07 15:43:34 +02:00
Daniel Roe abfaaa97eb
chore(nuxi): use consola for consistency (#686) 2021-10-07 12:15:15 +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
Pooya Parsa 45726616b2 fix(bridge): add meta to cjs wrapper (closes #671) 2021-10-07 10:43:00 +02:00
Daniel Roe 11490cdd7d
feat(bridge): add support for `<script setup>` (#678) 2021-10-07 10:31:29 +02:00
Anthony Fu c76d554ebb
fix(vite): fix `entry point not determine` warning (#682) 2021-10-07 10:29:10 +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 ac16127a13
fix(bridge): detect conflict with `@nuxt/typescript-build` usage (#672) 2021-10-06 17:39:13 +02:00
Daniel Roe 2fc0829dd2
fix(bridge): don't error with `defineNuxtMiddleware` (#676) 2021-10-06 17:36:24 +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 b13e20f317
fix(kit): de-default nuxt2 imports and add sync try/catch (#658) 2021-10-06 10:23:40 +02:00
Daniel Roe 485c97645a
fix(nuxi): don't include `nuxt3` for bridge projects (#663) 2021-10-05 22:49:56 +02:00
Daniel Roe 0213adcd20
fix(bridge): emit types for module (#660) 2021-10-05 22:47:58 +02:00
Daniel Roe ae0dbda2ce
fix(nuxt3): use ts-friendly paths for global imports (#662) 2021-10-05 22:47:19 +02:00
pooya parsa baa4ddbae0
feat(nuxi): basic `nuxi init` (#659) 2021-10-05 22:35:23 +02:00
Daniel Roe 599a2462f1
refactor(bridge): use babel typescript plugin instead of nuxt-swc (#653) 2021-10-05 21:18:09 +02:00
kazuya kawaguchi 30fbe5dfa3
docs(kit): comment typo (#654) 2021-10-05 19:40:20 +02:00
Daniel Roe 3fa75ba8a6
fix(nuxt3): trigger update dom when invoking usemeta (#650) 2021-10-05 17:29:06 +02:00
Pooya Parsa 2b1bf4824e chore: update base major versions to 3.x for simplicity 2021-10-05 17:09:24 +02:00
renovate[bot] 71dd944922
chore(deps): update all non-major dependencies (#644)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-05 16:34:03 +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
renovate[bot] 21a3e44fdb
chore(deps): update all non-major dependencies (#637) 2021-10-05 13:09:32 +02:00
Daniel Roe d51ed1e6aa
fix(bridge): resolve `browser` condition above `main` for client (#641) 2021-10-04 22:25:27 +02:00
renovate[bot] 5d86bfad78
chore(deps): update devdependency colorette to ^2.0.14 (#633)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-03 22:55:02 +02:00
Daniel Roe 0a9342c02d
fix: add main entrypoints for packages (#629) 2021-10-03 01:39:51 +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
renovate[bot] e9a903f136
chore(deps): update dependency nuxt-vite to ^0.3.4 (#624)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 20:40:25 +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
Pooya Parsa eb0332126e fix(bridge): import nuxt3 src from relative path 2021-10-02 20:04:02 +02:00
renovate[bot] 03754d9ff7
chore(deps): update dependency mlly to ^0.2.4 (#622)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 19:00:10 +02:00
Daniel Roe b712de9aa2
feat(bridge): enable automatic global imports for nuxt2 (#609) 2021-10-02 18:59:32 +02:00
Pooya Parsa bba79f4836 fix(kit): properly read nuxt version (resolves #616) 2021-10-02 18:19:36 +02:00
pooya parsa 6e496373f3
feat: use native esm for all packages (#539) 2021-10-02 18:01:17 +02:00
Pooya Parsa f21b7de3d1 chore(deps): update jiti to 1.12.6
also force resolve to ensure using latest and v8-compile-cache is disabled
2021-10-02 16:09:06 +02:00
renovate[bot] d4b9862b3d
chore(deps): update dependency nuxt-vite to ^0.3.2 (#620)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 16:06:35 +02:00
Pooya Parsa 0c4b442ccb fix(nuxi): fix issue with dynamic cjs chunks
resolves #621 via hotfix
2021-10-02 16:05:26 +02:00